List of usage examples for com.itextpdf.text Document addKeywords
public boolean addKeywords(String keywords)
From source file:pdfgen.pdf_generation_try5.java
private void addMetaData(Document document) { document.addTitle("YourLawyer"); document.addSubject("NAME CHANGE AFFIDAVIT"); document.addKeywords("Affidavit, Name ,User-type"); document.addAuthor("Extract name from the user"); document.addCreator("YourLawyer"); }
From source file:qedit.export.PDFObject.java
License:GNU General Public License
public void publish(OutputStream stream) throws Exception { if (stream == null) { throw new NullPointerException("Cannot public pdf to a null output stream"); }/*from w w w . ja va 2 s . c om*/ try { /* * Initialize the document... */ Document doc = new Document(); try { PdfWriter.getInstance(doc, stream); } catch (ClassCastException ex) { throw new ClassCastException("The stream you provided is not a valid output stream"); } doc.open(); /* * Meta-information about the document... */ doc.addAuthor(pdfAuthor); doc.addCreationDate(); doc.addProducer(); doc.addSubject(subject); doc.addCreator(pdfCreator); doc.addTitle(pdfTitle); doc.addKeywords(pdfKeywords); doc.addHeader("License", "GNU GPL v3"); doc.add(new Paragraph("\n\n\n")); for (Element e : elements) { doc.add(e); } doc.close(); } catch (DocumentException ex) { throw new DocumentException("Error while generating PDF representation."); } }
From source file:report.pdfs.Basics_PDF_Report.java
private void addMetaData(Document document) { document.addTitle("Basics Overview Report"); document.addSubject("Bascis"); document.addKeywords("Basics, Report"); document.addAuthor("admin"); document.addCreator(System.getProperty("user.name")); }
From source file:report.pdfs.Feed_PDF_Report.java
private void addMetaData(Document document) { document.addTitle("Feed Overview Report"); document.addSubject("Feed"); document.addKeywords("Beef, Feed, Report"); document.addAuthor("admin"); document.addCreator(System.getProperty("user.name")); }
From source file:report.pdfs.Fertilizer_PDF_Report.java
private void addMetaData(Document document) { document.addTitle("Fertilizer Overview Report"); document.addSubject("Fertilizer"); document.addKeywords("Basics, Fertilizer, Report"); document.addAuthor("admin"); document.addCreator(System.getProperty("user.name")); }
From source file:report.pdfs.Gas_PDF_Report.java
private void addMetaData(Document document) { document.addTitle("Gas Overview Report"); document.addSubject("Gas"); document.addKeywords("Basics, Gas, Report"); document.addAuthor("admin"); document.addCreator(System.getProperty("user.name")); }
From source file:report.pdfs.Herd_PDF_Report.java
private void addMetaData(Document document) { document.addTitle("Herd Overview Report"); document.addSubject("Herd"); document.addKeywords("Beef, Herd, Report"); document.addAuthor("admin"); document.addCreator(System.getProperty("user.name")); }
From source file:report.pdfs.Labour_PDF_Report.java
private void addMetaData(Document document) { document.addTitle("Labour Overview Report"); document.addSubject("Labour"); document.addKeywords("Basics, Labour, Report"); document.addAuthor("admin"); document.addCreator(System.getProperty("user.name")); }
From source file:report.pdfs.Lighting_PDF_Report.java
private void addMetaData(Document document) { document.addTitle("Lighting Overview Report"); document.addSubject("Lighting"); document.addKeywords("Basics, Lighting, Report"); document.addAuthor("admin"); document.addCreator(System.getProperty("user.name")); }
From source file:report.pdfs.Machinery_PDF_Report.java
private void addMetaData(Document document) { document.addTitle("Machinery Overview Report"); document.addSubject("Machinery"); document.addKeywords("Basics, Machinery, Report"); document.addAuthor("admin"); document.addCreator(System.getProperty("user.name")); }