Scrambled font

The PDF Creator enables you to create secure PDF documents and to view, print and process existing PDF documents.
If you have any questions about the installation and usage of the PDF Creator please post them here.
Post Reply
TDWiseley
Posts: 18
Joined: Wed Jul 18 2007

Scrambled font

Post by TDWiseley » Tue May 19 2009

Occasionally we need to parse a PDF document, and the text seems to be scrambled. The Fonts tab of Document Properties in Adobe Reader may say

Tahoma+1(Embedded)
Type: TrueType
Encoding: Built-in

If I try to extract text using either '(string)ACPDFCREACTIVEX.IacObject["Text"] or axPDFCreactiveX1.GetRawPageText(1), I get something similar to "=0B?,'1-7,;?:" rather than the actual text displayed (font issue?). PDF Suite Destop Edition displays the correct text, but I suspect it is using the funky font to display it.

How do I extract the text as displayed in the PDF?

Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Re: Scrambled font

Post by Joan » Wed May 20 2009

What version of the PDF Creator are you using?
Custom Brand the Amyuni PDF Printer Driver http://www.amyuni.com/en/developer/branding/index.html

Amyuni PDF Converter tested for true PDF performance. View results - http://www.amyuni.com/benchmark

TDWiseley
Posts: 18
Joined: Wed Jul 18 2007

Re: Scrambled font

Post by TDWiseley » Wed May 20 2009

I got essentially the same results in both 3.1 and 4.0

Jose
Amyuni Team
Posts: 549
Joined: Tue Oct 01 2002
Contact:

Re: Scrambled font

Post by Jose » Thu May 21 2009

Hello,

We had another customer with a similar issue and setting the OptimizeDocument option resolved this situation.

Example:
axPDFCreactiveX1.OptimizeDocument 1


Thanks
Jose
Get PDF Suite, the expert .NET developer toolkit for PDF conversion, creation and editing - www.amyuni.com/pdfsuite

Post Reply