List of usage examples for com.itextpdf.text Document addKeywords
public boolean addKeywords(String keywords)
From source file:Ekon.zamestnanecToPDF.java
/** * pridani metadat pro prohlizac/* w w w . ja va2s. c o m*/ * * @param dokument */ private static void addMetaData(Document dokument) { dokument.addTitle("Vpis zamtnance"); dokument.addSubject("Vpis,zamstnanec"); dokument.addKeywords("Zamstnanec,Vpis"); dokument.addCreator("Ekon"); }
From source file:engine.Pdf.java
public static void addMetaData(Document document) { document.addTitle("My first PDF"); document.addSubject("Using iText"); document.addKeywords("Java, PDF, iText"); document.addAuthor("Fusion Works"); document.addCreator("Fusion Works"); }
From source file:es.clinica.veterinaria.facturas.FacturaPdf.java
private void addMetaData(Document document) { document.addTitle("Factura N: " + factura.getNumero()); document.addSubject("Fecha:" + new SimpleDateFormat("yyyy").format(factura.getFecha())); document.addKeywords("Facturas PDF"); document.addAuthor("agustin.alvarez.garcia@gmail.com"); document.addCreator("agustin.alvarez.garcia@gmail.com"); }
From source file:es.tlc.pdf.writer.PDFWriter.java
private static void addMetaData(Document document) { document.addTitle("mesvida"); document.addSubject("Ficha"); document.addKeywords("Java, PDF, iText"); document.addAuthor("mesvida"); document.addCreator("mesvida"); }
From source file:eu.geopaparazzi.plugins.pdfexport.PdfExportDialogFragment.java
License:Open Source License
private void startExport() { final Context context = getContext(); new AsyncTask<String, Void, String>() { protected String doInBackground(String... params) { File pdfOutputFile = null; try { boolean hasAtLeastOne = false; /*//from ww w . j a va 2s . c o m * get notes */ List<Note> notesList = DaoNotes.getNotesList(null, false); if (notesList.size() == 0) { return NODATA; } if (isInterrupted) return INTERRUPTED; File pdfExportDir = ResourcesManager.getInstance(getActivity()).getMainStorageDir(); String filename = ResourcesManager.getInstance(getActivity()).getApplicationName() + "_projectexport_" + TimeUtilities.INSTANCE.TIMESTAMPFORMATTER_LOCAL.format(new Date()) + ".pdf"; pdfOutputFile = new File(pdfExportDir, filename); if (exportPath != null) { pdfOutputFile = new File(exportPath); } // TODO export list to pdf Document document = new Document(); document.setMargins(36, 36, 36, 36); PdfWriter.getInstance(document, new FileOutputStream(pdfOutputFile)); document.open(); document.addTitle("Geopaparazzi PDF Export"); document.addSubject("Geopaparazzi PDF Export"); document.addKeywords("geopaparazzi, export, notes"); document.addAuthor("Geopaparazzi User"); document.addCreator("Geopaparazzi - http://www.geopaparazzi.eu"); int index = 1; for (Note note : notesList) { processNote(document, note, index++); } document.close(); return pdfOutputFile.getAbsolutePath(); } catch (Exception e) { // cleanup as it might be inconsistent if (pdfOutputFile != null && pdfOutputFile.exists()) { pdfOutputFile.delete(); } GPLog.error(this, e.getLocalizedMessage(), e); e.printStackTrace(); return ""; //$NON-NLS-1$ } } protected void onPostExecute(String response) { // on UI thread! progressBar.setVisibility(View.GONE); if (response.equals(NODATA)) { String msg = context.getString(R.string.no_data_found_in_project_to_export); alertDialog.setMessage(msg); } else if (response.equals(INTERRUPTED)) { alertDialog.setMessage(context.getString(R.string.interrupted_by_user)); } else if (response.length() > 0) { String msg = context.getString(R.string.datasaved) + " " + response; alertDialog.setMessage(msg); } else { String msg = context.getString(R.string.data_nonsaved); alertDialog.setMessage(msg); } if (positiveButton != null) positiveButton.setEnabled(true); } }.execute((String) null); }
From source file:eu.trentorise.smartcampus.citizenportal.service.PdfCreator.java
private static void addMetaData(Document document) { document.addTitle("Graduatoria Provvisoria"); document.addSubject("Using iText"); document.addKeywords("Graduatoria, Provvisoria, Edilizia Pubblica"); document.addAuthor("Comunita Della Vallagarina"); document.addCreator("Comunita Della Vallagarina"); }
From source file:generadorPDF.generarPDF.java
private static void addMetaData(Document document) { document.addTitle("My first PDF"); document.addSubject("Using iText"); document.addKeywords("Java, PDF, iText"); document.addAuthor("Lars Vogel"); document.addCreator("Lars Vogel"); }/*from w w w. ja v a 2s . c o m*/
From source file:GUI.Carburant.java
private static void addMetaData(Document document) { document.addTitle("Carburant PDF"); document.addSubject("subject"); document.addKeywords("Car Fleet Management, PDF, JAVA"); document.addAuthor("Marwen"); document.addCreator("Marwen"); }
From source file:GUI.Cars.java
private static void addMetaData(Document document) { document.addTitle("Cars PDF"); document.addSubject("subject"); document.addKeywords("Car Fleet Management, PDF, JAVA"); document.addAuthor("Marwen"); document.addCreator("Marwen"); }
From source file:GUI.Fixings.java
private static void addMetaData(Document document) { document.addTitle("Fixing PDF"); document.addSubject("subject"); document.addKeywords("Car Fleet Management, PDF, JAVA"); document.addAuthor("Marwen"); document.addCreator("Marwen"); }