You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PDFConfigurationConstants.java 3.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /*
  2. * Licensed to the Apache Software Foundation (ASF) under one or more
  3. * contributor license agreements. See the NOTICE file distributed with
  4. * this work for additional information regarding copyright ownership.
  5. * The ASF licenses this file to You under the Apache License, Version 2.0
  6. * (the "License"); you may not use this file except in compliance with
  7. * the License. You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. */
  17. /* $Id$ */
  18. package org.apache.fop.render.pdf;
  19. /**
  20. * Constants used for configuring PDF output.
  21. */
  22. public interface PDFConfigurationConstants {
  23. /** PDF encryption parameter: all parameters as object, datatype: PDFEncryptionParams */
  24. String ENCRYPTION_PARAMS = "encryption-params";
  25. /** PDF encryption parameter: user password, datatype: String */
  26. String USER_PASSWORD = "user-password";
  27. /** PDF encryption parameter: owner password, datatype: String */
  28. String OWNER_PASSWORD = "owner-password";
  29. /** PDF encryption parameter: Forbids printing, datatype: Boolean or "true"/"false" */
  30. String NO_PRINT = "noprint";
  31. /** PDF encryption parameter: Forbids copying content, datatype: Boolean or "true"/"false" */
  32. String NO_COPY_CONTENT = "nocopy";
  33. /** PDF encryption parameter: Forbids editing content, datatype: Boolean or "true"/"false" */
  34. String NO_EDIT_CONTENT = "noedit";
  35. /** PDF encryption parameter: Forbids annotations, datatype: Boolean or "true"/"false" */
  36. String NO_ANNOTATIONS = "noannotations";
  37. /**
  38. * PDF encryption parameter: Forbids filling in existing interactive forms, datatype:
  39. * Boolean or "true"/"false"
  40. */
  41. String NO_FILLINFORMS = "nofillinforms";
  42. /**
  43. * PDF encryption parameter: Forbids extracting text and graphics, datatype: Boolean
  44. * or "true"/"false"
  45. */
  46. String NO_ACCESSCONTENT = "noaccesscontent";
  47. /**
  48. * PDF encryption parameter: Forbids assembling document, datatype: Boolean or
  49. * "true"/"false"
  50. */
  51. String NO_ASSEMBLEDOC = "noassembledoc";
  52. /**
  53. * PDF encryption parameter: Forbids printing to high quality, datatype: Boolean or
  54. * "true"/"false"
  55. */
  56. String NO_PRINTHQ = "noprinthq";
  57. /**
  58. * PDF encryption length parameter: must be a multiple of 8 between 40 and 128,
  59. * default value 40, datatype: int.
  60. */
  61. String ENCRYPTION_LENGTH = "encryption-length";
  62. /** Rendering Options key for the PDF/A mode. */
  63. String PDF_A_MODE = "pdf-a-mode";
  64. /** Rendering Options key for the PDF/X mode. */
  65. String PDF_X_MODE = "pdf-x-mode";
  66. /** Rendering Options key for the ICC profile for the output intent. */
  67. String KEY_OUTPUT_PROFILE = "output-profile";
  68. /**
  69. * Rendering Options key for disabling the sRGB color space (only possible if no PDF/A or
  70. * PDF/X profile is active).
  71. */
  72. String KEY_DISABLE_SRGB_COLORSPACE = "disable-srgb-colorspace";
  73. }