MS Word to PDF loses spaces

I have a word file, which contains some code in a text box (written with courier) and nicely aligned on the right side of the code there are comments. Since this code came from real life, the alignment of the comments is via spaces. Like:

if (something == somethingElse)   /* Is something equal to something else? */
{                                 /* If yes */
     doSomething();               /* Then do something */
}                                 /* And we are done */

Now, I save this document as PDF, and it looks very good, comments are nicely aligned. However if I copy/paste from the PDF into a normal text editor (Notepad) the comments are not aligned anymore, seems the PDF has eaten all the spaces (and yes, in the Acrobat viewer I cannot see any space character, the comments just seem to be there after the line). This is what I get after pasting from the word:

if (something == somethingElse) /* Is something equal to something else? */
{ /* If yes */
doSomething(); /* Then do something */
} /* And we are done */

So the question: How do I save the file as PDF to have the spaces back?

链接地址: http://www.djcxy.com/p/36414.html

上一篇: Chrome中的HTML / JavaScript和ActroJS通信

下一篇: MS Word到PDF失去了空格