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 - RenderPageToString, generates a empty image page
  FAQ FAQ  Forum Search   Register Register  Login Login

RenderPageToString, generates a empty image page

 Post Reply Post Reply
Author
Message
cmedina View Drop Down
Beginner
Beginner
Avatar

Joined: 11 Apr 12
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote cmedina Quote  Post ReplyReply Direct Link To This Post Topic: RenderPageToString, generates a empty image page
    Posted: 11 Apr 12 at 7:37PM

Hi, I need help with this problem.
When I generate an image of a page using RenderPageToString, only with some specific PDF files which were generated by scan or fax a printed document, the result image is a blank jpg with the page’s dimensions. The content of all these files is a scanned image set as page’s Background. Think the RenderPageToString method ignores the content of the background. Let me know if there is a way to configure the render to not ignore the background.

This is mi wrapper implementation:

public byte[] RenderPageToString(int DPI, int Page, int Options)

{

  if (this.dll == null)

  {

    return new byte[0];

  }

  IntPtr source = this.dll.QuickPDFRenderPageToString(this.instanceID, DPI, Page, Options);

  int length = this.dll.QuickPDFStringResultLength(this.instanceID);

  byte[] destination = new byte[length];

  Marshal.Copy(source, destination, 0, length);

  return destination;

}


I am using
C# in Visual Studio 2010
.Net Framework 4
QuickPDFDLL0718.dll

Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Posted: 13 Apr 12 at 12:10PM
You should try upgrading the to 7.26 version as it includes lots of bug fixes and enhancements.  It is a free upgrade for all 7.xx users and can be downloaded from

http://www.quickpdflibrary.com/downloads/binaries/qp/oldversions/0726/quick_pdf_library726.exe

If this doesn't work then you would need to send the PDF files to the official QPL support.  There are many PDF files that are malformed and contain syntax errors.  These PDF's do not follow the official PDF specification.

It is most likely these PDF files are molformed.  It is possible we may be able to add a workaround to QPL to get it to load the files correctly.  

Andrew.
Back to Top
cmedina View Drop Down
Beginner
Beginner
Avatar

Joined: 11 Apr 12
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote cmedina Quote  Post ReplyReply Direct Link To This Post Posted: 13 Apr 12 at 4:17PM
Thank you, I updated to 7.26 and worked perfectly
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