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

Free Support Forum - aspose.com

Target a specific PDF version

We are using Aspose.PDF to convert a document created by
Aspose.Words to PDF. The generated PDF is PDF version 1.4. Is there
any way we can target PDF version 1.5? Here is the code we are using
to generate:

private static void SaveAsPdf(Document doc, string fileName)


//Save the document in Aspose.Pdf.Xml format into a memory stream.

MemoryStream stream = new MemoryStream();

doc.Save(stream, SaveFormat.AsposePdf);

//Seek to the beginning so it can be read by XmlDocument.

stream.Seek(0, SeekOrigin.Begin);

//Load the document into an XmlDocument

XmlDocument xmlDoc = new XmlDocument();


//Load the XML document into Aspose.Pdf

Aspose.Pdf.Pdf pdf = new Aspose.Pdf.Pdf();

//Make sure the images that were saved by Aspose.Words into Windows temporary

//folder are automatically deleted by Aspose.Pdf when they are no longer needed.

pdf.IsImagesInXmlDeleteNeeded = true;

pdf.BindXML(xmlDoc, null);

//*** Aspose.Pdf font cache, see comments below.

//pdf.IsTruetypeFontMapCached = false;

//If you convert to PDF multiple files in your application,

//uncomment the following lines to improve the speed of conversion.

pdf.IsTruetypeFontMapCached = true;

pdf.TruetypeFontMapPath = Path.GetTempPath();//<some path where you have read/write access>

//Now produce the PDF file.

pdf.Security = new Aspose.Pdf.Security();

pdf.Security.IsCopyingAllowed = false;




Thank you for considering Aspose.

Sorry we don't support targeting PDF version 1.5. But as you know PDF 1.4 is compatible with high versoin of Adobe Reader so I don't think it is necessary to create PDF version 1.5.

Hi Tommy

Unfortunately our document imaging system requires PDF 1.5. Is there any possible work around for this or plans to support PDF 1.5? If not, can we convert the PDF to a tiff or another image type using Aspose?



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

Thanks for considering Aspose.

As Tommy have mentioned earlier, currently we don’t have support for pdf 1.5 and I am afraid we cannot support it in short time.

As a work around, according to your requirement, you can convert the Pdf file into standard image formats and also to TIFF format. We have a component named Aspose.Pdf.Kit that can serve this purpose. Please visit Convert the PDF Document to Specified Images for related information.

In case of any further query, please feel free to share.