Planet PDF Forum Archive

Planet PDF  ForumThe page you are viewing is part of our 160,000 page discussion forum archive. See below for PDF-related discussions spanning 1999-2008. To ask questions and get help, head to the live Planet PDF Forum.


How to search this archive. The quickest way is to use the filters on our Advanced Search page so that only archive pages are included in the results.


Previous | Next | (P-PDF) Developers


Topic: Adjusting annotation & text string position & widt
Conf: (P-PDF) Developers, Msg: 32401
From: aandi
Date: 1/9/2002 12:10 AM

>Sorry, I am not following this too well
>?
>You are refering to the old and new font
>width above,
>right ?

I assume that only one font is involved, that you are replacing the text "Pattern" with some other text in the same font.

So, you need a table containing the width of each character in that font, either at a standard sized or scaled to the size you are showing the font at.

You then can calculate the width of the string. I think you are looking for shortcuts. There are none; it is up to you to calculate everything about where the text is placed.

Once you have worked out the width, you can set the text's start position.


I should probably add a comment at this point, because I can answer your questions but ultimately I do not believe it will help you. Your approach is a common mistake. In my view it is completely wrong. The problem only seems to be simple; it is actually extremely complex, and you have not yet looked into the issue of fixing the PDF file which you will damage by changing the length of the stream.

Frankly, forget all idea of changing an existing PDF in this way. Instead look either at the idea of doing this task with PDF forms, or generate the COMPLETE PDF file from your program using a suitable programming tool.

PDF In-Depth Free Product Trials Ubiquitous PDF

Pitstop Pro

Now graphic arts professionals have even broader and more expert control over their PDF documents. With...

Download free demo

ARTS PDF Aerialist

The ultimate plug-in for Adobe Acrobat and #1 selling product at PDF Store. Advanced splitting, merging,...

Download free demo

Ubiquitous PDF: Got holiday catering?

Bret Thompson, chef and owner of LA's Milk restaurant on Beverly, has joined forces with the California Milk Processor Board to compile a set of dairy-based recipes for the holiday season.

November 20, 2008
Search Planet PDF
more searching options...




PDF Resources
Platinum Sponsor
Create & Edit PDF - Nitro PDF Software

ARTS PDF

Silver Sponsors

PDF-Tools enfocus

FileOpen PDFNet SDK: PDF Component. Cross-platform PDF library

PDF Converter: Create, Convert PDF to Word/Excel Visual Integrity: Convert, Create, Extract, Merge and Modify PDF

Debenu: Desktop Document Management, Archiving and Tagging Software SmartSoft

Get Nitro PDF Professional
Featured Product

NITRO PDF Professional

Built from the ground up, the perfect desktop PDF product for business and enterprise. Nitro PDF Professional has an uncompromising feature set so you can create, combine, edit, collaborate on and...

Featured Event

Adobe Acrobat & PDF Central Conference 2008

September 23 - 25, 2008 - Minneapolis, Minnesota

Dedicated exclusively to Adobe Acrobat and PDF, the 2008 Adobe Acrobat and PDF Central Conference presents a unique opportunity to broaden your understanding of how PDF technologies can positively affect your business productivity.

Discover the new features of Acrobat 9 and expand your knowledge of PDF technology. Participate in various educational seminars, such as Acrobat Form Fundamentals, Acrobat Security, Creating PDF Portfolios, Scripting with the new Flash Annotation in PDF, JavaScript for Acrobat, and much more.

PDF Store Categories