About Problems of PDF

About Problems of PDF

About Problems of PDF Harald Krottmaier Institute of ComputerGraphics and Knowledge Visualization Graz, University of Technology 8010 Graz, Austria ABSTRACT History For distributing electronic documents the document for- PostScript, an electronic document format — but also mat is a key factor. The Portable Document Format even a programming language for describing the lay- (PDF) is very popular for text-based documents. Cur- out of pages — was developed in 1984. The first ver- rently also 3D-documents are distributed using that for- sion was known as PostScript Level 1. Beside text it mat. PDF is also very often used as primary document was possible to describe graphic-elements in PostScript format for lecture notes. Unfortunately there are some (which was not common in those days). PostScript problems related to the format especially when inter- Level 2 was published in the early 90s with performance activity is an issue in such teaching and learning envi- and memory-management improvements (beside other ronments. On the one hand it is necessary to person- improvements). Before PostScript was implemented in alize content for each user, therefore documents must printing-devices the code was written by experts using be adapted to user’s preferences. On the other hand some text-editor. Comments, operators (such as add and users have to interact with others via documents, i.e. mul) as well as variables, procedures etc. were available they want to make some comments for other users on to describe the page layout. the topic. In PDF comments (aka annotations) are sup- ported. However, one needs to install special tools for However, this layout-oriented document format was not using that feature of the document format. To over- intended to be modified. Since PostScript is a type of come this problem documents must be enhanced on the final output-format, modifications must be realized by server-side before being transfered to users. In this arti- some other program (e.g. the word-processor, desktop- cle we report about such an enhancement. publishing system or any other software) using the ori- gin document format. Keywords: Electronic Documents, Format The successor of PostScript — PDF, the Portable Doc- ument Format – was developed in 1991 and brought to market in 1992. Internet at this time was still in its in- fancy. 1 INTRODUCTION PDF 1.1 (1994) was an improvement of version 1.0 in- troducing new features such as annotations and exter- nal links. Color-management and form-based features PDF was developed by Adobe in the early 90s. Adobe were introduced in PDF 1.2. PDF/X-1 (1998), PDF 1.3 was (and still is) well known in the field of electronic (1999) and PDF 1.4 (2000) are continued enhanced publishing and layout oriented document formats. The versions of PDF. Mainly variations of paper-size, inte- first popular layout-oriented document format devel- grated security (i.e. digital signatures), integration of oped by Adobe was PostScript. This format is still in JavaScript as well as “tagged PDF” (additional infor- use and after all those years still popular. mation about the structure of a document and therefore additional features when displaying documents on dif- In this introducing section we take a look at the historic ferent output-devices) are the main improvements. Cur- development of PDF to understand the intentions and rently PDF 1.5 (2003) is the latest version. Specifica- enhancements of the format over the time. Thereafter tions of PDF are freely available at Adobe’s website. we analyze the internal structure of the format. From the historical development it will become clear, that con- The intention of PDF was to enhance and extend fea- ventional PDF-documents are inapplicable in teaching tures available in PostScript. PDF is the “PostScript for and learning environments due to its strong static be- the Web”. On the one hand, text and graphics should be havior. PDF was not designed to be manipulated by displayed in high quality, on the other hand the docu- users. A short summary of available tools will close ment should also be transfered to the user via the inter- this section. net as fast as possible. PDF should also be displayed at 116 SYSTEMICS, CYBERNETICS AND INFORMATICS VOLUME 4 - NUMBER 6 ISSN: 1690-4524 user’s side as fast as possible. Compared to PostScript line indicating the version of the document. To some statements such as if and while disappeared. give an example: Therefore a faster rendering is possible. %PDF-1.2 Structure of PDF would indicate that the PDF-document follows the PDF 1.2 specification. Software for rendering PDF Some of the features available in PDF were already on screen require this information. mentioned in the previous subsection. However, to understand features let us take a look at the physical document structure. One may distinguish three differ- body: in this section the objects of the document are ent types of information in the document. Information stored in a simple tree structure. An example is about: shown in figure 2. The catalog-dictionary is the root of the header, were single pages are stored (by • object means of different single objects). Thumbnails, an- notation to pages, hyperlink-targets etc. are stored • memory and in this body. • document structure Catalog We do not want to go into great detail of each of these types of information. One may imagine, that differ- Pagetree Outlinetree Form Article Threads ent subtypes of these information are specified. To give just a short example: Different subtypes of object- information are boolean, numbers, strings, names, Page x Page y Entry i Entry j fields, dictionary, streams etc. A very specific type is the stream type. Let us take a quick look at it. Content Annotations Thumbnail Streams may be read incrementally. In addition to this aspect, it is possible to compress streams using different Figure 2: Header of a PDF-Document algorithms. Therefore it is possible to display parts of documents even before they are completely transfered to user’s client. This is a very important feature in the context of an internet-environment. cross-reference table: to make it easier to find ob- jects, there is a reference table using 10 num- 10 PDF−Document bers (this limits the document to 10 Bytes, i.e. about 10 GBytes). Objects are identified by object- numbers. Header trailer: a special trailer-dictionary with references to Body important objects of the documents. This trailer makes it easier for applications to access objects Cross−Reference Table of documents faster. The last line of the trailer is %%EOF. Trailer PDF is not a structured document format such as XML. Parts of the document may be compressed to enable faster download, or the document may be encrypted. Figure 1: Physical Structure of a PDF-Document PDF is a very complex document format. It is layout- oriented and therefore it is not possible to address sin- gle words or paragraphs. When target-links are em- To understand other features (such as annotations) it is bedded in the document, it is possible to display di- necessary to take a look at the physical structure of a rectly the target when opening the document using spe- document (see figure 1). cial commandline-parameter (e.g. when using xpdf as PDF-viewer). Nevertheless, target-links (i.e. destina- tions) are not available per se. They must be created by header: there is exactly one header in a PDF- the document author. Therefore the author must know document. Any other part of the structure may ex- in advance which parts of the document might be of in- ist several times. The header consists of just one terest to users. ISSN: 1690-4524 SYSTEMICS, CYBERNETICS AND INFORMATICS VOLUME 4 - NUMBER 6 117 Tools too complex to be edited without the use of tools. In the next section we will give and overview of requirements As explained in the previous section, the structure of of electronic teaching-material. PDF documents is stored in form of a tree and nodes (partly in compressed form). Additionally reference tables and catalogs must be available for programs working with documents. Having this knowledge it 2 REQUIREMENTS OF is obvious that PDF can’t be converted from existing document-formats, manipulated or created in an easy TEACHING-MATERIAL way without tools. Therefore tools were developed to make it easier to work with PDF documents. To men- In this section we will discuss requirements for tion just a few of existing tools: teaching-material from different points of view. We do PS2PDF: Many freely available tools allow a con- not limit the discussion to a specific area of teaching. version between PostScript and PDF. Due to the The presented list is not indented to be comprehensive similar features of these two document formats (e.g. we do not cover aspects of intellectual properties, it is easily possible to write these programs. In evaluation of courses, support of administrative tasks the Windows-world tools such as Acrobat-Distiller etc.). ([4]) or Ghostscript ([5]) are available. Outdated versions of Distiller are available for Macintosh- Student’s View and Solaris-platform. printable: Online material can’t easily be read on the creation of PDF: Within applications it is easy to print beach. Since learning-process takes place in differ- to files formated in PDF. Adobe distributes printer- ent environments, it is very useful to print learning- drivers which additionally create links in the PDF material and take it wherever possible. In this case documents. For LAT X documents a PDF genera- E the limitation is the number of pages. It is not tor (known as pdflatex) is available.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    5 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us