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: How to set standard font encoding
Conf: (P-PDF) Developers, Msg: 54029
From: martinhadfield
Date: 5/29/2002 05:03 PM

I am developing a PERL solution to alter text within a
PDF using a search and replace routine.

I generate a PS file and distill it as PRESS OPTIMISED
with all fonts embeded, no subsets & no compression on
text or image data in ASCII format linearised.

Most type 1 fonts generate the font widths I require as
follows:

6 0 obj
<<
/Type /Font
/Subtype /Type1
/FirstChar 32
/LastChar 181
/Widths [278 250 354 584 500 708 688 188 292 292 448
584 198 250 198 281
521 521 521 521 521 521 521 521 521 521 198 198 584 584
584 354
1010 521 510 552 656 510 417 604 698 240 240 563 417
813 688 656
448 656 531 458 510 635 510 927 667 490 583 333 281 333
469 500
333 469 469 385 469 438 271 427 469 188 188 458 188 740
469 448
490 469 313 354 281 469 375 615 427 375 458 333 260 333
584 278
278 278 278 278 278 278 278 278 278 278 278 278 278 278
278 278
278 278 278 278 278 278 278 278 278 278 278 278 278 278
278 278
278 278 385 469 278 278 278 278 278 740 278 278 278 278
278 278
278 584 278 278 278 552 ]
/Encoding /WinAnsiEncoding
/BaseFont /GillSans-Italic
/FontDescriptor 24 0 R
>>
endobj

My probem is that some type 1 fonts create an object
specifing the following:

4 0 obj
<<
/Type /Font
/Subtype /Type1
/FirstChar 1
/LastChar 8
/Widths [225 441 437 504 389 624 314 441 ]
/Encoding 28 0 R
/BaseFont /ArrowBlack
/FontDescriptor 20 0 R
/ToUnicode 29 0 R
>>
endobj

29 0 obj
<<
/Filter [/ASCII85Decode /FlateDecode]
/Length 336

which means the ASCII data for the text is
unsearchable chars (without decoding)

but if I use PDF writer it seems to solve this and
convert all fonts with full 256 byte font width data,
however PDF writer is limited in other areas.

Is it possible to make all fonts embed with all font
widths and make the text strings true ASCII f


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.