swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Swftools-common] A bug about pdf2swf, the font missed in swf file


From: Yi-bo Liu
Subject: [Swftools-common] A bug about pdf2swf, the font missed in swf file
Date: Wed, 8 May 2013 23:50:42 +0800

Dear developers,
I have a pdf file.  I want to convert it to swf file by pdf2swf(pdf2swf -o aa.swf test.pdf). There are some errors prompted as below:
 
Error: Couldn't create a font for 'BDKVMJ+SimHei'
ERROR   Internal error: No current splash fontinfo
ERROR   Internal error: No current splash fontinfo
ERROR   Internal error: No current splash fontinfo
NOTICE  processing PDF page 1 (531x666:0:0)
ERROR   Invalid charid 6264 for font 00c79718 (0 characters)
ERROR   Invalid charid 3 for font 00c79718 (0 characters)
ERROR   Invalid charid 3883 for font 00c79718 (0 characters)
NOTICE  Writing SWF file aa.swf
 
After converted, I checked the aa.swf. Some characters missed. The font of the missed characters is "BDKVMJ+SimHei". I also dumped the fonts information by pdffonts (xpdf tools). Below is the information:
 
name                                 type              emb sub uni object ID
------------------------------------ ----------------- --- --- --- ---------
Helvetica                            Type 1            no  no  no       7  0
BDKVMJ+SimHei                        CID TrueType      yes yes yes     13  0

Then I download the "Chinese/simplified" fonts at "http://www.foolabs.com/xpdf/download.html". Setup it and converted it again with the below command:

pdf2swf -o aa.swf test.pdf -f -T 9 -t -s storeallcharacters -s languagedir= "c:\xpdf\chinese-simplified\"

The same errors prompted and the the characters missed either. Maybe the failed reason is because my mistake. Would you like tell me how to convert it? The test.pdf is attached for you reference.
The pdf2swf I used is the latest version (swftools-2013-04-09-1007.tar.gz). OS is windows XP SP3.
 

Best Regards,
zhexu

Attachment: test.pdf
Description: Adobe PDF document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]