Document createDocument(boolean landscape) throws DocumentException, IOException { // creation of a document-object final Rectangle pageSize = getPageSize(landscape); // marges de 20 à gauche, à droite et en haut pour bien utiliser la largeur // et avoir une meilleur lisibilité sur les tableaux larges, // mais marge de 40 en bas pour ne pas empiéter sur les numéros de pages final Document document = new Document(pageSize, 20, 20, 20, 40); final String title; if (range == null) { title = I18N.getFormattedString("Monitoring_sur", application); } else { title = I18N.getFormattedString("Monitoring_sur", application) + " - " + range.getLabel(); } createWriter(document, title); // we add some meta information to the document (after writer) document.addAuthor(application); document.addCreator( "JavaMelody par E. Vernat, https://github.com/javamelody/javamelody/wiki"); document.addTitle(title); return document; }
@Override protected void addTitle(final Document document, final Locale locale) { document.addTitle("deviationCausesReporting.report.title"); }
@Override protected final void addTitle(final Document document, final Locale locale) { document.addTitle(translationService.translate("supplyNegotiations.offer.report.title", locale)); }
@Override protected final void addTitle(final Document document, final Locale locale) { document.addTitle(translationService.translate("supplyNegotiations.requestForQuotation.report.title", locale)); }
@Override protected final void addTitle(final Document document, final Locale locale) { document.addTitle(translationService.translate("technologies.technologiesTechnologyDetails.report.title", locale)); }
@Override protected void addTitle(Document document, Locale locale) { document.addTitle(translationService.translate("materialFlowResources.report.title", locale)); }
@Override protected void addTitle(Document document, Locale locale) { document.addTitle(translationService.translate("warehouseMinimalState.report.title", locale)); }
@Override protected final void addTitle(final Document document, final Locale locale) { document.addTitle(translationService.translate("basic.palletNumber.report.title", locale)); }
@Override protected final void addTitle(final Document document, final Locale locale) { document.addTitle(translationService.translate("advancedGenealogy.trackingRecordSimpleDetails.report.title", locale)); }
@Override protected final void addTitle(final Document document, final Locale locale) { document.addTitle(translationService.translate("deliveries.delivery.report.title", locale)); }
@Override protected final void addTitle(final Document document, final Locale locale) { document.addTitle(translationService.translate("basic.palletNumber.report.title", locale)); }
@Override protected final void addTitle(final Document document, final Locale locale) { document.addTitle(translationService.translate("orderSupplies.materialRequirementCoverage.report.title", locale)); }
@Override protected final void addTitle(final Document document, final Locale locale) { document.addTitle(translationService.translate("orderSupplies.materialRequirementCoverage.report.title", locale)); }
@Override protected final void addTitle(final Document document, final Locale locale) { document.addTitle(translationService.translate("deliveries.order.report.title", locale)); }
@Override protected void addTitle(Document document, Locale locale) { document.addTitle(translationService.translate("orders.order.report.order", locale, orderEntity.getStringField(OrderFields.NUMBER))); }
/** * Set the metadata on the PDF document * * @param doc * PDF document * @param firstName * first name of the person * @param lastName * last name of the person */ private void setDocumentMetadata(Document doc, String firstName, String lastName) { doc.addTitle(firstName + " " + lastName); doc.addSubject("Data from the eID card"); doc.addCreator("Belgian eID applet"); doc.addProducer(); doc.addCreationDate(); }
private void setDidValues(com.lowagie.text.Document doc) { String v = _outputDevice.getMetadataByName("title"); if (v != null) { doc.addTitle(v); } v = _outputDevice.getMetadataByName("author"); if (v != null) { doc.addAuthor(v); } v = _outputDevice.getMetadataByName("subject"); if (v != null) { doc.addSubject(v); } v = _outputDevice.getMetadataByName("keywords"); if (v != null) { doc.addKeywords(v); } }
private void setDidValues(com.lowagie.text.Document doc) { String v = _outputDevice.getMetadataByName("title"); if (v != null) { doc.addTitle(v); } v = _outputDevice.getMetadataByName("author"); if (v != null) { doc.addAuthor(v); } v = _outputDevice.getMetadataByName("subject"); if (v != null) { doc.addSubject(v); } v = _outputDevice.getMetadataByName("keywords"); if (v != null) { doc.addKeywords(v); } }
Document createDocument(boolean landscape) throws DocumentException, IOException { // creation of a document-object final Rectangle pageSize = getPageSize(landscape); // marges de 20 à gauche, à droite et en haut pour bien utiliser la largeur // et avoir une meilleur lisibilité sur les tableaux larges, // mais marge de 40 en bas pour ne pas empiéter sur les numéros de pages final Document document = new Document(pageSize, 20, 20, 20, 40); final String title; if (range == null) { title = I18N.getFormattedString("Monitoring_sur", application); } else { title = I18N.getFormattedString("Monitoring_sur", application) + " - " + range.getLabel(); } createWriter(document, title); // we add some meta information to the document (after writer) document.addAuthor(application); document.addCreator( "JavaMelody par E. Vernat, https://github.com/javamelody/javamelody/wiki"); document.addTitle(title); return document; }
protected void initMetaData(FacesContext context) { title = (String) valueBinding(context, "title", title); if (title != null) { document.addTitle(title); } subject = (String) valueBinding(context, "subject", subject); if (subject != null) { document.addSubject(subject); } keywords = (String) valueBinding(context, "keywords", keywords); if (keywords != null) { document.addKeywords(keywords); } author = (String) valueBinding(context, "author", author); if (author != null) { document.addAuthor(author); } creator = (String) valueBinding(context, "creator", creator); if (creator != null) { document.addCreator(creator); } }