PDF: Difference between revisions

[pending revision][pending revision]
Content deleted Content added
and only requires a very simple interpreter.
The graphics commands that the PS code outputs are collected and tokenized, any files, graphics or fonts the document references are also collected, and then everything is compressed into a single
Line 12:
That means that the process of turning PDF back into a graphic is a matter of simply reading the description, rather than running a program in the PS interpreter. However the entire PS world in terms of fonts, layout and measurment remains intact.
 
TypicallOften the PostScript-like PDF code is generated from a source PostScript file. The graphics commands that the PS code outputtedoutputs are collected and [[tokenize]]d, any files, graphics or fonts the document references are also collected, and then everything is compressed into a single file.
 
There are several advantages to the PDF format. One is that there is only a single small file to transfer, whereas with the same file in PostScript format one must send the additional materials on their own. In addition the PostScript code is already interpreted, so it is faster to display on the screen. Finally the PDF system includes a font-replacement strategy that ensures the document will be readable even if the end-user does not have the "proper" fonts installed.