Giter Club home page Giter Club logo

Comments (5)

angelozerr avatar angelozerr commented on August 24, 2024

img is not supported by HTML text styling. See https://code.google.com/p/xdocreport/wiki/ODTReportingJavaMainHTMLTextStyling#Supported_styles to know teh html tags which are supported.

Any contribution are welcome to improve html text styling!

from xdocreport.

jbadenas avatar jbadenas commented on August 24, 2024

Thank you for your fast answer.
Could you please guide me with first steps to support tags?

from xdocreport.

angelozerr avatar angelozerr commented on August 24, 2024

Could you please guide me with first steps to support tags?

You must study which XML you must generate for supporting ODT image and implement after
https://github.com/opensagres/xdocreport/blob/master/document/fr.opensagres.xdocreport.document.odt/src/main/java/fr/opensagres/xdocreport/document/odt/textstyling/ODTDocumentHandler.java#L501

But I think it's an hard task and I think XDOcReport documengt handler should be improved to gives the capability to attach for instance image in the ODT.

from xdocreport.

jbadenas avatar jbadenas commented on August 24, 2024

Hello,
I made a little progress on this topic:

  • Download the image from the url of the element
  • The image is stored on a temp file
  • Added the necessary content to the content.xml to render the image

But I need some help on the following aspects:

  • Image must be stored on the Pictures folder of the ODT compress file. How can I create a new File within this directory?
  • Reference the image on the META-INF/manifest.xml. How can I write to this file?

from xdocreport.

angelozerr avatar angelozerr commented on August 24, 2024

@jbadenas I'm very sorry, I'm very busy. Your feature is a big task. I will try to see when I will find time.

I think we should do with the same thing than Hyperlink (with hyperlinkregistry). If I remember, it exists an imageregistry.

from xdocreport.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.