Skip to content

Instantly share code, notes, and snippets.

View ManfredGit's full-sized avatar

Manfred ManfredGit

  • OTT Financial Inc
  • Toronto
View GitHub Profile
@ManfredGit
ManfredGit / ConvertPostScriptFileToPDFFormat.java
Created June 30, 2019 04:20 — forked from aspose-pdf/ConvertPostScriptFileToPDFFormat.java
This Gist contains examples of Aspose.Pdf for Java
// For complete examples and data files, please go to https://github.com/aspose-pdf/Aspose.Pdf-for-Java
// Create a new instance of PsLoadOptions
com.aspose.pdf.LoadOptions options = new com.aspose.pdf.PsLoadOptions();
// Open .ps document with created load options
Document pdfDocument = new Document("input.ps", options);
// Save document
pdfDocument.save("PSToPDF_out.pdf");
@ManfredGit
ManfredGit / GenerateSimplePdfReportWithJasperReports.java
Last active August 29, 2015 14:27 — forked from rponte/GenerateSimplePdfReportWithJasperReports.java
Example on how to generate a simple pdf report with JasperReports
package rponte.report;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.Map;
import net.sf.jasperreports.engine.JRException;