Re: Create PDF with spaces intact?

Subject: Re: Create PDF with spaces intact?
From: Chris Morton <salt -dot- morton -at- gmail -dot- com>
To: techwr-l -at- lists -dot- techwr-l -dot- com
Date: Tue, 6 Jul 2010 10:42:24 -0700

How about creating it in HTML, and then ouputting it to PDF?

A space is represented by the code *&nbsp;*

As an alternative, you could use the *<code>* tag to maintain the spaces,
e.g.,

<code>
myResult = dataqueue.add(12, 3)
if myResult == false then
print("Failed to add 12 to the
dataqueue")
end
</code>

> Chris

On Tue, Jul 6, 2010 at 10:07 AM, Barbara <BarbPhilbrick -at- caslonsvcs -dot- com>wrote:

> 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 salt -dot- morton -at- gmail -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/salt.morton%40gmail.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
>
>
>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

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

Previous by Author: Re: Re: Mac vs PC users
Next by Author: Re: Mac vs PC users
Previous by Thread: 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