![]() Aspose.Pdf converts the Pdf document to Xps format. Image.Save(Desktop + + index.ToString("000") + ".png", ImageFormat.Png) save the created screenshot temporerlay as a png + number (count) Var image = doc.SaveAsImage(index, .Bitmap, dpiX, dpiY) With the int pagecount we can create as many screenshots as there are pages in the document ![]() String Desktop = Environment.GetFolderPath() savde the created screenshot temporerlay as a png + number + index.ToString("000") + + index.ToString("000") + ".png") Var image = document.Render(index,8448,11955, true) With the int pagecount we can create as may screenshots as there are pages in the documentįor (int index = 0 index < pagecount index++) ![]() This int is used to get the page count for each document Render Method which needs a int page(index) float dpiX, float dpiY, bool forPrintingīut some how it has no effect on the image saved ? using (var document = (file)) ![]() The possibilities that I have are to use the. The dimensions that I get if I export the pdf to a png with help of the Adobe Acrobat tool are:Īs you may see I provide you the method that I use to read the pdf an create per page a image. I want to get the same image quality as if I would use the export pdf to png from Adobe Acrobat.īut somehow this does not work for me. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |