How to convert a PDF to a postscript file using pdfbox 2.0
问题 I was able to create a PDF with PDFBox (version 1.8.9) and then convert it to a PostScript file with the following code: DocFlavor flavor = DocFlavor.SERVICE_FORMATTED.PRINTABLE; StreamPrintServiceFactory[] factories = StreamPrintServiceFactory.lookupStreamPrintServiceFactories(flavor, DocFlavor.BYTE_ARRAY.POSTSCRIPT.getMimeType()); if (factories.length == 0) { throw new PrinterException("No PostScript factories available"); } PDDocument document = pdfGenerator.getDocument(); // Attributes