<html>
<body>
Kenneth,<br><br>
The problem is caused by the very nature of PDF and its ancestor
PostScript.&nbsp; There are no &quot;margins&quot; on a PDF page.&nbsp;
Each character is placed at a specific absolute point on the page (well,
more precisely, the first character of each little group of sequential
contiguous characters is placed at such a point and the subsequent
characters in the group are placed at that same point plus a horizontal
offset determined by the &quot;width&quot; of the preceding
character(s)). <br><br>
Thus, if you have the following text:<br>
=====<br>
This is some sample text.<br>
&nbsp;&nbsp; This indents 3 spaces.<br>
This is more text.<br>
=====<br>
the second line does not &quot;start&quot; at the same place as the first
and third lines.&nbsp; It starts at its own left-most point without any
preceding space characters at all.&nbsp; The fact that the starting point
for the second line is offset to the right&nbsp; from the starting point
of the first and third lines by three times the width of a space
character is not captured in the PDF data at all. <br><br>
Therefore, when you copy text from the PDF file, there *are no spaces* at
the start of indented lines to be copied.&nbsp; Period. <br><br>
Try generating some PDF (in non-compressed mode) from any application,
including Acrobat (as well as XEP) and looking at the internal structure
of such lines. <br><br>
Hope this helps,<br>
&nbsp;&nbsp; Jim<br><br>
<br>
At 7/11/2005 02:49 AM, Kenneth Johansson wrote:<br>
<blockquote type=cite class=cite cite="">
<font face="arial" size=2 color="#0000FF">Hi David,<br>
</font>&nbsp;<br>
<font face="arial" size=2 color="#0000FF">In general I agree with you
that HTML might be a better choice for online reading, but the readers
require PDFs in this case, so creating another format is not an option.
<br>
</font>&nbsp;<br>
<font face="arial" size=2 color="#0000FF">We use CHM and PDF for User
guides and PDF for sysadm, installation and upgrade guides.<br>
</font>&nbsp;<br>
<font face="arial" size=2 color="#0000FF">The installation engineers use
the PDF both online and in binders. Mostly they copy commands but
occasionally they copy chunks of code, like this:<br>
</font>&nbsp;<br>
<font face="arial" size=2 color="#0000FF">WISE =<br>
(DESCRIPTION =<br>
(ADDRESS_LIST =<br>
(ADDRESS =<br>
(PROTOCOL = TCP)(HOST = &lt;WISE_HOST&gt;)(PORT = 1521)<br>
)<br>
)<br>
(CONNECT_DATA = (SERVICE_NAME = WISE)<br>
)<br>
)<br>
</font>&nbsp;<br>
<font face="arial" size=2 color="#0000FF">which was copied from a PDF
loosing all the indention. <br>
</font>&nbsp;<br>
<font face="arial" size=2 color="#0000FF">Btw, I don't have a problem
with tabs since we don't use tabs in our programlistings, but rather with
whitespaces which I'd expect would be available in the PDF.<br>
</font>&nbsp;<br>
<font face="arial" size=2 color="#0000FF">/Kenneth<br>
</font></blockquote>
<x-sigsep><p></x-sigsep>
========================================================================<br>
Jim Melton --- Editor of ISO/IEC 9075-* (SQL)&nbsp;&nbsp;&nbsp;&nbsp;
Phone: +1.801.942.0144<br>
&nbsp; Co-Chair, W3C XML Query WG; F&amp;O (etc.)
editor&nbsp;&nbsp;&nbsp; Fax : +1.801.942.3345<br>
Oracle Corporation&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Oracle
Email: jim dot melton at oracle dot com<br>
1930 Viscounti Drive&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Standards email: jim
dot melton at acm dot org<br>
Sandy, UT 84093-1063
USA&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Personal email:
jim at melton dot name<br>
========================================================================<br>
=&nbsp; Facts are facts.&nbsp;&nbsp; But any opinions expressed are the
opinions&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =<br>
=&nbsp; only of myself and may or may not reflect the opinions of
anybody&nbsp;&nbsp; =<br>
=&nbsp; else with whom I may or may not have discussed the issues at
hand.&nbsp; =<br>
========================================================================</body>
</html>