Re: Create PDF with spaces intact?

Subject: Re: Create PDF with spaces intact?
From: Paul Goble <pgcommunication -at- gmail -dot- com>
To: TECHWR-L <techwr-l -at- lists -dot- techwr-l -dot- com>
Date: Tue, 6 Jul 2010 16:28:21 -0500

I think the problem in question--one which is also an annoyance for
me--is that the code snippet appears correctly in the PDF, but when
the code is copied from the PDF, leading spaces are not copied to the
clipboard.

This happens because PDF encodes the visual appearance of a document.
A PDF text object is defined as a line of characters beginning at
particular X-Y coordinates. To keep the PDF file small, these are
normally the coordinates of the first *visible* character. There's a
great summary on how PDF works at
<http://www.pdf-tools.com/public/downloads/whitepapers/whitepaper-pdfprimer.pdf>.

Another way to state the question is: "Is there a way to tell Acrobat
to encode leading spaces in a text object?" Or perhaps, "Is there
another sort of object I can embed into a PDF file which would allow
the user to copy literal text to the clipboard?"

The best solution may be to provide a companion text file or Web site
for the examples.

--
Paul Goble
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Gain access to everything you need to create and publish information
through multiple channels. Your choice of authoring (and import)
formats with virtually any output. Try Doc-To-Help free for 30-days.
http://www.doctohelp.com/


---
You are currently subscribed to TECHWR-L as archive -at- web -dot- techwr-l -dot- com -dot-

To unsubscribe send a blank email to
techwr-l-unsubscribe -at- lists -dot- techwr-l -dot- com
or visit http://lists.techwr-l.com/mailman/options/techwr-l/archive%40web.techwr-l.com


To subscribe, send a blank email to techwr-l-join -at- lists -dot- techwr-l -dot- com

Send administrative questions to admin -at- techwr-l -dot- com -dot- Visit
http://www.techwr-l.com/ for more resources and info.

Please move off-topic discussions to the Chat list, at:
http://lists.techwr-l.com/mailman/listinfo/techwr-l-chat


References:
Create PDF with spaces intact?: From: Barbara
Re: Create PDF with spaces intact?: From: Tim Murray

Previous by Author: Re: screen capture s/w for a stick/thumb drive
Next by Author: Re: Word "Final" versus pdf
Previous by Thread: Re: Create PDF with spaces intact?
Next by Thread: RE: Create PDF with spaces intact?


What this post helpful? Share it with friends and colleagues:


Sponsored Ads