Free Support Forum - aspose.com

Default PDF versions

can be the same 1.7 with Aspose.Pdf.Generator namespace?

how about other pdf saving methors, such as aspose.words.document save method into PDF stream files (and other aspose documents, excel, powerpoint etc)?

Hi Valerio,


Thanks for your inquiry. Aspose.Pdf.Document namespace by default generates PDF file with 1.7 version and Aspose.Pdf.Generator namespace generates PDF file with 1.4 version. However if you want to generate 1.7 version from Aspose.Pdf.Genertor then you should pass Aspose.Pdf.Generator.Pdf object to Aspose.Pdf.Document object and change its version as per your requirement.

Aspose.Pdf.Generator.Pdf
pdf = new Pdf();<o:p></o:p>

pdf.Sections.Add();

pdf.Sections[0].Paragraphs.Add(new Aspose.Pdf.Generator.Text("sample text"));

//pdf.Save("c:/pdftest/GeneratorOutput.pdf");

Document doc = new Document(pdf);

doc.Convert(myDir + "log.xml", PdfFormat.v_1_7, ConvertErrorAction.Delete);

FileStream fs = new FileStream(myDir + "PDF_1.7.pdf", FileMode.Create, FileAccess.Write);

doc.Save(fs);

fs.Close();

Moreover, default version of PDF generated by other Aspose APIs is as following. You can save PDF file to stream object using all APIs as every API has a Save() method with stream parameter.


  • Aspose.Cells generates PDF file in version: 1.4 (Acrobat 5.x).
  • Aspose.Words saves the PDF with version 1.5.
  • Aspose.Slides saves presentation to PDF version 1.5.

Please feel free to contact us for any further assistance.

Best Regards,

and how about Aspose.imaging pdf conversion?

there is some technical limitations cause all of your APIs can’t create 1.7 version of PDF?
Could They all be the same 1.7 ?

Thank you for your work.

Hi Valerio,

Although other Aspose APIs do not generate 1.7 version of PDF but you do not need to worry about that as Aspose.Pdf supports this feature. You can convert your documents to PDF and then use the code shared by Tilal to convert output PDFs to PDF 1.7 using Aspose.Pdf.

Best Regards,

Yes, but this is time consuming way (two step for one conversion, two streams to deal with, almost double time for conversion)
Why all API’s save() method could not generate latest version of PDF ?

Hi Valerio,

We have logged this issue for other APIs and will update you as soon as this feature is available in other APIs. Issue IDs for Aspose.Cells, Aspose.Words and Aspose.Slides are CELLSNET-43181, WORDSNET-11083 and SLIDESNET-35917 respectively. In the meantime, you can continue using Aspose.Pdf for this purpose.

Sorry for the inconvenience.

Best Regards,

any news about CELLSNET-43181, WORDSNET-11083 and SLIDESNET-35917?

Hi Valerio,

These issues have low priority because a solution is available and you can use Aspose.Pdf for this purpose. Also, there is a lot of difference between 1.5 and 1.7 versions of the PDF and a lot of features need to be implemented for this purpose so it will take considerable time.

Sorry for the inconvenience.

Best Regards,

The issues you have found earlier (filed as WORDSNET-11083) have been fixed in this Aspose.Words for .NET 19.12 update and this Aspose.Words for Java 19.12 update.