Free Support Forum -

PDF save not working for scanned PDF files

Dear ASPOSE support,

I am trying to create a stamping application using ASPOSE PDF utility. This works fine for all except for scanned pdf files. The code I am using is as follows

Aspose.Pdf.License license = new Aspose.Pdf.License();


// The pdf passed into the constructor is a pdf stream

Pdf pdf1 = new Pdf(pdf); pdf1.Save(@"D:\htdocs\devdmsswn01d\ws\tgs\StampIRPdfWebApi\outTest1.pdf"); pdf1.Close();

I am attaching the pdfs which are not working. Could you please help me spve this issue?.



Hi Sandeep,

Thanks for using our products.

Please note that Pdf class present under Aspose.Pdf.Generator namespace supports the feature to create PDF document from scratch and I am afraid, it does not support the feature to manipulate/load existing PDF document. In case you need to perform stamping on existing PDF files, please try using the code snippet shared over Working with Stamps and Watermarks

In case I have not properly understood your requirement or you have any further query, please feel free to contact.