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

Free Support Forum - aspose.com

Save existing PDF file in specific PDF version

I have a requirement to save the existing PDF file (say in PDF version 1.6) in 1.5. I would like to know is there any way to set the required version using Aspose.PDF and/or Aspose.PDF.Kit APIs



Hello Srayasam,

Thanks for using our products.

Currently Aspose.Pdf for .NET supports the feature to edit/update PDF document information such as Author, CreationDate, Creator, Producer, Title, Subject etc but I am afraid currently it does not support the feature of editing Pdf version information. For the sake of implementation, I have logged it as PDFNEWNET-30081 in our issue tracking system under new features list. Please be patient and spare us little time. We apologize for your inconvenience.

Hello Srayasam,

Thanks for your patience.

am pleased to share that the Feature requested earlier to downgrade or
upgrade the current document version has been implemented. Aspose.Pdf for .NET 7.2.0
supports the capability to upgrade the current version of PDF file or
you may use it to downgrade it to some previous versions. Please try using any value from PdfFormat enumeration present under
Aspose.Pdf namespace to change/update the document version. Please take a
look over the following code snippet to upgrade the PDF file version to


// load the source PDF file with v1.6

Aspose.Pdf.Document pdfDocument = new Document(@"D:\pdftest\Source_v16.pdf");

// show the current document version (optional)


// validate that product version can be upgraded and also specify the version to which you need to upgrade

pdfDocument.Validate(@"D:\pdftest\Conversion_Log.log", PdfFormat.v_1_7);

// save the updated document


I simply can’t get this feature working.

(same result using any 7.2+ version)
The code to reproduce this behavior is as simple as

using Aspose.Pdf ;

//(new License()).SetLicense("…");
var pdfDocument = new Document();
pdfDocument.Pages.Add() ;
// using Aspose.Pdf.PdfFormat.v_1_6 produces the same result
pdfDocument.Validate(@“Conversion.log”, Aspose.Pdf.PdfFormat.v_1_5);
pdfDocument.Convert(@“Conversion.log”, Aspose.Pdf.PdfFormat.v_1_5,

The version of the output document is always v1.7!

We need to pass some files to another application which does not handle Pdf v1.7 files, so we have to save them in an older format.

Hi Riccardo,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for sharing the sample code.

I am able to reproduce your mentioned issue after an initial test. Your issue has been registered in our issue tracking system with issue id: PDFNEWNET-34423. We will inform you via this forum thread regarding any updates.

Sorry for the inconvenience,

The issues you have found earlier (filed as PDFNEWNET-34423) have been fixed in Aspose.Pdf for .NET 7.5.0.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.

Thanks, it works now!

Hi Riccardo,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for the feedback and confirmation regarding the resolution of your reported issue. Please feel free to contact support in case you need any further assistance.

Thank You & Best Regards,

I have recently upgraded to aspose.pdf 8.0.0 and when I try to save the pdf say from 1.5 to 1.4, it is logging the message as the input file is compressed and validate failed.


1. Does incomming PDF non-compressed?

2. Is there a way to detect if the incomming PDF is compressed or not?

Thanks for any info.

Hi there,

Thanks for your inquiry. Can you please share your sample code snippet and source document here? So we will look into the issue at our end and will provide you more information.

Sorry for the inconvenience faced.

Best Regards,