Spaces and tabs are lost after copy from a PDF.

coparu67

Senior Member
I export a program to PDF.
I open the PDF, select all and copy.
New BASIC in PE6, I paste.
All spaces and tabs are lost.
Why?
 

Technical

Technical Support
Staff member
This is an issue with your pdf viewer, the spaces are still in the exported pdf (if they weren't it wouldn't display correctly).
 

Technical

Technical Support
Staff member
When you export to a different file format, particularly PDF or html, and then back again you should expect problems with whitespace no matter what viewer you use. For instance web browsers (html) do not support tab characters at all for alignment (you are expected to use tables in html). PDF also translates various characters differently, for instance tabs can become spaces.

Hence if you want to maintain whitespace exactly save as a raw text file (.bas or .txt), do not try to use pdf or html.
 

techElder

Well-known member
For some of this reasoning, I don't use TABS in my source code. I use SPACES because they are more universally adjustable. :)

Which brings up mono-spaced fonts. If your PDF file format converts to a NON-mono-spaced font, then your alignments will be terribly adjusted.
 
Top