[reportlab-users] PDF without embedding fonts

Andy Robinson andy at reportlab.com
Thu May 13 04:45:56 EDT 2010


On 12 May 2010 21:19, Yuriy Asyutin <yasyutin at gmail.com> wrote:

> My questions are:

>

> 1. Is `Subtype/Type1` valid value for such OTF fonts and can I access

> Cyrillic glyphs by using one of the unicode encodings and creating special

> ToUnicode list?

>

> Actually, I'm not sure - am I on the right way? Or maybe I can include a

> CMap stream into PDF source and follow CID keyed appproach for Extended

> Language pack.


I am sorry to say that I have no idea at all.

The full PDF specification is available online but if that doesn't
help. To get the CID font support working, many years ago, I
basically ran Japanese 'Hello World' postscript files through
Distiller and studied the PDFs which came out in a text editor to work
out what structures needed to be in the PDF. The basic concepts of
CMaps and getting the glyph widths were clear enough, but I basically
copied properties which were known to work. Adobe's documentation
was some help, but not much.

Do you have any examples of real-world PDFs which display Cyrillic but
don't contain any fonts? If so, please show us one and maybe we can
see how it is done. I wonder if they work for you, but for a Western
user Acrobat will prompt them to download an extra font pack? The
only other approach I can see is to convert all glyphs to bezier
curves, which would be very slow.


Best Regards,

--
Andy Robinson
CEO/Chief Architect
ReportLab Europe Ltd.
Media House, 3 Palmerston Road, Wimbledon, London SW19 1PG, UK
Tel +44-20-8545-1570


More information about the reportlab-users mailing list