Planet PDF Forum Archive

Planet PDF ForumThe page you are viewing is part of our 160,000 page PDF discussion forum archive spanning 1999-2008. Would you believe we have a 2nd forum archive which covers 2008 - 2011? But... if you really want to bust-a-move head to the LIVE Planet PDF Forum. It features more than 10 conferences, covering everything from beginner discussions to in-depth developer and pre-press discussions.


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: 32388
From: mcwong
Date: 1/8/2002 05:58 PM

Hi

I am working on a program that process the following
input:

1) PDF converted from Word format
2) One single text string which also has an annotation
associated with it.

For example:


Pattern
-------

The text string is basically just "Pattern" in this
case and is position at the central of the page.
The associated annotation can either be /Filespec
or /URI type.

The text string itself is also underlined because in
the original Word document, it's of Hyperlink type.

My questions:

1) If the text string "Pattern" is replaced with a
different length (ie. longer or shorter )
string, what is the right way to work out the new
central position X coordinate position ? Is there
any PDF operator that does this already ?

2) Because the "underlining" effect of the text string
is also a result of the Hyperlink type in Word
document, how can I change that underlining length
in PDF ? I have kind of manuallyplayed around a bit
with the 're' operator following the text string and
was able to see the underlining shifts around a bit
but I have yet to understand properly how it can
be accurately calculated on the fly.


A snippet of the PDF file looks like the following:

BT
% .... some other stuff up here ...
/TT6 1 Tf
15.96 0 0 15.96 222.4 456.32 Tm
0 0.216 0.596 sc
0 Tw
[(Test)]
ET
222.4 453.56 150.6 1.68 re
f
% ... some other stuff down here ...
ET


Can any PDF expert please offer some help here ?

Thanks in advance.

MCW

PDF In-Depth Free Product Trials Ubiquitous PDF

LockLizard Safeguard PDF Security

Made specifically for publishers of high value information published in PDF format, it protects your PDF...

Download free demo

ARTS PDF Aerialist X

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

Download free demo

Ubiquitous PDF: DIY PDF magazines, courtesy of CNET and Magazinify

Thanks to Magazinify.com, it's possible to have web articles delivered right to your inbox in PDF form. If that weren't enough, the nice folks at CNET have been nice enough to publish a step-by-step guide about how to set this all up using just a little time and a free Magazinify account.

September 06, 2011
Search Planet PDF
more searching options...
PDF Resources
Platinum Sponsor

ARTS PDF

Create & Edit PDF - Nitro PDF Software

Silver Sponsors

LockLizard DRM PDF Security Quick PDF Library: The Unrivaled PDF Developer Toolkit

Featured Product

ARTS PDF Crackerjack X

The most popular Acrobat plug-in for PDF-based color print production and automation.

Featured Event

Adobe Digital Marketing Summit

March 20-23, 2012 -- Salt Palace Convention Center, Salt Lake City, Utah

The Digital Marketing Summit is the premier event for digital marketers and advertisers to learn about and share key strategies for driving marketing innovation. Attend Summit to learn how you can create, measure, and optimize digital experiences to revolutionize how the world engages with ideas and information.

PDF Store Categories