Print Page | Close Window

Blank JPGs

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=471
Printed Date: 10 May 24 at 3:38PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Blank JPGs
Posted By: chilluk
Subject: Blank JPGs
Date Posted: 20 Jul 06 at 9:37AM

I'm trying to create JPG thumbnails from my PDFs for use on a website.

When I use the RenderDocumentToFile method I get about a 50% ratio of blank JPGs - a valid file, but it's completely blank. I did read about RenderToStream but that's only valid in Delphi. I need to get this working in VBA if possible please.

Cheers




Replies:
Posted By: Adrian.W.H
Date Posted: 29 Aug 06 at 11:23AM

using SEDTech.iSED;

public partial class Test : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        SEDTech.iSED.QuickPDF iQPDF = new QuickPDF();
        iQPDF.UnlockKey("key");//Please enter your key!
        string PgcFilePath = @Request.PhysicalApplicationPath + "iSEDQuickPDF 5.11 Reference Guide.pdf";
        int result = iQPDF.LoadFromFile(PgcFilePath);
        int pages = iQPDF.PageCount();
        if (result == 1)
        {
            if (iQPDF.Encrypted() == 0)
            {
                iQPDF.RenderDocumentToFile(72, 1, pages, 1, @Request.PhysicalApplicationPath + "Images\\Image" + pages + ".jpg");
            }
            else
            {
                iQPDF.Unencrypt();
                iQPDF.RenderDocumentToFile(72, 1, pages, 1, @Request.PhysicalApplicationPath + "Images\\Image" + pages + ".jpg");
            }
        }
    }
}



Posted By: Adrian.W.H
Date Posted: 29 Aug 06 at 11:29AM

Your PDFs is encrypted, please unencrypt.




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