We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Unable to generate pdf

hi all,

i am using aspose licence, am getting following exception at the time of pdf generation,

java.io.IOException: PDF header signature error.

11:02:26,692 ERROR [stderr] (http–127.0.0.1-8080-10) at com.aspose.pdf.kit.lf.k(Unknown Source)

11:02:26,695 ERROR [stderr] (http–127.0.0.1-8080-10) at com.aspose.pdf.kit.oq.a(Unknown Source)

11:02:26,697 ERROR [stderr] (http–127.0.0.1-8080-10) at com.aspose.pdf.kit.oq.(Unknown Source)

11:02:26,699 ERROR [stderr] (http–127.0.0.1-8080-10) at com.aspose.pdf.kit.oq.(Unknown Source)

11:02:26,700 ERROR [stderr] (http–127.0.0.1-8080-10) at com.aspose.pdf.kit.n.b(Unknown Source)

11:02:26,703 ERROR [stderr] (http–127.0.0.1-8080-10) at com.aspose.pdf.kit.PdfContentEditor.save(Unknown Source)


plz help.

Hi Rakesh,


Thanks for using our API’s.

It looks like you are using legacy Aspose.Pdf.Kit for Java and trying to make some modifications in some existing PDF file. Can you please share the code snippet and source PDF files which you are using, so that we can test the scenario at our end. We are sorry for your inconvenience.

Hi Rakesh,


In addition to Nayyer comments, It is recommend to use latest version of Aspsoe.Pdf for Java. As it contains lot of fixes and enhancements.

Moreover, please note since Apriil 2013 Aspsoe.Pdf for Java and Aspose.Pdf.Kit for Java has been mergred in to single Jar; Aspose.Pdf for Java. Aspose.Pdf.Kit for Java has been moved to com.aspose.pdf.facades package and Aspose.Pdf for Java 3.x.x moved to aspose.pdf package in that merged version. Moreover, Please check following documentation link for migration details and API changes in merged version releases. Hopefully it will help you to upgrade to latest version.

  • Migration from Aspose.Pdf.Kit for Java
  • Autoporting Aspose.Pdf for .NET to Java
  • Structure of Autoported Aspose.Pdf for Java


  • Please feel free to contact us for any further assistance.

    Best Regards,