Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Created January 7, 2022 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aspose-com-gists/f75d794e7291610a8da759d4b4703aa7 to your computer and use it in GitHub Desktop.
Save aspose-com-gists/f75d794e7291610a8da759d4b4703aa7 to your computer and use it in GitHub Desktop.
Convert CFF to PDF Programmatically in Java
// Load the input CFF file with CF2 file extension
Image image = Image.load("Test.cf2");
// Initialize PdfOptions class object
PdfOptions options = new PdfOptions();
// Set properties for the output PDF file
options.getPdfDocumentInfo().setTitle("Convert CFF to PDF");
// Save output PDF file
image.save("CF2toPDF.pdf", options);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment