Submit Your Site For Free!

Email Address:
* URL:
*
*Indicates Mandatory Field

Terms & Conditions

Submit Your Site To EnterUK

DevWebProUK
FlashNewz
DevWebPro






How To Better Understand The PDF Format

By Mark Stephens
Expert Author
Article Date: 2011-02-02

Form XObjects (not be confused with forms which are buttons, checkboxes, buttons, etc) are an advanced feature of the PDF file format. They can be thought of as sub-rountines (or even mini-PDFs) which are used on the main PDF display.

They are defined in the Resources object and can have their own Resources (fonts and images,etc). They also have a name (ie Fm1) and are drawn using the Do operator. So if you see Do /Fm1 in the PDF command stream, it is probably a form. Like images, they will be scaled and rotated using the current GraphicState settings but they offer more flexibility.

Here is what you might see in the Object tree (shown in Acrobat for a Form). Note it has a content stream of commands (which I have not shown).

Like images, this allows you to save space by reusing the Object over and over again. It is also popular with PDF creation tools because it allows you to logically separate out blocks - for example flattened form data, stamps or any logical item can be created as an Form XObject, complete with its own fonts and resources.

This article is part of a series of articles all about the PDF file format. You can read all the previous articles here.

Comments

About the Author:
Mark Stephens runs IDRsolutions, developing the JPedal PDF library in Java, and shares his thoughts on Java, PDF, the Business of Software and Mediaeval History at http://www.jpedal.org/PDFblog .



Newsletter Archive | Submit Article | Advertising Information | About Us | Contact

DevWebProUK is an iEntry, Inc.® publication - All Rights Reserved Privacy Policy and Legal