Planet PDF Forum Archive

Planet PDF ForumWowsers! This is page is old, head to the LIVE Planet PDF Forum. It features more than 10 conferences, covering everything from beginner to in-depth developer and pre-press discussions. If you wish to continue... one & two archive covers 1999-2011 (160,000 pages).


New Forum | Previous | Next | (P-PDF) Developers


Topic: Acrobat Viewer Character Set When Printing
Conf: (P-PDF) Developers, Msg: 82166
From: MasoudP
Date: 3/3/2003 10:50 AM

Does anyone know how the Acrobat PDF Viewer assigns character sets when it prints a PDF document?

(You can also email me at amp834@yahoo.com)

Details:
When I print pdf files through the Acrobat Viewer, the viewer seems to create its own local character set (or font encoding?), even if the original pdf document has standard ANSI or Windows encoding.

It doesn't seem to do this all the time--sometimes, it uses the fonts as-is, and I can extract the characters ok.

I'm trying to decode the characters to extract text out of it. (I already have other programs that extract text without using the Acrobat Viewer to "Print", and can use them as a last resort, but would rather get this question resolved).

In the FONTOBJ glyph table, glyph #37 maps to the 'A' character (ASCII 65); internally, glyph 37 maps into character # 61663 = 0xf0df, which is the "user defined" portion of the unicode table. The "Unicode String" given to the print driver is also 61663.

An alternative option: Can the Acrobat Viewer can be configured to use "Unicode Encoding" when it prints?

The Glyph table, dumped from a print driver, is below. Acrobat creates a temporary font and assigns its own character codes.

IFIMETRICS, wcFirstChar=0, wcLastChar=61695, wcDefaultChar=31, wcBreakChar=32
chFirstChar=30, chLastChar=255, chDefaultChar=31, chBreakChar=32
lCharBias=61440, flInfo=xa8071, IFIMETRICS=0x23809d8

FamilyName=ZTR156.tmp dpwszStyleName=Regular dpwszFaceName=ZTR156.tmp UniqueName=This is a unique ID
Font-Xlat Type=0x8005, Accel=0x4, Uniq=5030, GlyphCnt=480
(glyph-set flAccel=x4 cGlyphsSupported=480 cRuns=45)
(glyph run #0 of 45)
(glyph 0 --> 0)
(glyph 0 --> 1)
(glyph 0 --> 2)
(glyph 0 --> 3)
(glyph 0 --> 4)
(glyph 0 --> 5)
(glyph 0 --> 6)
(glyph 0 --> 7)
(glyph 0 --> 8)
(glyph 0 --> 9)
(glyph 0 --> 10)
(glyph 0 --> 11)
(glyph 0 --> 12)
(glyph 0 --> 13)
(glyph 0 --> 14)
(glyph 0 --> 15)
(glyph 0 --> 16)
(glyph 0 --> 17)
(glyph 0 --> 18)
(glyph 0 --> 19)
(glyph 0 --> 20)
(glyph 0 --> 21)
(glyph 0 --> 22)
(glyph 0 --> 23)
(glyph 0 --> 24)
(glyph 0 --> 25)
(glyph 0 --> 26)
(glyph 0 --> 27)
(glyph 0 --> 28)
(glyph 0 --> 29)
(glyph 0 --> 30)
(glyph 0 --> 31)
(glyph 4 --> 32)
(glyph 227 --> 33)
(glyph 226 --> 34)
(glyph 225 --> 35)
(glyph 224 --> 36)
(glyph 223 --> 37)
(glyph 222 --> 38)
(glyph 221 --> 39)

... additional items left out


PDF In-Depth Free Product Trials Ubiquitous PDF

Debenu Aerialist

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link...

Download free demo

Debenu PDF Tools Pro

It's simple to use and will let you preview and edit PDF files, it's a Windows application that makes...

Download free demo

Back to the past, 15 years ago! Open Publish 2002

Looking back to 2002, it's amazing how much of the prediction became a reality. Take a read and see what you think!

September 14, 2017
Platinum Sponsor





Search Planet PDF
more searching options...
Planet PDF Newsletter
Most Popular Articles
Featured Product

Debenu PDF Aerialist

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link control. Take Acrobat to the next level.

Features

Adding a PDF Stamp Comment

OK, so you want to stamp your document. Maybe you need to give reviewers some advice about the document's status or sensitivity. This tip from author Ted Padova demonstrates how to add stamps with the Stamp Tool along with related comments.