Print Page | Close Window

Pdf To Tiff

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1780
Printed Date: 11 May 25 at 5:22PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Pdf To Tiff
Posted By: LouisB
Subject: Pdf To Tiff
Date Posted: 22 Mar 11 at 6:29PM
I am looking for sample code
To Load a PDf and save it in Tiff format.
I am using VB.net



Replies:
Posted By: Ingo
Date Posted: 22 Mar 11 at 7:33PM
Hi Louis!

You should be able to understand my Delphi-code
to transform it into vb...
BTW: On the official support pages are starting-
samples for vb, too...

To your tif-question:
QuickPDF doing the tif-output the same way like the other
image-output - so no option for multipage-tiffs from QP.

Here's the link to the online-reference regarding rendering:
http://www.quickpdflibrary.com/help/quickpdf/RenderingAndPrinting.php

Here's a sample from me how to render pdf-page(s) into an
image-file:
     QP := TQuickPDF0721.Create;
     try
        QP.Unlock(...);
        succ := QP.LoadFromFile(FName);
        If ( QP.EncryptionStatus > 0 ) Then
 
           QP.Decrypt; 
//      Is there a user-password?
        If ( QP.SecurityInfo(1) = 3 ) Then
           begin
              ShowMessage('There is a user-password. Stop here!');
              QP.Free;
              exit;
           end;           
        QP.CombineLayers;
        succ := QP.RenderDocumentToFile(dpi, page, page, opt, imagefile);
//      0 The page could not be rendered
//      1 The page was rendered correctly and the image file was saved to disk
//      2 The file could not be written to disk

     finally
        QP.Free;
     end;

Cheers and welcome here,
Ingo
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk