swftools-common
[Top][All Lists]
Advanced

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

[Swftools-common] [PATCH] pdf2swf error: Missing or invalid Encoding ent


From: Jason Copenhaver
Subject: [Swftools-common] [PATCH] pdf2swf error: Missing or invalid Encoding entry in Type 0 font
Date: Mon, 11 Feb 2013 16:52:58 -0500

While attempting to convert the attached PDF I came across the following errors.

address@hidden:~/pdf2swf$ swftools/src/pdf2swf 200011_1_1.PDF j.swf
Error: Missing or invalid Encoding entry in Type 0 font
Error: Missing or invalid Encoding entry in Type 0 font
Error: Unknown font tag 'R8'
Error (281): No font in show/space
Error (291): No font in show/space
Error: Unknown font tag 'R10'
Error (437): No font in show/space
Error: Missing or invalid Encoding entry in Type 0 font
Error: Missing or invalid Encoding entry in Type 0 font
NOTICE  processing PDF page 1 (841x595:0:0)
Error: Unknown font tag 'R8'
Error (281): No font in show/space
Error (291): No font in show/space
Error: Unknown font tag 'R10'
Error (437): No font in show/space
NOTICE  Writing SWF file j.swf

This stems from the fact that the xpdf-3.02 that is included with pdf2swf does not handle CMap streams in fonts.  Luckily xpdf-3.03 does.

I've back-ported the relevant parts and attached them to this email.  The xpdf-changes-patch.patch is a patch against the swftools/lib/pdf/xpdf-changes.patch for applying to the git source.  However, since a patch of a patch is sometimes hard to read I've included xpdf-3.02-CMap-stream.patch which is a patch against the xpdf source included with swftools.

Jason

Attachment: 200001_1_1.PDF
Description: Adobe PDF document

Attachment: xpdf-changes-patch.patch
Description: Binary data

Attachment: xpdf-3.02-CMap-stream.patch
Description: Binary data


reply via email to

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