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 - Blank JPGs
  FAQ FAQ  Forum Search   Register Register  Login Login

Blank JPGs

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


Joined: 20 Jul 06
Location: United Kingdom
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote chilluk Quote  Post ReplyReply Direct Link To This Post Topic: Blank JPGs
    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

Back to Top
Adrian.W.H View Drop Down
Beginner
Beginner


Joined: 25 Aug 06
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Adrian.W.H Quote  Post ReplyReply Direct Link To This Post 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");
            }
        }
    }
}



Edited by Adrian.W.H
Back to Top
Adrian.W.H View Drop Down
Beginner
Beginner


Joined: 25 Aug 06
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Adrian.W.H Quote  Post ReplyReply Direct Link To This Post Posted: 29 Aug 06 at 11:29AM

Your PDFs is encrypted, please unencrypt.

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