Added: xmlgraphics/site/deploy/fop/0.94/pdfencryption.html URL: http://svn.apache.org/viewvc/xmlgraphics/site/deploy/fop/0.94/pdfencryption.html?rev=569118&view=auto ============================================================================== --- xmlgraphics/site/deploy/fop/0.94/pdfencryption.html (added) +++ xmlgraphics/site/deploy/fop/0.94/pdfencryption.html Thu Aug 23 12:00:37 2007 @@ -0,0 +1,500 @@ + + + + + + + +PDF encryption. + + + + + + + + + +
+ +
+ + + + + + + + + + + + +
+
+
+
+ +
+ + +
+ +
+apache.org > XML Federation > xmlgraphics.apache.org +
+ + + + + +
+ + +
+Font size: +   +   +   +
+

PDF encryption.

+ + + +

Overview

+
+

+ FOP supports encryption of PDF output, thanks to Patrick + C. Lankswert. This feature is commonly used to prevent + unauthorized viewing, printing, editing, copying text from the + document and doing annotations. It is also possible to ask the + user for a password in order to view the contents. Note that + there already exist third party applications which can decrypt + an encrypted PDF without effort and allow the aforementioned + operations, therefore the degree of protection is limited. +

+

+ For further information about features and restrictions regarding PDF + encryption, look at the documentation coming with Adobe Acrobat or the + technical documentation on the Adobe web site. +

+
+ + +

Usage (command line)

+
+

+ Encryption is enabled by supplying any of the encryption related + options. +

+

+ An owner password is set with the -o option. This + password is actually used as encryption key. Many tools for + PDF processing ask for this password to disregard any + restriction imposed on the PDF document. +

+

+ If no owner password has been supplied but FOP was asked to apply some + restrictions, a random password is used. In this case it is obviously + impossiible to disregard restrictions in PDF processing tools. +

+

+ A user password, supplied with the -u option, will + cause the PDF display software to ask the reader for this password in + order to view the contents of the document. If no user password was + supplied, viewing the content is not restricted. +

+

+ Further restrictions can be imposed by using the -noprint, + -nocopy, -noedit and + -noannotations options, which disable printing, copying + text, editing in Adobe Acrobat and making annotations, respectively. +

+
+ + +

Usage (embedded)

+
+

+ When FOP is embedded in another Java application you need to set an + options map on the renderer. These are the supported options: +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
OptionDescriptionValuesDefault
ownerPasswordThe owner passwordString
userPasswordThe user passwordString
allowPrintAllows/disallows printing of the PDF"TRUE" or "FALSE""TRUE"
allowCopyContentAllows/disallows copy/paste of content"TRUE" or "FALSE""TRUE"
allowEditContentAllows/disallows editing of content"TRUE" or "FALSE""TRUE"
allowEditAnnotationsAllows/disallows editing of annotations"TRUE" or "FALSE""TRUE"
+
+
Note
+
+ Encryption is enabled as soon as one of these options is set. +
+
+

+ An example to enable PDF encryption in Java code: +

+
+import org.apache.fop.pdf.PDFEncryptionParams;
+
+[..]
+
+FOUserAgent userAgent = fopFactory.newFOUserAgent();
+useragent.getRendererOptions().put("encryption-params", new PDFEncryptionParams(
+    null, "password", false, false, true, true));
+Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, userAgent);
+[..]
+

+ The parameters for the constructor of PDFEncryptionParams are: +

+
    + +
  1. userPassword: String, may be null
  2. + +
  3. ownerPassword: String, may be null
  4. + +
  5. allowPrint: true if printing is allowed
  6. + +
  7. allowCopyContent: true if copying content is allowed
  8. + +
  9. allowEditContent: true if editing content is allowed
  10. + +
  11. allowEditAnnotations: true if editing annotations is allowed
  12. + +
+

+ Alternatively, you can set each value separately in the Map provided by + FOUserAgent.getRendererOptions() by using the following keys: +

+
    + +
  1. user-password: String
  2. + +
  3. owner-password: String
  4. + +
  5. noprint: Boolean or "true"/"false"
  6. + +
  7. nocopy: Boolean or "true"/"false"
  8. + +
  9. noedit: Boolean or "true"/"false"
  10. + +
  11. noannotations: Boolean or "true"/"false"
  12. + +
+
+ + +

Environment

+
+

+ In order to use PDF encryption, FOP has to be compiled with + cryptography support. Currently, only JCE + is supported. JCE is part of JDK 1.4. For earlier JDKs, it can + be installed separately. The build process automatically + detects JCE presence and installs PDF encryption support if + possible, otherwise a stub is compiled in. +

+

+ Cryptography support must also be present at run time. In particular, a + provider for the RC4 cipher is needed. Unfortunately, the sample JCE + provider in Sun's JDK 1.4 does not provide RC4. If you + get a message saying +

+
"Cannot find any provider supporting RC4"
+

+ then you don't have the needed infrastructure. +

+

+ There are several commercial and a few Open Source packages which + provide RC4. A pure Java implementation is produced by The Legion of the Bouncy + Castle. Mozilla + JSS is an interface to a native implementation. +

+
+ + +

Installing a crypto provider

+
+

+ The pure Java implementation from Bouncy Castle is easy to + install. +

+
    + +
  1. + Download the binary distribution for your JDK version. If you have JDK + 1.3 or earlier you must also download a JCE from the same page. +
  2. + +
  3. + Unpack the distribution. Add the jar file to your classpath. A + convenient way to use the jar on Linux is to simply drop it into the + FOP lib directory, it will be automatically picked up by + fop.sh. If you have JDK 1.3 or earlier don't forget to + install the JCE as well. +
  4. + +
  5. + Open the java.security file and add
    + +security.provider.6=org.bouncycastle.jce.provider.BouncyCastleProvider,
    + preferably at the end of the block defining the other crypto + providers. For JDK 1.4 this is detailed on Sun's web site. +
  6. + +
+

+ If you have any experience with Mozilla JSS or any other + cryptography provider, please post it to the fop-user list. +

+
+ +

+by J.Pietschmann, Jeremias Märki +

+
+ +
 
+
+ + + Added: xmlgraphics/site/deploy/fop/0.94/pdfencryption.pdf URL: http://svn.apache.org/viewvc/xmlgraphics/site/deploy/fop/0.94/pdfencryption.pdf?rev=569118&view=auto ============================================================================== --- xmlgraphics/site/deploy/fop/0.94/pdfencryption.pdf (added) +++ xmlgraphics/site/deploy/fop/0.94/pdfencryption.pdf Thu Aug 23 12:00:37 2007 @@ -0,0 +1,492 @@ +%PDF-1.3 +%ª«¬­ +4 0 obj +<< /Type /Info +/Producer (FOP 0.20.5) >> +endobj +5 0 obj +<< /Length 645 /Filter [ /ASCII85Decode /FlateDecode ] + >> +stream +Gb!$D9okbt&;KZOME1#HO]pd@E;%j_2c<_W2Qc2Bl%+@P:kPGGdI+cQJINsgo@gku\VPH1QU%RmJl]1H6F">bU)o6KcG9ZG4q02Xu32h(J%1:0m(NCUIGS_\p&j'$/o5rY?;:K(t1\c+5URIcZ/2Ft-3dH6$tF:PV+&[Tt!mU*h-Kb:5n]ZF[GZ&k!3aB79A]co,Q2.=)FiT$Z=*E@hhQOYooYm'IEY]#?6!&XmU&p:*^%]LXladZKNPe<8d*fO<6lGC?i2?~> +endstream +endobj +6 0 obj +<< /Type /Page +/Parent 1 0 R +/MediaBox [ 0 0 612 792 ] +/Resources 3 0 R +/Contents 5 0 R +/Annots 7 0 R +>> +endobj +7 0 obj +[ +8 0 R +10 0 R +12 0 R +14 0 R +16 0 R +18 0 R +19 0 R +] +endobj +8 0 obj +<< /Type /Annot +/Subtype /Link +/Rect [ 84.0 516.041 139.316 504.041 ] +/C [ 0 0 0 ] +/Border [ 0 0 0 ] +/A 9 0 R +/H /I +>> +endobj +10 0 obj +<< /Type /Annot +/Subtype /Link +/Rect [ 84.0 497.841 201.308 485.841 ] +/C [ 0 0 0 ] +/Border [ 0 0 0 ] +/A 11 0 R +/H /I +>> +endobj +12 0 obj +<< /Type /Annot +/Subtype /Link +/Rect [ 84.0 479.641 182.3 467.641 ] +/C [ 0 0 0 ] +/Border [ 0 0 0 ] +/A 13 0 R +/H /I +>> +endobj +14 0 obj +<< /Type /Annot +/Subtype /Link +/Rect [ 84.0 461.441 154.664 449.441 ] +/C [ 0 0 0 ] +/Border [ 0 0 0 ] +/A 15 0 R +/H /I +>> +endobj +16 0 obj +<< /Type /Annot +/Subtype /Link +/Rect [ 84.0 443.241 222.98 431.241 ] +/C [ 0 0 0 ] +/Border [ 0 0 0 ] +/A 17 0 R +/H /I +>> +endobj +18 0 obj +<< /Type /Annot +/Subtype /Link +/Rect [ 232.25 683.0 361.75 673.0 ] +/C [ 0 0 0 ] +/Border [ 0 0 0 ] +/A << /URI (http://xmlgraphics.apache.org/fop/) +/S /URI >> +/H /I +>> +endobj +19 0 obj +<< /Type /Annot +/Subtype /Link +/Rect [ 221.685 671.75 372.315 661.75 ] +/C [ 0 0 0 ] +/Border [ 0 0 0 ] +/A << /URI (http://xmlgraphics.apache.org/fop/) +/S /URI >> +/H /I +>> +endobj +20 0 obj +<< /Length 2412 /Filter [ /ASCII85Decode /FlateDecode ] + >> +stream +Gatm=968i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.F66V/I^Bc:&rL43So06l7%4W4DYOQeo9O&PbRG3NM>^8?p]oA_Xm@nl#EZYT^%PH8rk'_p2F51M+9E\@kKMdU)Q\7]s48Ed3U_\I`tWfKQG:qQSBoa2l.V3?XQ(?r@7gJ[BA>3C8q@_sEaiTombMf]HWTod4'W'jDi(_6g,M=9PU@>-F1<=ON&Q=>F4`mTEi\pHLtU!hG!2m<^0'D4,lfa15CWMSQ<'>otMdR$WQm(4N-SGCt.Pp`(2V:+VdBVXM$0FPcUOP48uK6ppti`M=1=dLb6O]oEia+O' g@olMBY[VpoW+@L^bUu_>gU>sa'HZaFP@U9tD>Bn_qf)oW#b6?:5*8n#2=?da*-3]D>U(G5@^UgI>SF4h.!jf'P?J/>]P0mC[M9oA!r1%&Z0(An6UPneNeCW0FGj]Jj'#)(?>ikK[\>r'%/&UN/F%kXQ$0l9D%UV+6bR[Bp'A.]W-K:\N]@V7WX5\(++1=.OAM!dmEke7*aY<7704[5$SU4NF?*?ciX#te<0=>JB?*kMS-9OFu:a7ZbiIuh)GQu5F#n<0#FPj:)+=R5'_Gkh9`1e,n/CSY"hYgj4/2T:Zc0'k@7C^_1#uql*-q(lZghNbqr)Wg".'g>Rq=f +endstream +endobj +21 0 obj +<< /Type /Page +/Parent 1 0 R +/MediaBox [ 0 0 612 792 ] +/Resources 3 0 R +/Contents 20 0 R +/Annots 22 0 R +>> +endobj +22 0 obj +[ +23 0 R +24 0 R +] +endobj +23 0 obj +<< /Type /Annot +/Subtype /Link +/Rect [ 232.25 683.0 361.75 673.0 ] +/C [ 0 0 0 ] +/Border [ 0 0 0 ] +/A << /URI (http://xmlgraphics.apache.org/fop/) +/S /URI >> +/H /I +>> +endobj +24 0 obj +<< /Type /Annot +/Subtype /Link +/Rect [ 221.685 671.75 372.315 661.75 ] +/C [ 0 0 0 ] +/Border [ 0 0 0 ] +/A << /URI (http://xmlgraphics.apache.org/fop/) +/S /URI >> +/H /I +>> +endobj +25 0 obj +<< /Length 2386 /Filter [ /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45^X[5p55kBE4.n3=lu;(.eDEGYVs?73^6C(VpU+;F,uJq&nPE81"uXq4o"cBaG?m*%+E-9.d8RJ?9pOs\<6]FU,b_d$,745F8+[cY7h=j#\+^p$`86EH-`V^`W[Gqj1+3Q)f0at+1(DX0^d:!jn^WFt5%SFaCe,r)1K/jeCJ3ea9QPVg`K3JkOSVThP%e8`COsi9pO2U=Uh!ejs]2]L*9fdUWrVTAjAskAgJuFt7!OA8+]"?R#')Run.2<<,a&f$aQNgMMeMj#_dn3@,So8e7Vp_QtX3e:HR[IGQm,b#]hE1aelh9lk97_@q>hk9(-7_J0=Dej30gWuXl@P#HTRFr%K@No!,Oma`F;cg-^?@QYc,UNGN$akaM(1)A3Crkd5FW;Ul3r^%p^neXH$)W\;Nrm>b4Hgf-'$CE*P3XW$NJtipgHdd(5'PLG>MGX@U[_pG?7fgS]:))nE^i>LD[\Wb5g(?"qi%A(r[KJ-Ea/]Xf?^l.sFGnM_"4f i\0pp7UUZZV2/(]61Qrl\UA/nF,\a^)e9>WdE"Y&4oh`nC)'hDWo%Wt"D^DJZ9==8*Q3NK)bC3E#(gf-"l\JpL@:"0;?#K+@HqqmnWkR.#(&j^h3[>QMhkA[Lj8I(#9[!6SGc639dY^8s4ec11Gdbmk."UX3M]E&[9OrPu4fhG,ETT2pk4arZl[7D8SMNS"Bbglk4#rrMo"<1*~> +endstream +endobj +26 0 obj +<< /Type /Page +/Parent 1 0 R +/MediaBox [ 0 0 612 792 ] +/Resources 3 0 R +/Contents 25 0 R +/Annots 27 0 R +>> +endobj +27 0 obj +[ +28 0 R +29 0 R +] +endobj +28 0 obj +<< /Type /Annot +/Subtype /Link +/Rect [ 232.25 683.0 361.75 673.0 ] +/C [ 0 0 0 ] +/Border [ 0 0 0 ] +/A << /URI (http://xmlgraphics.apache.org/fop/) +/S /URI >> +/H /I +>> +endobj +29 0 obj +<< /Type /Annot +/Subtype /Link +/Rect [ 221.685 671.75 372.315 661.75 ] +/C [ 0 0 0 ] +/Border [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h%:K9f)j=?KT$H;bl47MUhYQBCOa6ssZqTB3c9+U#1F/':(:3TY2gQcK\oOP6iWNArU>fk,%=2\!FcLoo#frF-SSp"_2-`Q60Wj2(g5M,Z1q$05(8,IR'^UlHhm27LdmO^]!),LZ'(C=-<1bggm71<2%[["9>-ou,as&+SL`l:-g:W#\HrDEtKc)3Jkj`bJ'-Z<`]@U!S%!*akprg#Ef0$;koF)bHRPQ`ZaASm\67H&KrG(;.A(9/ED@h_6+'iOt\B[1'PSK2RcMqf]t>#m>WTP[elA&Cq$3.lC](&LbS7d(HGn,P9'A;KC +endstream +endobj +31 0 obj +<< /Type /Page +/Parent 1 0 R +/MediaBox [ 0 0 612 792 ] +/Resources 3 0 R +/Contents 30 0 R +/Annots 32 0 R +>> +endobj +32 0 obj +[ +33 0 R +34 0 R +35 0 R +36 0 R +37 0 R +38 0 R +39 0 R +] +endobj +33 0 obj +<< /Type /Annot +/Subtype /Link +/Rect [ 96.336 605.466 116.34 593.466 ] +/C [ 0 0 0 ] +/Border [ 0 0 0 ] +/A << /URI (http://java.sun.com/j2se/1.4/docs/guide/security/jce/JCERefGuide.html) +/S /URI >> +/H /I +>> +endobj +34 0 obj +<< /Type /Annot +/Subtype /Link +/Rect [ 223.992 466.006 383.64 454.006 ] +/C [ 0 0 0 ] +/Border [ 0 0 0 ] +/A << /URI (http://www.bouncycastle.org/) +/S /URI >> +/H /I +>> +endobj +35 0 obj +<< /Type /Annot +/Subtype /Link +/Rect [ 389.64 466.006 447.984 454.006 ] +/C [ 0 0 0 ] +/Border [ 0 0 0 ] +/A << /URI (http://www.mozilla.org/projects/security/pki/jss/) +/S /URI >> +/H /I +>> +endobj +36 0 obj +<< /Type /Annot +/Subtype /Link +/Rect [ 246.972 389.472 317.304 377.472 ] +/C [ 0 0 0 ] +/Border [ 0 0 0 ] +/A << /URI (http://www.bouncycastle.org/) +/S /URI >> +/H /I +>> +endobj +37 0 obj +<< /Type /Annot +/Subtype /Link +/Rect [ 145.992 266.672 214.152 254.672 ] +/C [ 0 0 0 ] +/Border [ 0 0 0 ] +/A << /URI (http://java.sun.com/j2se/1.4/docs/guide/security/jce/JCERefGuide.html#InstallProvider) +/S /URI >> +/H /I +>> +endobj +38 0 obj +<< /Type /Annot +/Subtype /Link +/Rect [ 232.25 683.0 361.75 673.0 ] +/C [ 0 0 0 ] +/Border [ 0 0 0 ] +/A << /URI (http://xmlgraphics.apache.org/fop/) +/S /URI >> +/H /I +>> +endobj +39 0 obj +<< /Type /Annot +/Subtype /Link +/Rect [ 221.685 671.75 372.315 661.75 ] +/C [ 0 0 0 ] +/Border [ 0 0 0 ] +/A << /URI (http://xmlgraphics.apache.org/fop/) +/S /URI >> +/H /I +>> +endobj +41 0 obj +<< + /Title (\376\377\0\61\0\40\0\117\0\166\0\145\0\162\0\166\0\151\0\145\0\167) + /Parent 40 0 R + /Next 42 0 R + /A 9 0 R +>> endobj +42 0 obj +<< + /Title (\376\377\0\62\0\40\0\125\0\163\0\141\0\147\0\145\0\40\0\50\0\143\0\157\0\155\0\155\0\141\0\156\0\144\0\40\0\154\0\151\0\156\0\145\0\51) + /Parent 40 0 R + /Prev 41 0 R + /Next 43 0 R + /A 11 0 R +>> endobj +43 0 obj +<< + /Title (\376\377\0\63\0\40\0\125\0\163\0\141\0\147\0\145\0\40\0\50\0\145\0\155\0\142\0\145\0\144\0\144\0\145\0\144\0\51) + /Parent 40 0 R + /Prev 42 0 R + /Next 44 0 R + /A 13 0 R +>> endobj +44 0 obj +<< + /Title (\376\377\0\64\0\40\0\105\0\156\0\166\0\151\0\162\0\157\0\156\0\155\0\145\0\156\0\164) + /Parent 40 0 R + /Prev 43 0 R + /Next 45 0 R + /A 15 0 R +>> endobj +45 0 obj +<< + /Title (\376\377\0\65\0\40\0\111\0\156\0\163\0\164\0\141\0\154\0\154\0\151\0\156\0\147\0\40\0\141\0\40\0\143\0\162\0\171\0\160\0\164\0\157\0\40\0\160\0\162\0\157\0\166\0\151\0\144\0\145\0\162) + /Parent 40 0 R + /Prev 44 0 R + /A 17 0 R +>> endobj +46 0 obj +<< /Type /Font +/Subtype /Type1 +/Name /F1 +/BaseFont /Helvetica +/Encoding /WinAnsiEncoding >> +endobj +47 0 obj +<< /Type /Font +/Subtype /Type1 +/Name /F5 +/BaseFont /Times-Roman +/Encoding /WinAnsiEncoding >> +endobj +48 0 obj +<< /Type /Font +/Subtype /Type1 +/Name /F3 +/BaseFont /Helvetica-Bold +/Encoding /WinAnsiEncoding >> +endobj +49 0 obj +<< /Type /Font +/Subtype /Type1 +/Name /F2 +/BaseFont /Helvetica-Oblique +/Encoding /WinAnsiEncoding >> +endobj +50 0 obj +<< /Type /Font +/Subtype /Type1 +/Name /F9 +/BaseFont /Courier +/Encoding /WinAnsiEncoding >> +endobj +51 0 obj +<< /Type /Font +/Subtype /Type1 +/Name /F7 +/BaseFont /Times-Bold +/Encoding /WinAnsiEncoding >> +endobj +1 0 obj +<< /Type /Pages +/Count 4 +/Kids [6 0 R 21 0 R 26 0 R 31 0 R ] >> +endobj +2 0 obj +<< /Type /Catalog +/Pages 1 0 R + /Outlines 40 0 R + /PageMode /UseOutlines + >> +endobj +3 0 obj +<< +/Font << /F1 46 0 R /F5 47 0 R /F3 48 0 R /F2 49 0 R /F9 50 0 R /F7 51 0 R >> +/ProcSet [ /PDF /ImageC /Text ] >> +endobj +9 0 obj +<< +/S /GoTo +/D [21 0 R /XYZ 67.0 659.0 null] +>> +endobj +11 0 obj +<< +/S /GoTo +/D [21 0 R /XYZ 67.0 482.066 null] +>> +endobj +13 0 obj +<< +/S /GoTo +/D [21 0 R /XYZ 67.0 228.332 null] +>> +endobj +15 0 obj +<< +/S /GoTo +/D [31 0 R /XYZ 67.0 659.0 null] +>> +endobj +17 0 obj +<< +/S /GoTo +/D [31 0 R /XYZ 67.0 429.806 null] +>> +endobj +40 0 obj +<< + /First 41 0 R + /Last 45 0 R +>> endobj +xref +0 52 +0000000000 65535 f +0000014001 00000 n +0000014080 00000 n +0000014172 00000 n +0000000015 00000 n +0000000071 00000 n +0000000807 00000 n +0000000927 00000 n +0000000994 00000 n +0000014306 00000 n +0000001128 00000 n +0000014369 00000 n +0000001264 00000 n +0000014435 00000 n +0000001398 00000 n +0000014501 00000 n +0000001534 00000 n +0000014565 00000 n +0000001669 00000 n +0000001851 00000 n +0000002037 00000 n +0000004542 00000 n +0000004665 00000 n +0000004699 00000 n +0000004881 00000 n +0000005067 00000 n +0000007546 00000 n +0000007669 00000 n +0000007703 00000 n +0000007885 00000 n +0000008071 00000 n +0000010765 00000 n +0000010888 00000 n +0000010957 00000 n +0000011178 00000 n +0000011359 00000 n +0000011561 00000 n +0000011743 00000 n +0000011982 00000 n +0000012164 00000 n +0000014631 00000 n +0000012350 00000 n +0000012489 00000 n +0000012711 00000 n +0000012910 00000 n +0000013082 00000 n +0000013339 00000 n +0000013447 00000 n +0000013557 00000 n +0000013670 00000 n +0000013786 00000 n +0000013892 00000 n +trailer +<< +/Size 52 +/Root 2 0 R +/Info 4 0 R +>> +startxref +14682 +%%EOF Added: xmlgraphics/site/deploy/fop/0.94/pdfencryption.xml URL: http://svn.apache.org/viewvc/xmlgraphics/site/deploy/fop/0.94/pdfencryption.xml?rev=569118&view=auto ============================================================================== --- xmlgraphics/site/deploy/fop/0.94/pdfencryption.xml (added) +++ xmlgraphics/site/deploy/fop/0.94/pdfencryption.xml Thu Aug 23 12:00:37 2007 @@ -0,0 +1,223 @@ + + +
+ PDF encryption. + $Revision: 569104 $ + + + + +
+ +
+ Overview +

+ FOP supports encryption of PDF output, thanks to Patrick + C. Lankswert. This feature is commonly used to prevent + unauthorized viewing, printing, editing, copying text from the + document and doing annotations. It is also possible to ask the + user for a password in order to view the contents. Note that + there already exist third party applications which can decrypt + an encrypted PDF without effort and allow the aforementioned + operations, therefore the degree of protection is limited. +

+

+ For further information about features and restrictions regarding PDF + encryption, look at the documentation coming with Adobe Acrobat or the + technical documentation on the Adobe web site. +

+
+
+ Usage (command line) +

+ Encryption is enabled by supplying any of the encryption related + options. +

+

+ An owner password is set with the -o option. This + password is actually used as encryption key. Many tools for + PDF processing ask for this password to disregard any + restriction imposed on the PDF document. +

+

+ If no owner password has been supplied but FOP was asked to apply some + restrictions, a random password is used. In this case it is obviously + impossiible to disregard restrictions in PDF processing tools. +

+

+ A user password, supplied with the -u option, will + cause the PDF display software to ask the reader for this password in + order to view the contents of the document. If no user password was + supplied, viewing the content is not restricted. +

+

+ Further restrictions can be imposed by using the -noprint, + -nocopy, -noedit and + -noannotations options, which disable printing, copying + text, editing in Adobe Acrobat and making annotations, respectively. +

+
+
+ Usage (embedded) +

+ When FOP is embedded in another Java application you need to set an + options map on the renderer. These are the supported options: +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
OptionDescriptionValuesDefault
ownerPasswordThe owner passwordString +
userPasswordThe user passwordString +
allowPrintAllows/disallows printing of the PDF"TRUE" or "FALSE""TRUE"
allowCopyContentAllows/disallows copy/paste of content"TRUE" or "FALSE""TRUE"
allowEditContentAllows/disallows editing of content"TRUE" or "FALSE""TRUE"
allowEditAnnotationsAllows/disallows editing of annotations"TRUE" or "FALSE""TRUE"
+ + Encryption is enabled as soon as one of these options is set. + +

+ An example to enable PDF encryption in Java code: +

+ +

+ The parameters for the constructor of PDFEncryptionParams are: +

+
    +
  1. userPassword: String, may be null
  2. +
  3. ownerPassword: String, may be null
  4. +
  5. allowPrint: true if printing is allowed
  6. +
  7. allowCopyContent: true if copying content is allowed
  8. +
  9. allowEditContent: true if editing content is allowed
  10. +
  11. allowEditAnnotations: true if editing annotations is allowed
  12. +
+

+ Alternatively, you can set each value separately in the Map provided by + FOUserAgent.getRendererOptions() by using the following keys: +

+
    +
  1. user-password: String
  2. +
  3. owner-password: String
  4. +
  5. noprint: Boolean or "true"/"false"
  6. +
  7. nocopy: Boolean or "true"/"false"
  8. +
  9. noedit: Boolean or "true"/"false"
  10. +
  11. noannotations: Boolean or "true"/"false"
  12. +
+
+
+ Environment +

+ In order to use PDF encryption, FOP has to be compiled with + cryptography support. Currently, only JCE + is supported. JCE is part of JDK 1.4. For earlier JDKs, it can + be installed separately. The build process automatically + detects JCE presence and installs PDF encryption support if + possible, otherwise a stub is compiled in. +

+

+ Cryptography support must also be present at run time. In particular, a + provider for the RC4 cipher is needed. Unfortunately, the sample JCE + provider in Sun's JDK 1.4 does not provide RC4. If you + get a message saying +

+ +

+ then you don't have the needed infrastructure. +

+

+ There are several commercial and a few Open Source packages which + provide RC4. A pure Java implementation is produced by The Legion of the Bouncy + Castle. Mozilla + JSS is an interface to a native implementation. +

+
+
+ Installing a crypto provider +

+ The pure Java implementation from Bouncy Castle is easy to + install. +

+
    +
  1. + Download the binary distribution for your JDK version. If you have JDK + 1.3 or earlier you must also download a JCE from the same page. +
  2. +
  3. + Unpack the distribution. Add the jar file to your classpath. A + convenient way to use the jar on Linux is to simply drop it into the + FOP lib directory, it will be automatically picked up by + fop.sh. If you have JDK 1.3 or earlier don't forget to + install the JCE as well. +
  4. +
  5. + Open the java.security file and add
    + security.provider.6=org.bouncycastle.jce.provider.BouncyCastleProvider,
    + preferably at the end of the block defining the other crypto + providers. For JDK 1.4 this is detailed on Sun's web site. +
  6. +
+

+ If you have any experience with Mozilla JSS or any other + cryptography provider, please post it to the fop-user list. +

+
+ +
\ No newline at end of file Propchange: xmlgraphics/site/deploy/fop/0.94/pdfencryption.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: xmlgraphics/site/deploy/fop/0.94/pdfencryption.xml ------------------------------------------------------------------------------ svn:keywords = Id Added: xmlgraphics/site/deploy/fop/0.94/pdfx.html URL: http://svn.apache.org/viewvc/xmlgraphics/site/deploy/fop/0.94/pdfx.html?rev=569118&view=auto ============================================================================== --- xmlgraphics/site/deploy/fop/0.94/pdfx.html (added) +++ xmlgraphics/site/deploy/fop/0.94/pdfx.html Thu Aug 23 12:00:37 2007 @@ -0,0 +1,384 @@ + + + + + + + +PDF/X (ISO 15930) + + + + + + + + + +
+ +
+ + + + + + + + + + + + +
+
+
+
+ +
+ + +
+ + + + + + + +
+ + +
+Font size: +   +   +   +
+

PDF/X (ISO 15930)

+ + + +

Overview

+
+
+
Warning
+
+ Support for PDF/X was made available beginning with version 0.93. + This feature is new and may not be 100% complete, yet. Feedback is welcome. +
+
+

+ PDF/X is a standard which faciliates prepress digital data exchange using PDF. + Currently, only PDF/X-3:2003 is implemented out of the many different flavours of PDF/X + profiles. PDF/X-3:2003 is documented in + ISO 15930-6:2003(E). + More info on PDF/X can be found on the + PDF/X info site. +

+
+ + +

Implementation Status

+
+

+ +PDF/X-3:2003 is implemented to the degree that FOP supports + the creation of the elements described in ISO 15930-6. +

+

+ An important restriction of the current implementation is that all normal + RGB colors specified in XSL-FO and SVG are left unchanged in the sRGB color + space (XSL-FO and SVG both use sRGB as their default color space). + There's no conversion to a CMYK color space. Although sRGB is a + calibrated color space, its color space has a different size than a CMYK + color space which makes the conversion a lossy conversion and can lead to + unwanted results. Although the use of the calibrated sRGB has been promoted + for years, print shops usually prefer to convert an sRGB PDF to CMYK prior + to production. Until there's full CMYK support in FOP you will have to + work closely with your print service provider to make sure you get the + intended result. +

+

+ Tests have been performed against Adobe Acrobat 7.0.7 (Preflight function). + Note that there are bugs in Adobe Acrobat which cause false alarms if both + PDF/A-1b and PDF/X-3:2003 are activated at the same time. +

+
+ + +

Usage (command line)

+
+

+ To activate PDF/X-3:2003 from the command-line, specify "-pdfprofile PDF/X-3:2003" + as a parameter. If there is a violation of one of the validation rules for + PDF/X, an error message is presented and the processing stops. +

+
+ + +

Usage (embedded)

+
+

+ When FOP is embedded in another Java application you can set a special option + on the renderer options in the user agent to activate the PDF/A-1b profile. + Here's an example: +

+
+FOUserAgent userAgent = fopFactory.newFOUserAgent();
+userAgent.getRendererOptions().put("pdf-x-mode", "PDF/X-3:2003");
+Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, userAgent);
+[..]
+

+ If one of the validation rules of PDF/X is violated, an PDFConformanceException + (descendant of RuntimeException) is thrown. +

+
+ + +

PDF/X in Action

+
+

+ There are a number of things that must be looked after if you activate a PDF/X + profile. If you receive a PDFConformanceException, have a look at the following + list (not necessarily comprehensive): +

+
    + +
  • + Make sure all (!) fonts are embedded. If you use base 14 fonts (like Helvetica) + you need to obtain a license for them and embed them like any other font. +
  • + +
  • + Don't use PDF encryption. PDF/X doesn't allow it. +
  • + +
  • + Don't use CMYK images without an ICC color profile. PDF/X doesn't allow mixing + color spaces and FOP currently only properly supports the sRGB color space. However, + you will need to specify an + output device profile + (usually a CMYK profile) in the configuration. sRGB won't work here since it's a + display device profile, not an output device profile. +
  • + +
  • + Don't use non-RGB colors in SVG images. Same issue as with CMYK images. +
  • + +
  • + Don't use EPS graphics with fo:external-graphic. Embedding EPS graphics in PDF + is deprecated since PDF 1.4 and prohibited by PDF/X-3:2003. +
  • + +
  • + PDF is forced to version 1.4 if PDF/X-3:2003 is activated. +
  • + +
+
+ + +

PDF profile compatibility

+
+

+ The PDF profiles "PDF/X-3:2003" and "PDF/A-1b" are compatible and can both be + activated at the same time. +

+
+ +

+by Jeremias Märki +

+
+ +
 
+
+ + + Added: xmlgraphics/site/deploy/fop/0.94/pdfx.pdf URL: http://svn.apache.org/viewvc/xmlgraphics/site/deploy/fop/0.94/pdfx.pdf?rev=569118&view=auto ============================================================================== --- xmlgraphics/site/deploy/fop/0.94/pdfx.pdf (added) +++ xmlgraphics/site/deploy/fop/0.94/pdfx.pdf Thu Aug 23 12:00:37 2007 @@ -0,0 +1,445 @@ +%PDF-1.3 +%ª«¬­ +4 0 obj +<< /Type /Info +/Producer (FOP 0.20.5) >> +endobj +5 0 obj +<< /Length 660 /Filter [ /ASCII85Decode /FlateDecode ] + >> +stream +Gaua<9lHLT(ru)m$6ORb%PrP;ZWjI^;CbK+<[pgIFs(0*CV1*Y[XS,,:b_,XOjbEXJpI.G^V?A,]?kOV'G(H\#ZCtr>O3JOE%jQRLOi7nR`>u8ScE1/^9&G@Ctu40n;d91^KU#*pJ5#jLj;85DS683627+l0u0S$5?$VE6S)?CGk4@q<27UqB)IU>i6k[H5tkY3Z%'$j50-pi.Ve=mV]B?Mrh2eM+(07`P%)KemNobaT1PfoN>&?J[K#9mBP#RLUE0XWSa-TWc]J_Aj1QM*7_c2O+E+$a-X!(+r4NgZ_DTo;G4H;Pje8.V]P3YU?StJQ#)D/iN%42#8:1AA4C%,*QTR/O/Lks1/Q1*28"?cgjl,a/7S^X%L1#[E\m[lMe:U@Qs;(E6OOIGSc^?V`V\'+@%?J^E(DHMM(*g:S&TlW&grgJPi +endstream +endobj +6 0 obj +<< /Type /Page +/Parent 1 0 R +/MediaBox [ 0 0 612 792 ] +/Resources 3 0 R +/Contents 5 0 R +/Annots 7 0 R +>> +endobj +7 0 obj +[ +8 0 R +10 0 R +12 0 R +14 0 R +16 0 R +18 0 R +20 0 R +21 0 R +] +endobj +8 0 obj +<< /Type /Annot +/Subtype /Link +/Rect [ 84.0 516.041 139.316 504.041 ] +/C [ 0 0 0 ] +/Border [ 0 0 0 ] +/A 9 0 R +/H /I +>> +endobj +10 0 obj +<< /Type /Annot +/Subtype /Link +/Rect [ 84.0 497.841 200.336 485.841 ] +/C [ 0 0 0 ] +/Border [ 0 0 0 ] +/A 11 0 R +/H /I +>> +endobj +12 0 obj +<< /Type /Annot +/Subtype /Link +/Rect [ 84.0 479.641 201.308 467.641 ] +/C [ 0 0 0 ] +/Border [ 0 0 0 ] +/A 13 0 R +/H /I +>> +endobj +14 0 obj +<< /Type /Annot +/Subtype /Link +/Rect [ 84.0 461.441 182.3 449.441 ] +/C [ 0 0 0 ] +/Border [ 0 0 0 ] +/A 15 0 R +/H /I +>> +endobj +16 0 obj +<< /Type /Annot +/Subtype /Link +/Rect [ 84.0 443.241 174.008 431.241 ] +/C [ 0 0 0 ] +/Border [ 0 0 0 ] +/A 17 0 R +/H /I +>> +endobj +18 0 obj +<< /Type /Annot +/Subtype /Link +/Rect [ 84.0 425.041 216.008 413.041 ] +/C [ 0 0 0 ] +/Border [ 0 0 0 ] +/A 19 0 R +/H /I +>> +endobj +20 0 obj +<< /Type /Annot +/Subtype /Link +/Rect [ 232.25 683.0 361.75 673.0 ] +/C [ 0 0 0 ] +/Border [ 0 0 0 ] +/A << /URI (http://xmlgraphics.apache.org/fop/) +/S /URI >> +/H /I +>> +endobj +21 0 obj +<< /Type /Annot +/Subtype /Link +/Rect [ 221.685 671.75 372.315 661.75 ] +/C [ 0 0 0 ] +/Border [ 0 0 0 ] +/A << /URI (http://xmlgraphics.apache.org/fop/) +/S /URI >> +/H /I +>> +endobj +22 0 obj +<< /Length 2415 /Filter [ /ASCII85Decode /FlateDecode ] + >> +stream +Gatm=D3NF,&H88.iF/T^Qm%J9^P6Y3j_ea)Tj29qo_Ljnj@"W1V1)!,IskD,A$:9#&f?WJ'$J_gH$39dU3jG@tEgs`!rfef)#7mZ(G/tl8p^!o\H,%Hbg6=XFI=jc]ct=ahJM0NX,pn$U+Y2HLNqmF,sF(^:)$gI^l^2c!IOXmfLZ?,']Oh!rqH=>#'O=]Nd9TO;d"^4.j+\r6V\Rj/n/TY=2+4L[KBsZRIANlq,f%$(.)G:]RaTe['gVdeXq'X?AOf_tulOd\@&%'u;f%V*tH`a\`>-3?=Jr<7%gkHS#Wj263l&s4,;-Pc%M.$dER;.sgRZF'#K5;`gMu7Uu2CDC>%]56-PaqhOo1h9J4WNsA_X%pQL%r=dpAOg8PUL6d3=11^q@5a7c;$'&14AC_9A-!YO-(E7r!9/nH&*6H5S1Nd.g/D1BJ4JHPq`;'2t`,U7iT45@eV7bm8qk55fmFJ=[AO`gc5:Q2io@9#CT?S2`49`S!,Y"2Xd$%P+f];o@[9A>,(]]J(rR[bHat-&a%iZ**9d_J-WF.#BlZY@EhZAe=`*/BV70BVZ]C7KDL1P.r[AqTT$Xf+i?<)9rZSFZf/]oV-%^akbp/LfTPc*pWl8Yr7\PUl1Jo$Gab6jY<-N3[Z_m).27nbm6\,qLDQ*S*)o"lqn@#eMF'9VipkSXgW)VW$XS5qDJL6P*'B-G%Lbk25Oj0-T8Jh.@?1YEoKM!3:s$`ZWJYH'%`#EF3a;KL9fCt]D&6BBM,jF6rKQHJQYIK-#Wc!VASC)+df%d[GjWFMrcXi3*.Uk03H\q(/<8nObf^W&h_O0)#rf.Bcg%,/bs6K:m.8DC/n,KmbDf?1YH%J:_=];\e=@Ub:nX'IA^g].pi@Eh<-*I*FJt&^Nd*oKPl8fQT]+S7_n4[UIT]5h\[gj%Sc5nhhpdh,opsn-6IQ>.pg@Q^D2mQV*N5VEL,A,p[jaPEOZ-8UO3(sH6K\*')3#kBOSb]O2t.89@j2&1NZb3X<\[X0#5`%^O*akX)TFc"@0bZ!"I%Fb!VT?i]o$Wm2j1"c>YKBP9&"@l@;A&X18W80bY,V5@+kTTWrga/?s[,e/p]]7@GB.\IVnD8aVC%W8u!]3UUWWF(%Ej*M@2WdI4gL;H:I+^F+_bemeq,+I7^3oi\YdIO#`,`K?32IhZh3GhNk[l 52\M/oDmUdk(X(]3`%[rfJqaCj/UO-b1(:^qi:&\0R+()`ADHQgioD3E,G8]lBNb,^)X]Lm2.o(]d:W=>184O\ic\;0[]>C9-*MG+,>bhnq\iTEZKDj\V;Dm33(^OH*!d.&r?,lMheFBEjdCrqd.(j,Fj3cZQXi\J:sZ%O,8J3XT*eS$Lh_R*E?]drirZOC/EbeUhV*Y@i^Ic$CE/%o!VG?2~> +endstream +endobj +23 0 obj +<< /Type /Page +/Parent 1 0 R +/MediaBox [ 0 0 612 792 ] +/Resources 3 0 R +/Contents 22 0 R +/Annots 24 0 R +>> +endobj +24 0 obj +[ +25 0 R +26 0 R +27 0 R +28 0 R +] +endobj +25 0 obj +<< /Type /Annot +/Subtype /Link +/Rect [ 231.336 535.856 336.324 523.856 ] +/C [ 0 0 0 ] +/Border [ 0 0 0 ] +/A << /URI (http://www.iso.org/iso/en/CatalogueDetailPage.CatalogueDetail?CSNUMBER=39940&ICS1=37&ICS2=100&ICS3=99) +/S /URI >> +/H /I +>> +endobj +26 0 obj +<< /Type /Annot +/Subtype /Link +/Rect [ 89.664 522.656 165.672 510.656 ] +/C [ 0 0 0 ] +/Border [ 0 0 0 ] +/A << /URI (http://www.pdfx.info/) +/S /URI >> +/H /I +>> +endobj +27 0 obj +<< /Type /Annot +/Subtype /Link +/Rect [ 232.25 683.0 361.75 673.0 ] +/C [ 0 0 0 ] +/Border [ 0 0 0 ] +/A << /URI (http://xmlgraphics.apache.org/fop/) +/S /URI >> +/H /I +>> +endobj +28 0 obj +<< /Type /Annot +/Subtype /Link +/Rect [ 221.685 671.75 372.315 661.75 ] +/C [ 0 0 0 ] +/Border [ 0 0 0 ] +/A << /URI (http://xmlgraphics.apache.org/fop/) +/S /URI >> +/H /I +>> +endobj +29 0 obj +<< /Length 2123 /Filter [ /ASCII85Decode /FlateDecode ] + >> +stream +Gatm+MK6Q)DVtn,1%[NMOuQo^/C9iFW4Ib?Tf3-.d98AunL/!@2]skU,lS8LF:UB-V`^:QIQ'`'p<^$2ij0@LibE.$\reN[ZT-p>)u0oR^FM"na>#>aR3hd:0l>)IPB`++\qWe(bP%q5p0klno!tHDq/g7+bd&h[[ENYX@OoA(%Eki0V8?n+`,TQ,D]aH6FKQNU4ECb[hU!q3c^Djl!@a.L8BTOT_"`W0u06cC>=s!2sY=ni`f`gSJTl<_-R3)VYd$+mV==9o_DV-k!m#IILP_\[>>!\RtFju;t\H4cY)08pqk\5Xe-URaHFbe46]L@df:eJl=hITl?*N%WhIBeR'F8V,%%6ce5GeDJme]2PA$O`h7.W%[/E.u,Z3YP(/ec7@,).PeLk>7h6Rm>`&@!S8YH4BIN&iPJ5@[ZRc`N=ul8.0F'Ph,dKRBK#J\B!2I 5!uY*<$H\G6S+@:'jI(OGWZc$0\%Lj,<72?^)1Jk2m<3!T)XI?i-S&Li]7X*_p.7:,Zg8D@+4RgQ/o_h8`2$p9[tWWH=g:f%O=MSZif#tT_aQL_22J(J'[^Zf-a=da3C,50^4d6-90Ah7qQA>X#QbAOPXbI\)d)sD4;GM*`%`,g.$pH3M[=cZM_/P-,[Rh=qVgmMOWmG3-kXMNEOcVqUh+-Pd03l9,KFiFnqVG.&`En#H,k5r's-qXU6tV5Mf;sCtCbJ_PJFs*p,9'ou-GDGP`*XV7LMXa.T4*J_P+D^ppYA"Q^GDn\DZ&+c<&M`B."4qj:\"c`p=98:\r"NScq02tQu&a?QH@)Z7A`WQ`pol/'ILQ:Er=A*j,U.$'Gf;V*X76HDA8X#,XAp9M[geDaLHqUXqkI8Rq!!1T"7_4H_V7'4GonoI5r`qj#8,kd?nSW[FcqX[u==10Cp4rqE?)m9YD4*]4S&@m'DZ7]:47uklf_"7b47sRUhfafsb3>J.!,d-`0jesMGIp/1__-QsM_q^+Ys'.SkHdc]?5)jbC2mM^`*Api% b-14>Q!C\L-8i(EI_>45V-$A@uAYMC9uY-OITZu<-WJSr7](H2UXQ$Z*j;bMsM5M4tfo+oo'TM?a)mjmUcCC'7hD9o@m:>nn0"g1f`n/M1]ZHOpS/mai8Rlq)4$6g[d?d(o]d/ik]]>_L/~> +endstream +endobj +30 0 obj +<< /Type /Page +/Parent 1 0 R +/MediaBox [ 0 0 612 792 ] +/Resources 3 0 R +/Contents 29 0 R +/Annots 31 0 R +>> +endobj +31 0 obj +[ +32 0 R +33 0 R +34 0 R +] +endobj +32 0 obj +<< /Type /Annot +/Subtype /Link +/Rect [ 179.976 390.966 279.96 378.966 ] +/C [ 0 0 0 ] +/Border [ 0 0 0 ] +/A << /URI (configuration.html#pdf-renderer) +/S /URI >> +/H /I +>> +endobj +33 0 obj +<< /Type /Annot +/Subtype /Link +/Rect [ 232.25 683.0 361.75 673.0 ] +/C [ 0 0 0 ] +/Border [ 0 0 0 ] +/A << /URI (http://xmlgraphics.apache.org/fop/) +/S /URI >> +/H /I +>> +endobj +34 0 obj +<< /Type /Annot +/Subtype /Link +/Rect [ 221.685 671.75 372.315 661.75 ] +/C [ 0 0 0 ] +/Border [ 0 0 0 ] +/A << /URI (http://xmlgraphics.apache.org/fop/) +/S /URI >> +/H /I +>> +endobj +36 0 obj +<< + /Title (\376\377\0\61\0\40\0\117\0\166\0\145\0\162\0\166\0\151\0\145\0\167) + /Parent 35 0 R + /Next 37 0 R + /A 9 0 R +>> endobj +37 0 obj +<< + /Title (\376\377\0\62\0\40\0\111\0\155\0\160\0\154\0\145\0\155\0\145\0\156\0\164\0\141\0\164\0\151\0\157\0\156\0\40\0\123\0\164\0\141\0\164\0\165\0\163) + /Parent 35 0 R + /Prev 36 0 R + /Next 38 0 R + /A 11 0 R +>> endobj +38 0 obj +<< + /Title (\376\377\0\63\0\40\0\125\0\163\0\141\0\147\0\145\0\40\0\50\0\143\0\157\0\155\0\155\0\141\0\156\0\144\0\40\0\154\0\151\0\156\0\145\0\51) + /Parent 35 0 R + /Prev 37 0 R + /Next 39 0 R + /A 13 0 R +>> endobj +39 0 obj +<< + /Title (\376\377\0\64\0\40\0\125\0\163\0\141\0\147\0\145\0\40\0\50\0\145\0\155\0\142\0\145\0\144\0\144\0\145\0\144\0\51) + /Parent 35 0 R + /Prev 38 0 R + /Next 40 0 R + /A 15 0 R +>> endobj +40 0 obj +<< + /Title (\376\377\0\65\0\40\0\120\0\104\0\106\0\57\0\130\0\40\0\151\0\156\0\40\0\101\0\143\0\164\0\151\0\157\0\156) + /Parent 35 0 R + /Prev 39 0 R + /Next 41 0 R + /A 17 0 R +>> endobj +41 0 obj +<< + /Title (\376\377\0\66\0\40\0\120\0\104\0\106\0\40\0\160\0\162\0\157\0\146\0\151\0\154\0\145\0\40\0\143\0\157\0\155\0\160\0\141\0\164\0\151\0\142\0\151\0\154\0\151\0\164\0\171) + /Parent 35 0 R + /Prev 40 0 R + /A 19 0 R +>> endobj +42 0 obj +<< /Type /Font +/Subtype /Type1 +/Name /F1 +/BaseFont /Helvetica +/Encoding /WinAnsiEncoding >> +endobj +43 0 obj +<< /Type /Font +/Subtype /Type1 +/Name /F5 +/BaseFont /Times-Roman +/Encoding /WinAnsiEncoding >> +endobj +44 0 obj +<< /Type /Font +/Subtype /Type1 +/Name /F3 +/BaseFont /Helvetica-Bold +/Encoding /WinAnsiEncoding >> +endobj +45 0 obj +<< /Type /Font +/Subtype /Type1 +/Name /F2 +/BaseFont /Helvetica-Oblique +/Encoding /WinAnsiEncoding >> +endobj +46 0 obj +<< /Type /Font +/Subtype /Type1 +/Name /F9 +/BaseFont /Courier +/Encoding /WinAnsiEncoding >> +endobj +47 0 obj +<< /Type /Font +/Subtype /Type1 +/Name /F7 +/BaseFont /Times-Bold +/Encoding /WinAnsiEncoding >> +endobj +1 0 obj +<< /Type /Pages +/Count 3 +/Kids [6 0 R 23 0 R 30 0 R ] >> +endobj +2 0 obj +<< /Type /Catalog +/Pages 1 0 R + /Outlines 35 0 R + /PageMode /UseOutlines + >> +endobj +3 0 obj +<< +/Font << /F1 42 0 R /F5 43 0 R /F3 44 0 R /F2 45 0 R /F9 46 0 R /F7 47 0 R >> +/ProcSet [ /PDF /ImageC /Text ] >> +endobj +9 0 obj +<< +/S /GoTo +/D [23 0 R /XYZ 67.0 659.0 null] +>> +endobj +11 0 obj +<< +/S /GoTo +/D [23 0 R /XYZ 67.0 499.656 null] +>> +endobj +13 0 obj +<< +/S /GoTo +/D [23 0 R /XYZ 67.0 261.922 null] +>> +endobj +15 0 obj +<< +/S /GoTo +/D [23 0 R /XYZ 67.0 172.188 null] +>> +endobj +17 0 obj +<< +/S /GoTo +/D [30 0 R /XYZ 67.0 540.9 null] +>> +endobj +19 0 obj +<< +/S /GoTo +/D [30 0 R /XYZ 67.0 299.966 null] +>> +endobj +35 0 obj +<< + /First 36 0 R + /Last 41 0 R +>> endobj +xref +0 48 +0000000000 65535 f +0000010490 00000 n +0000010562 00000 n +0000010654 00000 n +0000000015 00000 n +0000000071 00000 n +0000000822 00000 n +0000000942 00000 n +0000001016 00000 n +0000010788 00000 n +0000001150 00000 n +0000010851 00000 n +0000001286 00000 n +0000010917 00000 n +0000001422 00000 n +0000010983 00000 n +0000001556 00000 n +0000011049 00000 n +0000001692 00000 n +0000011113 00000 n +0000001828 00000 n +0000002010 00000 n +0000002196 00000 n +0000004704 00000 n +0000004827 00000 n +0000004875 00000 n +0000005130 00000 n +0000005304 00000 n +0000005486 00000 n +0000005672 00000 n +0000007888 00000 n +0000008011 00000 n +0000008052 00000 n +0000008236 00000 n +0000008418 00000 n +0000011179 00000 n +0000008604 00000 n +0000008743 00000 n +0000008974 00000 n +0000009196 00000 n +0000009395 00000 n +0000009588 00000 n +0000009828 00000 n +0000009936 00000 n +0000010046 00000 n +0000010159 00000 n +0000010275 00000 n +0000010381 00000 n +trailer +<< +/Size 48 +/Root 2 0 R +/Info 4 0 R +>> +startxref +11230 +%%EOF Added: xmlgraphics/site/deploy/fop/0.94/pdfx.xml URL: http://svn.apache.org/viewvc/xmlgraphics/site/deploy/fop/0.94/pdfx.xml?rev=569118&view=auto ============================================================================== --- xmlgraphics/site/deploy/fop/0.94/pdfx.xml (added) +++ xmlgraphics/site/deploy/fop/0.94/pdfx.xml Thu Aug 23 12:00:37 2007 @@ -0,0 +1,133 @@ + + +
+ PDF/X (ISO 15930) + $Revision$ + + + +
+ +
+ Overview + + Support for PDF/X was made available beginning with version 0.93. + This feature is new and may not be 100% complete, yet. Feedback is welcome. + +

+ PDF/X is a standard which faciliates prepress digital data exchange using PDF. + Currently, only PDF/X-3:2003 is implemented out of the many different flavours of PDF/X + profiles. PDF/X-3:2003 is documented in + ISO 15930-6:2003(E). + More info on PDF/X can be found on the + PDF/X info site. +

+
+
+ Implementation Status +

+ PDF/X-3:2003 is implemented to the degree that FOP supports + the creation of the elements described in ISO 15930-6. +

+

+ An important restriction of the current implementation is that all normal + RGB colors specified in XSL-FO and SVG are left unchanged in the sRGB color + space (XSL-FO and SVG both use sRGB as their default color space). + There's no conversion to a CMYK color space. Although sRGB is a + calibrated color space, its color space has a different size than a CMYK + color space which makes the conversion a lossy conversion and can lead to + unwanted results. Although the use of the calibrated sRGB has been promoted + for years, print shops usually prefer to convert an sRGB PDF to CMYK prior + to production. Until there's full CMYK support in FOP you will have to + work closely with your print service provider to make sure you get the + intended result. +

+

+ Tests have been performed against Adobe Acrobat 7.0.7 (Preflight function). + Note that there are bugs in Adobe Acrobat which cause false alarms if both + PDF/A-1b and PDF/X-3:2003 are activated at the same time. +

+
+
+ Usage (command line) +

+ To activate PDF/X-3:2003 from the command-line, specify "-pdfprofile PDF/X-3:2003" + as a parameter. If there is a violation of one of the validation rules for + PDF/X, an error message is presented and the processing stops. +

+
+
+ Usage (embedded) +

+ When FOP is embedded in another Java application you can set a special option + on the renderer options in the user agent to activate the PDF/A-1b profile. + Here's an example: +

+ +

+ If one of the validation rules of PDF/X is violated, an PDFConformanceException + (descendant of RuntimeException) is thrown. +

+
+
+ PDF/X in Action +

+ There are a number of things that must be looked after if you activate a PDF/X + profile. If you receive a PDFConformanceException, have a look at the following + list (not necessarily comprehensive): +

+
    +
  • + Make sure all (!) fonts are embedded. If you use base 14 fonts (like Helvetica) + you need to obtain a license for them and embed them like any other font. +
  • +
  • + Don't use PDF encryption. PDF/X doesn't allow it. +
  • +
  • + Don't use CMYK images without an ICC color profile. PDF/X doesn't allow mixing + color spaces and FOP currently only properly supports the sRGB color space. However, + you will need to specify an + output device profile + (usually a CMYK profile) in the configuration. sRGB won't work here since it's a + display device profile, not an output device profile. +
  • +
  • + Don't use non-RGB colors in SVG images. Same issue as with CMYK images. +
  • +
  • + Don't use EPS graphics with fo:external-graphic. Embedding EPS graphics in PDF + is deprecated since PDF 1.4 and prohibited by PDF/X-3:2003. +
  • +
  • + PDF is forced to version 1.4 if PDF/X-3:2003 is activated. +
  • +
+
+
+ PDF profile compatibility +

+ The PDF profiles "PDF/X-3:2003" and "PDF/A-1b" are compatible and can both be + activated at the same time. +

+
+ +
\ No newline at end of file Propchange: xmlgraphics/site/deploy/fop/0.94/pdfx.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: xmlgraphics/site/deploy/fop/0.94/pdfx.xml ------------------------------------------------------------------------------ svn:keywords = Id --------------------------------------------------------------------- Apache XML Graphics Project URL: http://xmlgraphics.apache.org/ To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org For additional commands, e-mail: commits-help@xmlgraphics.apache.org