Page 1 of 1

PDF Converter - Chinese fonts/glyphs

PostPosted: Wed Oct 03, 2018 6:38 pm
by trytoplay38
I have downloaded the trial version from plutext, I'm trying to convert a docx to PDF, but from the sample code, I can't find how do i going to convert a docx to pdf?

Re: Plutext enterprise version

PostPosted: Thu Oct 04, 2018 7:53 am
by jason
The Enterprise version doesn't provide any additional capabilities regarding docx to PDF.

For PDF output, we offer 2 ways:

1. our commercial PDF Converter (a separate product), which you can get from https://converter-eval.plutext.com/

After installing, please see https://converter-eval.plutext.com/client_java.html

2. cheap n cheerful, free/open source XSL FO based conversion, which you enable by adding the docx4j-export-fo jar to your classpath: https://github.com/plutext/docx4j-export-fo

Hope this helps.

Re: Plutext enterprise version

PostPosted: Thu Oct 04, 2018 12:37 pm
by trytoplay38
Good day jason,

i have tried the commercial version, and i realize, after the conversion, the chinese character will be all become square. So how do i make sure the conversion will look exact the same with the docx file?

Re: Plutext enterprise version

PostPosted: Thu Oct 04, 2018 7:27 pm
by jason
You'll need to:

1. install it locally
2. add a font which contains the glyphs you need (you can add the font to the OS font dir or to the converter's install dir), ideally, the actual font used in the document
3. edit fonts.xml (you'll find it in the converter's install dir)

For example, suppose I have a document which uses fonts SimHei and 華康中黑體
but on my computer, I only have SimSun and Arial Unicode MS available.

I would place entries like the following in fonts.xml:
Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  <font name="SimHei">
    <fallback name="SimSun"/>
    <fallback name="Arial Unicode MS"/>
  </font>

  <font name="華康中黑體">
    <fallback name="SimSun"/>
    <fallback name="Arial Unicode MS"/>
  </font>
 
Parsed in 0.001 seconds, using GeSHi 1.0.8.4


After editing fonts.xml, be sure to restart the pds conversion service, so it re-reads fonts.xml

Re: PDF Converter - Chinese fonts/glyphs

PostPosted: Thu Oct 04, 2018 7:44 pm
by trytoplay38
wow it works, but im wondering that the pdf file now got the water mark ## Evaluation Use only ##, how do i make it disappear?

Re: PDF Converter - Chinese fonts/glyphs

PostPosted: Thu Oct 04, 2018 9:54 pm
by jason
Buy a license, then install the license key :-)

For more info, please email sales@plutext.com

Re: PDF Converter - Chinese fonts/glyphs

PostPosted: Thu Oct 04, 2018 10:15 pm
by trytoplay38
with the license, can we configure before the conversion? because i noticed that my document layout will run out after the conversion.

Re: PDF Converter - Chinese fonts/glyphs

PostPosted: Fri Oct 05, 2018 2:31 pm
by jason
Sorry, I don't understand the question?

Re: PDF Converter - Chinese fonts/glyphs

PostPosted: Fri Oct 05, 2018 2:40 pm
by trytoplay38
what i mean was, can we configure anything to make sure the PDF is the exactly the same look as the docx?

because i'm using the commercial converter to convert docx to pdf, i can see some layout is off compare with the docx.

Re: PDF Converter - Chinese fonts/glyphs

PostPosted: Sat Oct 06, 2018 7:49 am
by jason
Generally speaking, if the PDF looks different to one output from Word, its a bug or an enhancement/feature request.

Right now, the main thing missing is comprehensive support for DrawingML/VML. You can work around this by avoiding that (and using a plain image instead).