Hi,
I am using GroupDocs.Conversion to convert files to PDF.
Is it possible to have the page count of resulting Pdf?
Thanks.
Thank you for giving a try to the new GroupDocs.Conversion API.
// Document Save options in Version 3.1.0SaveOptions saveOptions = new PdfSaveOptions{PageNumber = 1, // Convert from page numberNumPagesToConvert = 10, // Number of pages to convertDpi = 300, // Page images qualityWidth = 1024, // Page widthHeight = 768 // Page height};// Returns the converted spreadsheet Pdf as IO Stream.var convertedDocumentStream = conversionHandler.Convert("Sample.pdf", saveOptions);
Please find below some useful resources for GroupDocs.Conversion API (3.x.x).
- GroupDocs.Conversion Downloads: https://downloads.groupdocs.com/conversion/java
- GroupDocs.Conversion Docs: https://docs.groupdocs.com/display/conversionnet/Developer+Guide
- GroupDocs.Conversion Examples: https://github.com/groupdocsConversion/GroupDocs_Conversion_NET
- GroupDocs.Conversion Videos: https://www.youtube.com/channel/UCNHpIBspxU4tXrOmpsYUXKQ
If you will need any help or you will have any other questions please feel free to ask.
Warm Regards,
Muhammad,
Thanks for answer. But the problem is that I don’t know the page count of Pdf in advance. I leave NumPagesToConvert and conversion works fine. But I want to get page count after document gets converted into Pdf.
Hello ,
Thank you for the sharing detailed information ,
we are sorry to inform you that this feature is currently not available in our Library but as you need it and its a promising feature so we have informed our Product Team about this feature and we hope this feature will be available in upcoming release soon.
If you will need any help or you will have any other questions please feel free to ask.
Warm Regards,