Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make text color rendered when using addFieldAsTextStyling with syntax… #166

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gunivan
Copy link

@gunivan gunivan commented Sep 28, 2016

  • There are 3 issue when I using xdocreport to export docx and convert docx to pdf with Velocity template
  1. Use addFieldAsTextStyling with SyntaxKind.Html: color was ignored
    <span style=\"color:#FF0000;\">Title</span>
  2. When using with velocity template to render anchor link in docx, then I convert to pdf, anchor link was converted but do not navigate to location when click on it.
  3. Color from docx was ignored when convert to pdf with option:
    Options.getTo(ConverterTypeTo.PDF) .via(ConverterTypeVia.XWPF)

…Kind is html, make anchor link navigated when convert from docx to pdf
@angelozerr
Copy link
Member

angelozerr commented Sep 28, 2016

Very cool PR @gunivan! Is it possible to add in your PR iText5 PdfMapper too please.

@gunivan
Copy link
Author

gunivan commented Sep 29, 2016

  • @angelozerr I'm only doing with itext2, and have not using itext5, I think it is possible, but I have not much time to verify it work ok.
  • Also I see that hyperlink was not rendered to pdf when convert from docx by using addFieldAsTextStyling with a tag:
    abcd <a href=\"https://google.com\">Link here</a>

Copy link

@firulais firulais left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there some plans to handle font color in the near futuer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants