PDF

From MobileRead
(Redirected from Pdf)
Jump to: navigation, search

PDF stands for Portable Document Format and was created in 1993 by Adobe Systems for the interchange of documents. This article will focus on the use of PDF files for Mobile eBook reading.

Contents

[edit] Overview

Initially PDF was designed as a print format similar to PostScript and even today it is often used to exchange data that will be printed. Since it was designed as a print format it specifies the size of the paper that is needed to reproduce (render) the original. PDF is now an open standard ISO 32000-1. The standard does not encompass all versions or all capabilities.

Since PDF is designed for printing it is generally defaulted to letter size for US documents and A4 for Europe (See Paper sizes). To display such a page on a computer or eBook screen at full size would require a 14" or larger screen display. Most portable devices do not have screens nearly this big so they will often shrink the page to the point of not being readable or zoom in to just part of the page causing the reader to pan the page around to try and read it.

While a PDF is always arranged by pages there is no reason that a better aspect ratio or smaller size cannot be generated when targeting an electronic device. A half A size works well to display on most devices and can be printed using 2 pages per paper sheet in landscape mode.

[edit] Content

A PDF file may contain several types of data. These include Text, Raster Graphics, Vector Graphics (SVG), Fonts (Glyphs), and meta data. PDFs can also contain links and buttons, form fields, audio, video, and business logic. They can also be signed electronically. Not all PDF files contain all of the types of data and some PDF files are different from what they seem. For example a PDF file might look like it has text in it while in fact the PDF is displaying images (pictures) that contains text. Text, displayed in this fashion, behaves differently from regular text when the file is manipulated by the display software. This image/text data may be, and likely will be, stored using JBIG2 compression.

A PDF file that is made of images may also include a layer of actual text that is not displayed. It provides the ability to search the text in the document. However, often it is created via the OCR process and may not match the displayed text due to OCR errors. See OCRmyPDF for a tool that can add text to an image PDF.

A PDF file, by its very nature, contains pages of information that are to be displayed or printed. The size and rotation of these pages is determined when the file is built, although it can change from page to page. It is possible to zoom into or out of a page of data to make it seem larger or smaller using the capabilities of some viewing software. This sets PDF files apart from many other eBook formats because most of the latter provide data that is not constrained to a page boundary or required to conform to placement on a fixed size page.

[edit] Tables

A PDF file may contain tables but there is usually no intelligence to a table's construction. It consists of text placed at specific places on the page together with some line graphics. This looks like a table to the reader but it is not possible to reverse the process and extract a table from the data base. A table may also exist as an image in the file.

[edit] Fonts and Text

Text in PDF is referenced to a particular font and font size. This reference may to be to fonts that are enclosed in the file itself or to external fonts that are expected to be available to the rendering software. If the fonts are not available the output may not render properly. Having the font internal does increase the size of the file but means that the characters will be available. This can be especially important for unusual character sets so sometimes only a subset of fonts are included in the document. Both Adobe Type 1 (TTF) and Type 3 (bitmapped fonts) can be embedded.

[edit] Images

Images (Graphics) may be either raster or vector based. A raster image (also known as bitmapped) is often created by scanning a picture. Even a digital camera scans the image to create the file containing the picture. The resolution of the image (pixel width and height) is determined when the file is created but may be larger than is needed in the display of the page to permit zooming in with high fidelity. The rendering software scales the picture based on information in the file. Zooming in beyond 100% of the image size is done by replicating pixels and can result in a blocky appearance to the image. Zooming out can sometimes leave out narrow lines in the image.

Vector based images are built with lines and mathematical created curves. These types of images can be zoomed without losing the quality of the image, but are suitable mostly for line drawings. The boogie board sync uses this format for saved screens. Annotation can also use vector imaging.

As already mentioned some documents are built totally from scanned images using the PDF format as a container for the images. There might not be any content text inside the file. Instead there could be images (pictures) of text which are often Binary image‏‎s.

PDF tools generally understand JPG, TIFF, PNG raster images. Animated GIF will be shown with the final image in the sequence. Adobe keeps updating the support for newer image formats including JPEG 2000 and JXR. SVG is supported for vector images. SWF is supported as an attachment.

[edit] Tags

Text may or may not be tagged in a PDF file. Tags are meta data that provide information about the text itself (semantics). They basically allow the rendering software to be able to move or resize the data in an intelligent way without losing the content. Tags are normally placed in the database when it is converted to PDF but there are also ways to add tags after the fact. Tagging after the fact may not be successful in adding appropriate semantics.

[edit] Reflow

Being able to rearrange the text is called reflowing the document and permits a PDF designed for a full sized piece of paper to be easily read on a small devices such as a PDA or eBook Reader. Tags are used to facilitate reflow. Some editing tools that create PDF files only when saving or printing the document cannot create tag data and these files will not support reflow on some programs. PDF files with text in image format cannot be reflowed directly.

Note: The newer Adobe PDF readers including Adobe Digital Editions have dropped support for reflowable documents.

Just because the tags are present does not mean that the rendering program (reader) is able to use them. In fact most non-Adobe readers cannot reflow documents. However there are some programs that support reflow even in documents that are not tagged. (Technically these programs generate temporary tags to facilitate the reflow.) Adobe has released a portable version of Adobe Digital Editions (ADE) that now supports reflow on PDF files. Many of the latest dedicated eBook Reader now support ADE. Most eBook reading programs depend, instead, on zooming and panning the document. Zooming out a document to make the page fit on a page is likely to make the text too small to read easily.

Reflow is related to zooming in the sense that the text is resized to the original requested text size in the document even when the page is smaller. In fact the reflow option on the PC version of Adobe Reader is shown on zoom menu. Even if a document is reflowed the zoom feature can still be used to vary the text size.

One good use of reflow is to display a multicolumn document in one column which can make it much easier to read on electronic devices where the full page cannot be seen at once.

With the release of ADE there is support for non-tagged documents with three levels of reflow available. Which one you have is device and implementation dependent.

  • line reflow: This minimal level can wrap lines to a smaller screen however each line is independent and behaves like a separate paragraph. It allows reading but does not present a well balanced page since it results in many short lines and arbitrary unintelligent line breaks.
  • paragraph reflow: This level detects the paragraph boundaries within a document and wraps the full paragraph so long as it is on the same physical page in the original document. Detection without tags can cause mistakes and some paragraphs may have breaks in them. In addition this level does not wrap a paragraph that crosses a page boundary in the original document. The notion of original page boundaries causes a break in the virtual page in the reader.
  • full reflow: This level is typically not supported in ADE. It ignores the original page boundaries and wraps based on paragraphs. It also includes intelligent centering and other format features. It offers the best look a feel for the document with improved reading enjoyment where paragraphs are not split. This really needs tags to be fully successful. An untagged document will exhibit problems in doing the reflow from time to time, particularly where headings and images are included.

Of course none of the reflow techniques can match the original typography of the document and they will generally have one zoom mode that shows the look of the original page or the ability to turn off reflow entirely when needed.

[edit] Other features

A PDF file can contain hot links to other places in the file or links to objects outside the file. In addition a PDF can contain a TOC or index (called bookmarks) with links to places or data in the file. Not all readers can support these and not all editors are capable of adding this data to the file in the first place. Some documents support comments that can be added by reviewers.

A PDF can also be an archive document for preserving the content. These kinds of documents always have embedded fonts and are not compressed.

A PDF file that is made up of text images may also include a layer of underlying text that can be searched. This data may be the results of OCR and may contain errors.

The nature of the PDF format allows for the addition of Notes as text or graphics that is simply displayed over the top of the original PDF. These can be kept in a separate file or added to the PDF itself. Of course a separate tool is required to provide this Note taking capability.

The PDF itself can be edited using overlays after it is produced. This kind of editing will be an added and can enlarge the PDF more that pure editing of the source.

[edit] PDF/A and PDF/X

PDF/X and PDF/A standards are defined by the International Organization for Standardization (ISO).

PDF/A is a subset of the full PDF capability. It was originally developed for Archiving where it features the guaranteed ability to be read with future versions of PDF tools. However, the nature of the format makes it ideal for an exchange format and has been adopted by Adobe Digital Editions (ADE) for portable devices. ADE makes one main addition and that is the inclusion of DRM support which is not in the standard for PDF/A. The most widely used standards for PDF archiving are PDF/A‑1a, and PDF/A‑1b.

PDF/X standards apply to graphic content exchange as applied to print publishing. The most widely used standards for a print publishing workflow are several PDF/X formats: PDF/X‑1a, PDF/X‑3, and (in 2007) PDF/X‑4.

There are other specialized formats as well. For example PDF/E is designed for Engineering use.

[edit] PDF Creation

PDF is a ISO standard and the makeup is documented so that there are many tools that can create PDF files. However not all tools create all of the features of PDF.

  • Adobe Acrobat, Adobe InDesign, Adobe Pagemaker, and Adobe Framemaker can make intelligent PDF files with TOCs and Tagging.
  • PDFCreator is a software PDF Printer and is Open Source.
  • pdfTeX & pdfLaTeX produce virtually all PDF files created or read by physicists & mathematicians, and many in other fields involving considerable mathematics, such as computer science and quantitative biology or finance. The source is in TeX format.
  • Open Office 2.4.1 can create PDF files and does support adding tags to the files.
  • Software PDF printers intercept the print command and creating a PDF image instead of actual Printer output. These PDF files do not have much inherent intelligence about the content. One such tool is Cute PDF writer. They have both a free version and a professional one.
  • Neevia makes a product called docuprinter LT that can use Macros in Word and other Microsoft Office files to generate a PDF with TOC and links. It also has variable compression ability.
  • Another popular tool for PDF is made by Foxit. They have readers and PDF editor programs.
  • Tomahawk PDF is an editor designed to generate a PDF.
  • Many commercial and business copiers can now output PDF files directly as part of the scanning process.
  • Nuance.com makes PDF converter Pro, Power PDF, and Paper Port
  • Softpedia 7PDF - There are several 7-PDF products, some are free.
  • Soda PDF convert to and from PDF

[edit] Manipulate PDF

  • Acrobat can manipulate PDF files as well as create them.
  • k2pdfopt optimize a PDF for a smaller screen display.
  • Ghostscript offers various tools for manipulation of PDF files.
  • BRISS is a PDF cropping program to remove extra margins.
  • PDFtk is a PDF toolkit. The free version can be used for quickly merging and splitting PDF documents and pages. It also includes a command line version. A pro version is also available.
  • CPDF is a set of command line tools to manipulate PDF files. Can also reduce the size of PDF files by rearranging the structure.
  • Adobe PDF repair - to fix a corrupt file. This is not a free tool. It does have a trial mode.
  • OCRmyPDF adds OCR'd text to an image PDF so that it can be searched.
  • QPDF can manipulate PDF files such as combining and transformations
  • https://www.pdfescape.com/windows/ is a Free PDF online editor and online form filler. They also have a desktop version that is not free but has a trial period.

Manipulated (edited) PDF can end up with a larger file that you might expect. This is caused by the program adding the new text without actually changing the original. In a PDF text does not have to be arranged in the proper order. The block of text has a specific location defined for its location on a page. Many edits on the same page can thus cause the page to be larger and slower to display than the original. Make a complete new document from the old one can reduce the size and improve its display time. This is particularly true if you want to reflow the page when reading.

Please see Willus' PDF conversion tips for more help.

[edit] Online PDF converters

[edit] PDF Viewers

There are many PDF viewers available. Adobe makes free viewers (Adobe Reader) for many platforms and many 3rd party programs exist.

  • Adobe Reader by Adobe is free and available for many platforms. All of the versions from Adobe, other than Palm, can read PDF files directly without requiring conversion.
  • Adobe Digital Editions is specifically targeted for eBook Reading. It can read ePUB and PDF documents.
  • Foxit reader is also very popular. Available for Windows, Windows Mobile and Linux. The company offers other PDF tools, too.
  • Ghostscript can also read PDF documents. It loads quickly and is available on a wide variety of platforms.
  • MuPDF: is a lightweight, open source PDF viewer and parser/rendering library. Available for Linux and Windows.
  • Nitro PDF reader: Freeware PDF viewer for Windows.
  • PalmPDF is a third party application that is available to read PDF files directly on Palm OS 5 units. It even supports reflow.
  • PDF-XChange Viewer is a freeware PDF viewer for Windows. The company offers more complex PDF tools, too.
  • STDU Viewer: Free PDF reader for Windows. It also supports DjVu, Comic Book Archive (CBR or CBZ), XPS, FB2, TIFF, TXT and image file formats.
  • SumatraPDF: slim, free, open-source PDF reader for Windows.
  • Xpdf: a very popular open source PDF viewer for Linux, but also ported to a number of other platforms.
  • Evince can also read PDF files. Open source, available for Linux and Windows.
  • EPDFView: a lightweight open source PDF viewer for Linux.
  • XODO: Read and annotate

Most 3rd party rendering programs do not support reflow and may not even have TOC capabilities. Some also have very limited zoom and do not support panning. See also: https://www.ereaders.org/best-e-book-reader-for-pdf-reading/ in 2019.

[edit] eBook Readers

Most dedicated eBook Readers claim support for PDF but most do a poor job of delivering on the promise due to the basic problem of attempting to read a 14" diagonal page on a 5" or 6" diagonal device. Of course the larger devices (8" and above) have an easier time of it but there are some notable attempts on smaller devices.

The main approach is to display the whole page on the screen which is fine to get an idea about what the page looks like but impossible to read. Even removing the margins and just showing the text does little to improve the situation. Switching to landscape mode and splitting the page in two helps but is not enough to make a readable document on a device of less that 8".

The Sony PRS505 was the first device to implement mobile Adobe Digital Editions which can use page by page reflow to solve the problem for documents that lend themselves to this solution (dominantly text documents). Many EInk devices now implement mobile ADE, and all but a few of these support reflow. The Bookeen Cybook Gen3 attacks the problem by permitting the user to zoom in and then pan around on the page in fixed increments. This permits viewing a large document page but becomes too cumbersome if you were to try and read a full book that way.

Note that these problems go away if you are able to reformat the entire document to a size that fits the screen.

[edit] eBook Reader PDF Capabilities

The E-book Reader Matrix and the newer eBook Reader Matrix includes a row for PDF reading capabilities, which can include the following.

Capability Description
Full Page View Each page is shown on the screen full size.
Landscape View Portrait pages are shown as several landscape screens. Left and right margins are often cropped.
Continuous View There are no gaps between pages, so parts of two pages can be on the screen.
Two Column View One column fills the screen, at the bottom of the page the 2nd column is started.
Manual Crop Margins Zoom (magnify) in small increments to crop margins, i.e. reader customizable cropping.
Autocrop Margins Zoom to remove whitespace in margins. Can be defeated by headers and footers and by scan artifacts.
Fixed Zoom Zooming to fixed parts of the page via a menu.
Arbitrary Zoom Zoom to any reader-specified part of the page.
Single Page Reflow Reflow the text on a page. Number of font sizes allowed is typically 3 to 8.
Entire Document Reflow Reflow the text across page boundaries. Number of font sizes allowed is typically 3 to 8.
Zoom Images in Reflow Reflow "magnifies" text, so also magnify the images.
Passwords PDFs with passwords can be opened.
Table of Contents The table of contents, if any, is available for navigation.
Hyperlinks Hyperlinks within the document can be followed and there is a "go back" option to unwind links.
Text to Speech The text in the PDF, if any, can be read aloud.
Text Search The text in the PDF, if any, can be searched.
Dictionary Lookup Words in the PDF, if any, can be looked-up in a dictionary.
DRM Adobe DRM is the standard for PDF use.

[edit] Metadata

Metadata is stored in the file by the creation program. It can be viewed from the File>Properties tag in most viewing programs. For a PDF file the data includes:

  • File name
  • Title
  • Author
  • Subject
  • Keywords
  • Application used to create the file
  • PDF producer program
  • PDF version
  • File Size
  • Page Size
  • Tagged PDF status (Yes, No)
  • Document Security (what you can do with the document)
  • Fonts
  • Misc other data

Not all of this data can be viewed in all Readers. The application BeCyPDFmetaedit can be used to modify or create this data in an existing PDF file.

[edit] Tips

The most important tip for eBook users is that you can create custom sized pages for PDF use when you build your own PDF files. Generally this custom sized paper should be 5.24" x 6.63" (6.69?) (or for true sizes 9cm × 12cm) for good results on a 6" reader (800x600 pixel). You can build this once as a template for your printer and then reference it when needed. Margins can be set to whatever you like. A Reader Guide to creating PDF files is available from Sony.

Always tag the document if you can. Microsoft ActiveSync will add tags needed for reflow to a PDF file that does not have them while transferring it to your PDA. Note that this requires it installation of Adobe Reader for Pocket PC devices. Once added these tags are permanent. Adobe Acrobat Professional can also add tagging to a PDF file after the fact.

While it is possible to edit a PDF file using some editors, it is much better to edit a source file and regenerate the PDF. Direct PDF editing can result in a convoluted arrangement of text requiring a larger file size and hence may confuse some display tools and conversion tools. This is because the editing is actually just tacked on to the end of the file and then displayed by knowing the specific x-y location to display it. This kind of fracturing of the data can be mitigated by saving the edited file as a new file using save-as.

As of late 2009, most PDF support on eBook readers are either ADE based or Xpdf based.

One way to attempt to read PDF pages on small devices is to crop the margins off the edge of the pages. This technique is used by some eBook Readers but there are tools that can help you to do this yourself. More advanced is the ability to separate 2 columns of data and make a singe narrower data stream. Tools and tips to do these kinds of things include:

  • BRISS - a margin cropper and columns separating tool. It is free. (Briss doesn't rasterize the PDF)
  • PaperCrop - creates PDF images cropped. - It is free (Papercrop rasterizes the PDF)
  • PDFCropper - discussed on MobileRead forum.
  • Use k2pdfopt to optimize a PDF for a smaller screen display or even to minimize the number of pages.

[edit] Limitations

While PDF is a very popular format for sharing files on computer systems it does have limitations when used with a portable eBook Reader. Some of these are inherent in the format and some are because the rendering software does not support all of the features available in PDF.

  • A PDF file will generally be much larger than a file in many other eBook formats. This can cause problems in how many eBooks you can have on your device, and it can cause the rendering software to behave sluggishly or even not work on some files. A document in PDF can be significantly different in size depending on how it was created. Some of the issues are:
    • Graphic images mimicking text are much larger.
    • Graphics can be much larger (higher resolution) than is needed.
    • Compression can be adjusted when the file is built to provide for typical viewing or professional typesetting.
    • Editing of the PDF can leave artifacts in the file.
    • Embedding fonts will increase the file size.
  • The complexity of the supported capabilities can be beyond the ability of some rendering programs. This can be very confusing to the user since some PDF files work fine and some will not display properly or even may not even load. Some of these reasons include:
    • PDF supports a wide variety of graphics formats and some rendering software may not support all of them. SVG and JPEG 2000 are two suspects.
    • A PDF file can be built from multiple PDF files. This ability to append and insert files can cause data to not be linear in a file and metadata to be scattered all over the file. This can require loading an entire document into memory to find and display the information properly.
    • The fonts used by the rendering program may not match the source file.
    • PDF file formats have gone through many revisions and some readers may not handle all versions.
  • Page numbers referenced by the program may not match the printed document. This is usually a result of front matter in the document being identified with roman numeral numbered pages while the main document starts the numbering again or uses a chapter based numbering system.
  • PDF files are sometimes read with a different program on the reader causing the user interface to be different and have different features. This can make it inconsistent with user expectations.
  • Readers will typically squeeze the PDF page to fit the reader screen size. This can make many documents impossible to read due to extremely small print.
  • Multicolumn PDF files can be difficult to read due to the need to backup to get back to the top of the page when the reader splits the page.
  • Images may be distorted or unreadable due to resizing in the rendering software. Good software should provide the ability to separately zoom a particular image.
  • When designing an ebook of poetry attention should be given to automatically added reflowing tags by various software. Poetry and reflowing text is not always a good combination, as many poets work with text more in an image fashion than as simply words following words.

Some of these limitations can be overcome when the PDF is specifically designed with eBook reading in mind. See tips.

[edit] Converting from PDF files

PDF is a terminal format. That is to say it is not a very good source format. It is intended to be the final output. Having said that there are many programs that can manipulate PDF files or convert them to another format, with varying degrees of success. See E-book conversion for many such programs. A few are listed below:

  • Acrobat, the Adobe editing tool, can now export PDF to other formats, most notably Microsoft Office files. Word is likely the most important one for eBooks.
  • MS Word since version 15 (2013) can import PDF files.
  • https://pdf2docx.com/ PDF 2 DOCX online converter, can also convert to DOC, Text, JPG, PNG, and SVG. Can also extract PDF, Combine PDFs, and compress PDF's
  • RubyPDF Technologies has several software tools to manipulate or convert PDF files to another format.
  • PDF Converter with OCR an efficient tool that works for your convenience and is wholly suited to get the contents from the scanned PDF or image as well as normal PDF files with OCR technology built-in.
  • Ultimate PDF converter - PDF tool to convert PDF to Word, Text, Excel, PowerPoint, ePub, HTML, and image formats JPG, TIFF, PNG, GIF, BMP, TGA, PPM and JPEG2000 with award-winning OCR technology and superior recognition accuracy. Image size can be adjusted prior to conversion.
  • ABBYY PDF transformer - ABBYY has the best OCR software available which is important when converting PDF text in image format.
  • Nuance Power PDF converter - They have a standard and advanced product will convert to standard office product formats. Will also create PDF.
  • MobiPocket Creator is an older tool that still works well. It converts PDF to MOBI format. Windows only. It is free.
  • Xilisoft PDF to ePub converter. The converter can convert to text or to images. The image solution is fairly unique approach and useful if the source has lots of images and needs to maintain a page relationship in the ePub between images and text such as a cookbook. This is a windows only program.
  • DNAML converter will convert to ePub or HTML and can product MOBI for Kindle devices. It can crop out footers and headers.

There is also some help in making these conversions.

[edit] Photoshop PDF

A Photoshop PDF can save additional Photoshop data not normally present in a standard PDF. Photoshop can also save a regular PDF for full compatibility. The help page says it can save RGB, indexed-color, CMYK, grayscale, Bitmap-mode, Lab color, and duotone images in Photoshop PDF format. Because the Photoshop PDF document can preserve Photoshop data, such as layers, alpha channels, notes, and spot color, you can open the document and edit the images in Photoshop CS2 or later. Security options are also available.

[edit] For more information

Personal tools
Namespaces

Variants
Actions
Navigation
MobileRead Networks
Toolbox