Hi René,
I still use my how PDF generator that convert HTML to PDF using WebKit and the
Mac printing engine. It may fit or not. I need some complex layout with
contextual texts managed by my client for psychometric reports and did not want
to duplicate the layout works...
Need a mac server accessible but very easy to use, you create the HTML using WO
component. The API in it simpler form is like this in a WO Component that
already display the expected contents like a preview.
public WOActionResults versionPdf() {
return
Html2PDFService.createRequest().addComponent(this).createInlineViewResponse("Facture
"+facture.noFacture()+".pdf");
}
https://github.com/Kaviju/Html2PdfServer
Kaviju/Html2PdfServer: This faceless Mac application implement a server that
create PDF files from HTML sources.
github.com
Also works in background tasks, this method create a PDF and send it as en
email attachment.
static public void sendEmail() {
ERMailDeliveryPlainText mail = new ERMailDeliveryPlainText();
try {
mail.setFromAddress(ERXProperties.stringForKey("emailFromAddress"),
ERXProperties.stringForKey("emailFromName"));
mail.setToAddresses(new
NSArray<>(ERXProperties.stringForKey("dispatchersEmail")));
mail.setSubject("Disponibilités de chauffeurs "+LocalDate.now());
WOContext context = ERXWOContext.newContext();
context._setSession(null);
DriverAvailabilityList page =
ERXApplication.erxApplication().pageWithName(DriverAvailabilityList.class,
context);
byte[] pdfData =
Html2PDFService.createRequest().addComponent(page).getPdfData();
ERMailDataAttachment attachment = new
ERMailDataAttachment("Disponibilites "+LocalDate.now()+".pdf", null, pdfData);
mail.addAttachment(attachment);
mail.setTextContent("Voici le rapport des disponibilités de
chauffeurs le "+LocalDate.now()+"\n");
mail.sendMail();
} catch (Exception e) {
throw new RuntimeException(e);
}
}
I recently added some internal housekeeping and a status call not yet in the
repo. If anyone need it, I can accelerate the publishing if these changes.
Regards,
Samuel
> Le 6 janv. 2026 à 09:53, René Bock <[email protected]> a écrit :
>
> Hi all,
>
>
> We want to replace our current pdfLib base pdf generator.
>
> So we are currently looking for a java based pdf generator supporting
> generating pdf files conforming at least pdf/ua-1, better pdf/ua-2 specs.
>
> A first scan leads to two tools, which may fulfil our requirements:
>
> * iText (version 7)
> * Apache FOP + Apache pdfBox
>
>
> Is anybody using one of this tools in production and like to share the
> experience in developing with this tool? Support or Community?
>
> Does anybody know about an alternative product worth to evaluate?
>
>
>
> Best regards
>
> René Bock
>
> --
> Phone: +49 69 650096 18
> salient GmbH // Lindleystraße 12 // 60314 Frankfurt
> Amtsgericht Frankfurt am Main // salient GmbH HRB 48693
>