Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
PDF Hacks
A Note Regarding Supplemental Files
Credits
About the Author
Contributors
Acknowledgments
Preface
Why PDF Hacks?
How to Use This Book
A Note on Software
Using Code Examples
How This Book Is Organized
Conventions Used in This Book
How to Contact Us
Got a Hack?
1. Consuming PDF
Introduction: Hacks #1-14
1. Read PDFs with the Adobe Reader
2. Read PDFs with Mac OS X’s Preview
3. Read PDFs with Ghostscript’s GSview
4. Speed Up Acrobat Startup
1.5.1. Unplugging Plug-Ins
1.5.2. Which Plug-Ins Do What?
5. Manage Acrobat Plug-Ins with Profiles on Windows
6. Open PDF Files Your Way on Windows
1.7.1. Add an “Open with Acrobat Profile . . . " Option to PDF Context Menus
1.7.2. Add an “Open in Browser” Option to PDF Context Menus
1.7.3. Open Online PDFs Using Reader, Even When You Have Full Acrobat
7. Copy Data from PDF Pages
1.8.1. Adobe Reader 5 and 6
1.8.2. Acrobat 5
1.8.3. Acrobat 6
1.8.4. Selecting Text from Scanned Pages
8. Convert PDF Documents to Word
1.9.1. Save As . . . DOC, RTF, HTML
1.9.2. The Human Touch
1.9.3. Scrape the Clipboard into a New Document with AutoPasteLoop
1.9.4. Running AutoPasteLoop
1.9.5. Hacking AutoPasteLoop
9. Browse One PDF in Multiple Windows
1.10.1. Read PDF with Your Web Browser
1.10.2. Open a New PDF View from Acrobat or Reader
1.10.2.1. Configure Mozilla
1.10.3. The Code
1.10.4. Running the Hack
10. Pace Your Reading or Present a Slideshow in Acrobat or Reader
1.11.1. Acrobat/Reader Full-Screen Slideshow
1.11.2. JavaScript Page Turner
1.11.3. Running the Hack
11. Pace Your Reading or Present a Slideshow in Mac OS X Preview
12. Unpack PDF Attachments (Even Without Acrobat)
1.13.1. Unpack Attachments with Acrobat or Reader
1.13.2. Unpack Attachments with pdftk
1.13.3. Hacking the Hack
13. Jump to the Next or Previous Heading
14. Navigate and Manipulate PDF Using Page Thumbnails
1.15.1. Tune the Thumbnail View
1.15.2. Print, Modify, Move, or Copy Selected Pages
2. Managing a Collection
Introduction: Hacks #15-23
15. Bookmark PDF Pages in Reader
2.2.1. Bookmark JavaScript for Acrobat and Reader
2.2.2. Running the Hack
16. Create Windows Shortcuts to Online PDF Pages with Acrobat
17. Create Windows Shortcuts to Local PDF Pages
2.4.1. Configure the Shell to Open PDF to a Given Page
2.4.2. Acrobat Shortcuts Plug-In
2.4.3. Hacking the Hack
18. Turn PDF Bookmarks into Windows Shortcuts
19. Generate Document Keywords
2.6.1. How the kw_catcher Keyword Generator Works
2.6.1.1. Stopwords, noise, and signal
2.6.1.2. Identifying local topics
2.6.2. Installing and Using pdftotext
2.6.3. Installing and Using kw_catcher
20. Index and Search Local PDF Collections on Windows
2.7.1. Search PDF with Adobe Reader
2.7.2. Index and Search PDF with Windows XP and 2000
2.7.3. Windows Indexing Service: Installation, Configuration, and Documentation
2.7.4. Prepare to Install PDF IFilter 5.0
2.7.5. Install and Troubleshoot Adobe PDF IFilter 5.0
2.7.5.1. PDF IFilter doesn’t work with XP Indexing Service—workaround
2.7.6. Using Start → Search → For Files and Folders
2.7.7. Searching PDF Using Windows 98 and NT System Tools
21. Spinning Document Portals
2.8.1. Tool Up
2.8.2. Open the Portal
2.8.3. Search the PDF’s Full Text
22. Spinning Collection Portals
2.9.1. Tool Up
2.9.2. Running pdfdir.php
2.9.3. Hacking the Hack
23. Identify Related PDFs
3. Authoring and Self-Publishing: Hacking Outside the PDF
Introduction: Hacks #24-31
24. Keep Your Source Smart
3.2.1. Authoring a Smart Source Document
3.2.2. Styles in Microsoft Word 2002, Word 2000, and Word:Mac v.X
3.2.3. Creating an Automatic Table of Contents in Word
25. Convey Your Document’s Value with Good Design
3.3.1. I’ll Take That Font
3.3.2. Free Fonts
3.3.3. System Fonts
3.3.4. Bundled Fonts
3.3.5. Font Packs
3.3.6. Typography Tips
3.3.7. Handling Long URLs
3.3.7.1. Use page footnotes for URLs
3.3.7.2. Insert Zero-Width Spaces to cue line breaks
26. Create Charts and Graphs from Raw Data
3.4.1. Microsoft Word 2002, Word 2000, and Word:Mac v.X
3.4.2. Corel WordPerfect
3.4.3. Sun StarOffice and OpenOffice
3.4.4. Create Standalone Plots with gnuplot
3.4.5. Show Relationships with Graphviz
27. Become a Publisher
3.5.1. Or, Consider a For-Fee Publisher
28. Print at Home, at the Office, or at Kinko’s
3.6.1. Selecting the Paper
3.6.2. Copying Photographs
3.6.3. Binding
29. Publish POD and E-books
30. Sell Through Amazon
31. Sell Your Book, Sell Yourself
3.9.1. Target a Niche
3.9.2. Explore Timely Topics
3.9.3. Complement Your Consulting
3.9.4. Seminar Swag
4. Creating PDF and Other Editions
Introduction: Hacks #32-50
32. Create Interactive PDF with Your Word Processor
4.2.1. Microsoft Word and Adobe Acrobat’s PDFMaker
4.2.2. Microsoft Word and GhostWord on Windows
4.2.3. Microsoft Word and Gs4Word on Windows
4.2.4. Sun StarOffice, OpenOffice, and extendedPDF
4.2.5. Corel WordPerfect and PDF Tweaker
33. Create a Printable, On-Screen Edition from Word
4.3.1. Microsoft Word 2002
4.3.2. Microsoft Word 2000
4.3.3. Microsoft Word:Mac v.X (or any Mac application)
34. Multipurpose PDF
4.4.1. Tools, Not Rules
35. Create an HTML Edition from Your Word Processor
4.5.1. Create an HTML Edition from Microsoft Word 2002 and 2003
4.5.2. Create an HTML Edition from Microsoft Word 2000
4.5.3. Create an HTML Edition from Microsoft Word:Mac v.X
4.5.4. Convert Word Documents to HTML with wvWare
4.5.5. Create an HTML Edition from StarOffice and OpenOffice
36. Create a Handheld Edition from Your HTML
4.6.1. Palm OS Reading with Plucker
4.6.2. Plucker for Pocket PC
37. Convert Documents from Tools You Don’t Own to PDF
4.7.1. Microsoft Office Viewers
4.7.2. Corel WordPerfect Viewer
4.7.3. Online Conversion
38. Acrobat Distiller and Its Profiles
4.8.1. Changing the Distiller Profile
4.8.2. Stock Distiller Profiles, Side by Side
39. Print to PDF with Ghostscript and RedMon on Windows
4.9.1. Download and Install Ghostscript
4.9.2. Download and Install RedMon
4.9.3. Download and Unpack Our Virtual Printer Kit
4.9.4. Install and Configure a PDF Printer: Windows XP, 2000
4.9.4.1. Install a Virtual PostScript printer
4.9.4.2. Configure the RedMon redirected port to print PDF
4.9.5. Install and Configure a PDF Printer: Windows 98
4.9.5.1. Install our Virtual PostScript printer
4.9.5.2. Add and configure the RedMon redirected port
4.9.6. Test Your GS Pdf Printer
40. Save As PDF with Mac OS X
41. Maximize PDF Portability
4.11.1. PDF Versions Overview
4.11.2. Create Compatible PDFs
42. Configure Distiller and Ghostscript for Your Purpose
4.12.1. Acrobat Distiller Parameters Tell the Full Story
4.12.2. Distiller joboptions Profiles
4.12.3. Ghostscript joboptions Profiles
43. Embed and Subset Fonts to Your Advantage
4.13.1. Embedding Fonts into PDF
4.13.2. The Base 14 Fonts
4.13.3. The Base 35 Fonts
4.13.4. Configure Distiller Font Embedding
4.13.5. Configure Ghostscript Font Embedding
4.13.6. Subset Embedded Fonts
4.13.7. Configure Distiller Font Subsetting
4.13.8. Configure Ghostscript Font Subsetting
44. Share a PDF Network Printer with Samba
4.14.1. The Server
4.14.2. The Windows Client
45. Print to Image and Other Rasterizing Options
4.15.1. Install a PNG (or JPEG or TIFF) Printer
4.15.1.1. “Print to Image” devices and options
4.15.1.2. Image output filenames
4.15.2. Acrobat: Save As Image
4.15.3. Photoshop: Open PDF
4.15.4. Mac OS X: Preview
46. Print to SVG
4.16.1. Tool Up
4.16.2. Using pstoedit
4.16.3. Create an SVG Printer
4.16.4. SVG on the Web
47. Print Over the Internet
4.17.1. Download and Install
4.17.2. Install a ps2pdf.com Printer
4.17.3. Test Your ps2pdf.com Printer
48. Create a PDF Album of Your Digital Pictures
4.18.1. Install ImageMagick
4.18.2. Convert Images to PDF
4.18.3. Finishing Touches
49. Print to Fax on Windows
50. Convert Incoming Faxes to PDF on Linux
5. Manipulating PDF Files
Introduction: Hacks #51-73
51. Split and Merge PDF Documents (Even Without Acrobat)
5.2.1. Quickly Combine Pages in Acrobat
5.2.2. Manipulate Pages with pdftk, the PDF Toolkit
52. Encrypt and Decrypt PDF (Even Without Acrobat)
5.3.1. PDF Passwords
5.3.2. Standard Security Encryption Strength
5.3.3. Standard Security Permissions
5.3.4. pdftk and Encrypted Input
5.3.5. Use pdftk to Encrypt Output
5.3.6. Simply Encrypting or Decrypting a File
53. Add PDF Encryption Actions to Windows Context Menus
5.4.1. Add the Encrypt PDF Context Menu Item
5.4.2. Add the Decrypt PDF Context Menu Item
5.4.3. Using Encrypt or Decrypt
54. Add Attachments to Your PDF (Even Without Acrobat)
5.5.1. Page Attachments Versus Document Attachments
5.5.2. Attach Files to a PDF with Acrobat
5.5.3. Attach Files to PDFs with pdftk
5.5.4. Attachments and Encryption
55. Easily Attach Your Document’s Tables
5.6.1. Copy Tables into a New Document
5.6.2. Create an HTML or Excel Document from Your Tables Document
5.6.3. Attach the Tables to Your PDF
56. Add PDF Attachment Actions to Windows Context Menus
5.7.1. Create the Attach File Context Menu Item
5.7.2. Create the Unpack Attachments Context Menu Item
5.7.3. Using Attach File or Unpack Attachments
57. Create a Traditional Index Section from Keywords
5.8.1. Tool Up
5.8.2. The Procedure
5.8.3. The Code
5.8.4. Running the Hack
58. Rasterize Intricate Artwork with Illustrator or Photoshop
5.9.1. Big Drawings in Little Spaces
5.9.2. Integrate Illustrator or Photoshop into Acrobat
5.9.3. Rasterize Drawings In-Place with Acrobat
5.9.3.1. Using Illustrator
5.9.3.2. Using Photoshop
5.9.4. Reordering Page Layers in Acrobat
59. Crop Pages for Clarity
5.10.1. Acrobat’s Crop Tool
5.10.2. BBOX Acrobat Cropping Plug-In for Windows
5.10.3. Document Cropping Procedure
60. Refry Before Posting Documents Online
5.11.1. Traditional Refrying with Distiller
5.11.2. Refrying with PDF Optimizer in Acrobat 6 Professional
5.11.3. The Best Time to Refry Using Distiller
61. Copy Features from One PDF to Another
62. Polish Your PDF Edition
5.13.1. Document Initial View
5.13.2. Logical Page Numbering
5.13.3. Document Title, Author, Subject, and Keywords
5.13.4. Page Orientation and Cropping
63. Add and Maintain PDF Bookmarks
5.14.1. Add Bookmarks
5.14.2. Move Bookmarks
64. Get and Set PDF Metadata
5.15.1. Get Document Metadata
5.15.2. Set Document Metadata
65. Add a Web-Style Navigation Bar to PDF Pages
5.16.1. Create Buttons and Set Actions
5.16.2. Styling Buttons and Adding Graphics
5.16.3. Copying Buttons Across All Pages
66. Copy-Protect Your PDF
5.17.1. Low Tech: Print Editions
5.17.2. Online Reading Only
5.17.3. Chain the PDF to the User’s Machine
67. Support Online PDF Reading
5.18.1. Prepare the PDF
5.18.2. Prepare the Server
68. Force PDF Download Rather than Online Reading
5.19.1. Zip It Up
5.19.2. Create Download-Only Folders Using .htaccess Files
5.19.3. Serve PDF Downloads with a PHP Script
69. Hyperlink HTML to PDF Pages
5.20.1. Save Display Settings in the PDF
70. Create an HTML Table of Contents from PDF Bookmarks
5.21.1. Create a PDF Table of Contents in HTML with pdftk and pdftoc
71. PDF Web Skins
5.22.1. Skinning PDF
5.22.2. Changing Colors, Overriding the Title
5.22.3. PDF Skins as Copy Protection
5.22.4. Hacking the Hack
72. Share PDF Comments Online (Even Without Acrobat)
5.23.1. Skinning PDF, Adding Comments
5.23.2. Hacking the Hack
73. Tally Topic Popularity
5.24.1. Hacking the Hack
6. Dynamic PDF
Introduction: Hacks #74-92
74. Collect Data with Online PDF Forms
6.2.1. Create the Form
6.2.2. Install the Apache Web Server on Windows
6.2.3. Test Your PDF Form
75. Serve Filled-Out PDF Forms
6.3.1. FDF, the Forms Data Format
6.3.2. Serve FDF to Fill Forms
6.3.3. Combine PDF and FDF URLs to Fill Forms
6.3.4. Hacking the Hack
76. Drive PDF Forms with Your Data
6.4.1. Create FDF with forge_fdf
6.4.2. The Code
77. PDF Form-Filling Sessions
6.5.1. Set the Stage
6.5.2. Create Your Interactive PDF Form
6.5.3. Beginning, Middle, End
6.5.4. Running the Hack
78. Permanently Merge a PDF Form and its Data
6.6.1. Merge or Flatten a Form and Its Data in Java
6.6.2. Merge or Flatten a Form and Its Data with pdftk
6.6.3. Merge or Flatten with pdftk in PHP
79. Tool Up with pdftk
6.7.1. Handy Command Line for Windows
80. Decipher and Navigate PDF at the Text Level
81. Edit PDF Code Freely
82. Integrate pdftk with gVim for Seamless PDF Editing
6.10.1. Plug pdftk into gVim
6.10.2. Hacking the Hack
83. Modify PDF Hyperlinks at Serve-Time
6.11.1. Add Hyperlinks to Your PDF Using Links or Buttons
6.11.2. Use Placeholders for Hyperlink URLs
6.11.3. Format the PDF Code with pdftk
6.11.4. Add Placeholder Offsets to the PDF
6.11.5. The Code
6.11.6. Running the Hack
84. Tailor PDF Text at Serve-Time
6.12.1. Create the PDF
6.12.2. Convert the PDF into a Template
6.12.3. Add Placeholder Offsets to the PDF
6.12.4. The Code
6.12.5. Running the Hack
85. Use HTML to Create PDF
86. Use Perl to Create PDF
6.14.1. Install Perl and the PDF::API2 Package on Windows
6.14.2. Hello World in Perl
6.14.3. Discover Perl Packages with CPAN
87. Use PHP to Create PDF
6.15.1. R&OS PDF-PHP
6.15.2. FPDF
6.15.3. pdf4php
6.15.4. phppdflib
88. Use Java to Create PDF
89. Assemble Pages and Serve PDF
6.17.1. Assemble Pages in Java with iText
6.17.2. Assemble Pages in PHP with pdftk
6.17.3. See Also
90. Superimpose PDF Pages
6.18.1. Superimpose Pages in Java with iText
6.18.2. Superimpose Pages with pdftk
91. Generate PDF Documents from XML and CSS
92. Create PDF with XSL-FO and FOP
6.20.1. XSL-FO Basics
6.20.2. Generating a PDF
7. Scripting and Programming Acrobat
Introduction: Hacks #93-100
93. Modify or Convert Batches of Documents
7.2.1. Refry a Folder Full of PDFs (Acrobat 6 Pro)
7.2.2. Convert Microsoft Office Documents to PDF
7.2.3. Exploring Batch Sequences
94. Script Acrobat Using Visual Basic on Windows
7.3.1. The Code
7.3.2. Running the Code
7.3.3. Hacking the Hack
95. Script Acrobat Using Perl on Windows
7.4.1. Install Perl on Windows
7.4.2. The Code
7.4.3. Running the Hack
96. Customize Acrobat Using JavaScript
7.5.1. Test Scripts Using the Debugger
7.5.2. Add New Acrobat Features with Startup JavaScripts
7.5.2.1. Windows startup JavaScripts
7.5.2.2. Mac startup JavaScripts
7.5.2.3. Linux startup JavaScripts
7.5.3. Create Custom Batch Sequence Commands
97. Tool Up for Acrobat Plug-In Development
7.6.1. Install GCC on Windows with MinGW and MSYS
7.6.2. Download and Install the Acrobat SDK
7.6.3. Download and Install Our Sample Plug-In
98. Explore the Acrobat SDK Documentation and Examples
7.7.1. PDF Reference
7.7.2. Acrobat Core API Reference
7.7.3. Acrobat Interapplication Communication (IAC) Reference
7.7.4. Guide to SDK Samples
7.7.5. Acrobat Distiller Parameters
7.7.6. pdfmark Reference Manual
99. Use Acrobat Plug-Ins to Extend PDF
100. PostScript and PDF Games
7.9.1. Naval Battle and Tic-Tac-Toe in PDF
7.9.2. Programming PostScript
7.9.3. PostScript and Fractals
7.9.4. PostScript Web Server
Index
About the Author
Colophon
Copyright
← Prev
Back
Next →
← Prev
Back
Next →