1 50 51 package com.lowagie.text.xml.xmp; 52 53 import com.lowagie.text.Document; 54 55 58 public class PdfSchema extends XmpSchema { 59 60 private static final long serialVersionUID = -1541148669123992185L; 61 62 public static final String DEFAULT_XPATH_ID = "pdf"; 63 64 public static final String DEFAULT_XPATH_URI = "http://ns.adobe.com/pdf/1.3/"; 65 66 67 public static final String KEYWORDS = "pdf:Keywords"; 68 69 public static final String VERSION = "pdf:PDFVersion"; 70 71 public static final String PRODUCER = "pdf:Producer"; 72 73 74 public PdfSchema() { 75 super("xmlns:" + DEFAULT_XPATH_ID + "=\"" + DEFAULT_XPATH_URI + "\""); 76 addProducer(Document.getVersion()); 77 } 78 79 83 public void addKeywords(String keywords) { 84 setProperty(KEYWORDS, keywords); 85 } 86 87 91 public void addProducer(String producer) { 92 setProperty(PRODUCER, producer); 93 } 94 95 99 public void addVersion(String version) { 100 setProperty(VERSION, version); 101 } 102 } 103 | Popular Tags |