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 - upgrade to 8 problem with renderpagetostring
  FAQ FAQ  Forum Search   Register Register  Login Login

upgrade to 8 problem with renderpagetostring

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


Joined: 17 Jun 10
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote wjbons Quote  Post ReplyReply Direct Link To This Post Topic: upgrade to 8 problem with renderpagetostring
    Posted: 04 Oct 11 at 10:46AM
Hi,
I am upgrading from 7.21 to 8.11 and encounter a problem with creating images.
(I use a new license key).
 

I am using the LoadFromFile to load an existing pdf document.

The document is loaded and contains 192 pages.
Next I want to create an image from page 1 by using:

Dim Output() As Byte = PDF.RenderPageToString(96, 1, 5) 'pngThe output is empty.

The underlying function QuickPDFStringResultLength returns a size of 0???

Dim data As IntPtr = dll.QuickPDFRenderPageToString(instanceID, DPI, Page, Options)Dim size As Integer = dll.QuickPDFStringResultLength(instanceID)

Am I doing something wrong with this new version? Version 7.21 worked fine.
 
Local develop Situation:
Visual Studio 2010
Windows 7  64 bit.
Back to Top
wjbons View Drop Down
Beginner
Beginner


Joined: 17 Jun 10
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote wjbons Quote  Post ReplyReply Direct Link To This Post Posted: 04 Oct 11 at 12:11PM
When I change it to ansi, it works?
Is this now a bug, of do i have to check something???
 
    Public Function RenderPageToString(ByVal DPI As Integer, ByVal Page As Integer, _
        ByVal Options As Integer) As Byte()
      If (dll Is Nothing) Then
        Return New Byte(-1) {}
      Else
        Dim data As IntPtr = dll.QuickPDFRenderPageToString(instanceID, DPI, Page, Options)
        Dim size As Integer = dll.QuickPDFAnsiStringResultLength(instanceID)
        Dim result As Byte() = New Byte(size - 1) {}
        Marshal.Copy(data, result, 0, size)
        Return result
      End If
    End Function
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: 05 Oct 11 at 8:16AM
You are correct.  We found this problem and corrected it in the 8.12 beta. 

Back to Top
wjbons View Drop Down
Beginner
Beginner


Joined: 17 Jun 10
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote wjbons Quote  Post ReplyReply Direct Link To This Post Posted: 12 Oct 11 at 9:11AM
thanks.
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