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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - PNG Files to TIFF getting converted to Blank
  FAQ FAQ  Forum Search   Register Register  Login Login

PNG Files to TIFF getting converted to Blank

 Post Reply Post Reply
Author
Message
rocky1 View Drop Down
Beginner
Beginner


Joined: 22 Jan 20
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote rocky1 Quote  Post ReplyReply Direct Link To This Post Topic: PNG Files to TIFF getting converted to Blank
    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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (1) Thanks(1)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 22 Jan 20 at 11:11AM
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

Back to Top
rocky1 View Drop Down
Beginner
Beginner


Joined: 22 Jan 20
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote rocky1 Quote  Post ReplyReply Direct Link To This Post Posted: 22 Jan 20 at 2:33PM
Oh Thank you Ingo for the update on this
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store