TechWhirl (TECHWR-L) is a resource for technical writing and technical communications professionals of all experience levels and in all industries to share their experiences and acquire information.
For two decades, technical communicators have turned to TechWhirl to ask and answer questions about the always-changing world of technical communications, such as tools, skills, career paths, methodologies, and emerging industries. The TechWhirl Archives and magazine, created for, by and about technical writers, offer a wealth of knowledge to everyone with an interest in any aspect of technical communications.
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-