From: William Victor Mote Date: Mon, 14 Apr 2003 17:27:01 +0000 (+0000) Subject: Move pdf-specific content from faq.xml to output.xml. X-Git-Tag: Root_Temp_KnuthStylePageBreaking~1625 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=610992c136cbc074cd008749fc70a4029cd604e2;p=xmlgraphics-fop.git Move pdf-specific content from faq.xml to output.xml. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196256 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/documentation/content/xdocs/faq.xml b/src/documentation/content/xdocs/faq.xml index 221ca2d0d..39bf94c8b 100644 --- a/src/documentation/content/xdocs/faq.xml +++ b/src/documentation/content/xdocs/faq.xml @@ -802,22 +802,7 @@ Can I control this? What tools are available for post-processing my PDF document? -
    -
  • - The most popular one that we are aware of is iText, which has tools - for adding security features, document properties, watermarks, and - many other features to PDF files. FOP and iText can be integrated - into one Java application, see sample code for encryption. - The bad news is that iText swallows PDF bookmarks. -
  • - -
  • - You can use Adobe Acrobat (the full version, not the Reader) to - process the file manually or with scripting that it supports. -
  • -
+

See PDF Post-processing.

@@ -825,59 +810,8 @@ Can I control this? to my PDF document?

- FOP does not currently support this feature. Possible workarounds - include those mentioned in the PDF - Post-Processing FAQ. -

-

- Some sample code for encrypting a FOP generated PDF with iText to - get you started: -

- -

- Check the iText tutorial and documentation for setting access flags, - password, encryption strength and other parameters. + See PDF Encryption. + See also PDF Post-processing.

@@ -885,34 +819,13 @@ Can I control this? How do I add document properties (title, author, etc.) to my PDF document? -

FOP does not currently support this feature. Possible workarounds - include those mentioned in the PDF - Post-Processing FAQ.

+

See PDF Post-processing.

How do I add watermarks to my PDF document? -

FOP does not currently support this feature. Possible - workarounds:

-
    -
  • - Use a background image for the body region. -
  • -
  • - See the PDF Post-Processing - FAQ. -
  • -
  • - (submitted by Trevor_Campbell@kaz.com.au) Place an image in a - region that overlaps the flowing text. For example, make - region-before large enough to contain your image. Then include a - block (if necessary, use an absolutely positioned block-container) - containing the watermark image in the static-content for the - region-before. Note that the image will be drawn on top of the - normal content. -
  • -
+

See PDF Watermarks.

diff --git a/src/documentation/content/xdocs/output.xml b/src/documentation/content/xdocs/output.xml index b50b7645e..05aa4c438 100644 --- a/src/documentation/content/xdocs/output.xml +++ b/src/documentation/content/xdocs/output.xml @@ -62,7 +62,7 @@ PCL to the UNIX printer queue.
PDF -

+

PDF is the best supported output format. It is also the most accurate with text and layout. This creates a PDF document that is streamed out as each page is rendered. This means that the internal page index @@ -70,8 +70,10 @@ information is stored near the end of the document. The PDF version supported is 1.3 which is currently the most popular version for Acrobat Reader (4.0), PDF versions are forwards/backwards compatible. -

- +

+

Note that FOP does not currently support "tagged pdf".

+
+ Fonts

PDF has a set of fonts that are always available to all PDF viewers, to quote from the PDF Specification: @@ -83,7 +85,79 @@ Helvetica, and Times), as well as two symbolic fonts (Symbol and ITC Zapf Dingbats). These fonts, or suitable substitute fonts with the same metrics, are guaranteed to be available in all PDF viewer applications."

-

Note that FOP does not currently support "tagged pdf".

+
+
+ Post-processing +

FOP does not currently support several desirable PDF features: document properties (title, author, etc.), and watermarks. One workaround is to use Adobe Acrobat (the full version, not the Reader) to process the file manually or with scripting that it supports.

+

Another popular post-processing tool is iText, which has tools for adding security features, document properties, watermarks, and many other features to PDF files. +

+ Caveat: iText swallows PDF bookmarks. +

Here is some sample code that uses iText to encrypt a FOP-generated PDF. (Note that FOP now supports PDF encryption. However the principles for using iText for other PDF features are similar.)

+ +

Check the iText tutorial and documentation for setting access flags, password, encryption strength and other parameters. +

+
+
+ Watermarks +

+ In addition to the PDF Post-processing options, consider the following workarounds: +

+
    +
  • + Use a background image for the body region. +
  • +
  • + (submitted by Trevor_Campbell@kaz.com.au) Place an image in a + region that overlaps the flowing text. For example, make + region-before large enough to contain your image. Then include a + block (if necessary, use an absolutely positioned block-container) + containing the watermark image in the static-content for the + region-before. Note that the image will be drawn on top of the + normal content. +
  • +
+
PCL