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.
Sounds like no one else has found a solution to this.
The basic problem is that to compress the files, the PDF identifies a fixed
starting point for a line of text and gets rid of leading spaces. So unless
we can fool it into thinking our spaces aren't really spaces, users can't
copy spaces out of the PDFs.
For us, this is a style issue (our code doesn't require indents).
But if anyone has found a solution, we would be interested.
Thanks,
Barb
-----Original Message-----
From: techwr-l-bounces+barbphilbrick=caslonsvcs -dot- com -at- lists -dot- techwr-l -dot- com
[mailto:techwr-l-bounces+barbphilbrick=caslonsvcs -dot- com -at- lists -dot- techwr-l -dot- com] On
Behalf Of Barbara
Sent: Tuesday, July 06, 2010 1:08 PM
To: techwr-l -at- lists -dot- techwr-l -dot- com
Subject: Create PDF with spaces intact?
We are creating a PDF that contains code snippets that we are encouraging
users to copy and paste into their own applications.
We have noticed that the code loses spaces in the PDF output. So the
following bit of code:
myResult = dataqueue.add(12, 3)
if myResult == false then
print("Failed to add 12 to the
dataqueue")
end
Would come out as:
myResult = dataqueue.add(12, 3)
if myResult == false then
print("Failed to add 12 to the
dataqueue")
end
Not the end of the world (the code still works), but it would be nice if
they could maintain the formatting. Has anyone found a way around this?
Text is created from Word 2003 and converted to PDF using Acrobat Distiller
8.
Regards,
Barb
Barbara Philbrick
Caslon Services Inc.
Aurora, OH
330-995-0499 http://caslonsvcs.com
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-