Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
PNG Files to TIFF getting converted to Blank |
Post Reply |
Author | |
rocky1
Beginner Joined: 22 Jan 20 Status: Offline Points: 11 |
Post Options
Thanks(0)
Posted: 22 Jan 20 at 8:29AM |
Hi ,
I am currently using the DebenuPDFLibraryDLL1011 in my C# application using VS 2017 with .net framework - 4.6.1 I am trying to convert the .png files to tiff using the Method = "RenderDocumentToFile" and " byte[] bytesPageBitmap = PL.RenderPageToString(renderDPI, intPageIndex, 0);" but desired output file results into the blank image when I try to saveas a ".tif image format" Code - PDFLibrary PL = new PDFLibrary(strDLLPath); if (PL.LibraryLoaded()) { PL.UnlockKey(PdfTask.DebenuPDFLibraryUnlockKey); var strFileName = @"D:\png files\1.png"; PL.LoadFromFile(strFileName, string.Empty); const float renderDPI = 180; int intPageCount = PL.PageCount(); for (int intPageIndex = 1; intPageIndex <= intPageCount; intPageIndex++) { // PDF to bitmap int i = PL.RenderDocumentToFile(renderDPI, intPageIndex, 0, 7, @"D:\my.tiff"); } }
Edited by rocky1 - 22 Jan 20 at 8:30AM |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(1)
|
Hi Rocky, please keep in mind that it's a pdf-library you're working with ;-) You can render a pdf-page to an image format or you can render an image to a pdf-page... But you can't render one image type to another image type with this library. If you want this with QuickPDF you have to make two steps: png to pdf ... and then pdf to tiff. Cheers and welcome here, Ingo |
|
Cheers,
Ingo |
|
rocky1
Beginner Joined: 22 Jan 20 Status: Offline Points: 11 |
Post Options
Thanks(0)
|
Oh Thank you Ingo for the update on this
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store