PDF Reference
sixth edition
Adobe® Portable Document Format
Version 1.7
November 2006
Adobe Systems Incorporated
© 1985–2006 Adobe® Systems Incorporated. All rights reserved.
PDF Reference, sixth edition: Adobe Portable Document Format version 1.7.
November 2006
NOTICE: All information contained herein is the property of Adobe Systems Incorporated.
Except as permitted by any such license, no part of this guide may be reproduced, stored in a
retrieval system, or transmitted, in any form or by any means, electronic, mechanical, recording,
or otherwise, without the prior written permission of Adobe Systems Incorporated. Please note
that the content in this guide is protected under copyright law even if it is not distributed with soft
-
ware that includes an end user license agreement.
The content of this guide is furnished for informational use only, is subject to change without
notice, and should not be construed as a commitment by Adobe Systems Incorporated. Adobe Sys
-
tems Incorporated assumes no responsibility or liability for any errors or inaccuracies that may
appear in the informational content contained in this guide.
Please remember that existing artwork or images that you may want to include in your project may
be protected under copyright law. The unauthorized incorporation of such material into your new
work could be a violation of the rights of the copyright owner. Please be sure to obtain any permis-
sion required from the copyright owner. Any references to company names and company logos in
sample material are for demonstration purposes only and are not intended to refer to any actual
organization.
Adobe, the Adobe logo, Acrobat, the Acrobat logo, Acrobat Capture, Adobe Garamond, Adobe
Reader, Adobe Solutions Network, Distiller, Extreme, FrameMaker, Illustrator, InDesign, Minion,
PageMaker, Photoshop, Poetica, PostScript, and XMP are either registered trademarks or trade-
marks of Adobe Systems Incorporated in the United States and/or other countries.
Microsoft and Windows are either registered trademarks or trademarks of Microsoft Corporation
in the United States and/or other countries. Apple, Mac, Macintosh, and Power Macintosh are
trademarks of Apple Computer, Inc., registered in the United States and other countries. IBM is a
registered trademark of IBM Corporation in the United States. Sun is a trademark or registered
trademark of Sun Microsystems, Inc. in the United States and other countries. UNIX is a registered
trademark of The Open Group in the United States and other countries. SVG is a trademark of the
World Wide Web Consortium; marks of the W3C are registered and held by its host institutions
MIT, INRIA and Keio. Helvetica and Times are registered trademarks of Linotype-Hell AG and/or
its subsidiaries. Arial and Times New Roman are trademarks of The Monotype Corporation regis
-
tered in the U.S. Patent and Trademark Office and may be registered in certain other jurisdictions.
ITC Zapf Dingbats is a registered trademark of International Typeface Corporation. Ryumin Light
is a trademark of Morisawa & Co., Ltd. All other trademarks are the property of their respective
owners.
All instances of the name PostScript in the text are references to the PostScript language as defined
by Adobe Systems Incorporated unless otherwise stated. The name PostScript also is used as a
product trademark for Adobe Systems implementation of the PostScript language interpreter.
Except as otherwise stated, any mention of a “PostScript output device,” “PostScript printer,” “Post
-
Script software,” or similar item refers to a product that contains PostScript technology created or
licensed by Adobe Systems Incorporated, not to one that purports to be merely compatible.
THIS PUBLICATION AND THE INFORMATION HEREIN ARE FURNISHED AS IS, ARE
FURNISHED FOR INFORMATIONAL USE ONLY, ARE SUBJECT TO CHANGE WITHOUT
NOTICE, AND SHOULD NOT BE CONSTRUED AS A COMMITMENT BY ADOBE SYS-
TEMS INCORPORATED. ADOBE SYSTEMS INCORPORATED ASSUMES NO RESPONSI-
BILITY OR LIABILITY FOR ANY ERRORS OR INACCURACIES THAT MAY APPEAR IN
THE INFORMATIONAL CONTENT CONTAINED IN THIS GUIDE, MAKES NO WAR
-
RANTY OF ANY KIND (EXPRESS, IMPLIED, OR STATUTORY) WITH RESPECT TO THIS
PUBLICATION, AND EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES OF MER
-
CHANTABILITY, FITNESS FOR PARTICULAR PURPOSES, AND NONINFRINGEMENT
OF THIRD-PARTY RIGHTS.
Adobe Systems Incorporated and its subsidiaries own a number of patents covering technology
disclosed in the PDF Reference. Nothing in the PDF Reference itself grants rights under any patent.
Nonetheless, Adobe desires to encourage implementation of the PDF computer file format on a
wide variety of devices and platforms, and for this reason offers certain royalty-free patent licenses
to PDF implementors worldwide. To review those licenses, please visit
http://www.adobe.com/go/developer_legalnotices.
5
Contents
Preface 23
Chapter 1: Introduction 25
1.1 About This Book 25
1.2 Introduction to PDF 1.7 Features 28
1.3 Related Publications 31
1.4 Intellectual Property 32
Chapter 2: Overview 33
2.1 Imaging Model 34
2.2 Other General Properties 38
2.3 Creating PDF 43
2.4 PDF and the PostScript Language 45
Chapter 3: Syntax 47
3.1 Lexical Conventions 48
3.2 Objects 51
3.3 Filters 65
3.4 File Structure 90
3.5 Encryption 115
3.6 Document Structure 137
3.7 Content Streams and Resources 151
3.8 Common Data Structures 155
3.9 Functions 166
3.10 File Specifications 178
Chapter 4: Graphics 193
4.1 Graphics Objects 194
4.2 Coordinate Systems 199
4.3 Graphics State 210
4.4 Path Construction and Painting 224
4.5 Color Spaces 235
4.6 Patterns 289
4.7 External Objects 332
4.8 Images 334
4.9 Form XObjects 355
4.10 Optional Content 364