We currently using pdfbox for writing out pdfs (in another project, this project currently has no write support at all), but pdfbox seems to be constant torn in my side. There are other binding for Pdfium that handle write support, so Pdfium should be able to do it.