java - Format loss when converting docx to pdf using docx4j-3.2.1 -


i need convert docx pdf , using docx4j-3.2.1 library it. there format loss in generated pdf output.

my input docx fileenter image description here

and output pdf enter image description here

as can seen there 2 notable issues. 1 size/dimension of image in header reduced in generated pdf. not cover full header area there in input.

second font size seem have changed(or perhaps font changed)

how can retain dimension of original image on header in generated pdf. there methods can used fine tune conversion of docx pdf.

any appreciated.

ps : header image taken google image search header demonstration.

docx4j v3.2.1 provides "cheap , cheerful" docx pdf output via xsl fo.

if not enough you, have 3 options:

  1. enhance want
  2. use plutext's commercial pdf converter, has own page layout model, designed closely mimic word's,
  3. use other product, perhaps libreoffice + jod converter

Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -