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!
upgrade to 8 problem with renderpagetostring |
Post Reply |
Author | |
wjbons
Beginner Joined: 17 Jun 10 Status: Offline Points: 17 |
Post Options
Thanks(0)
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) 'png The 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.
|
|
wjbons
Beginner Joined: 17 Jun 10 Status: Offline Points: 17 |
Post Options
Thanks(0)
|
When I change it to ansi, it works? Is this now a bug, of do i have to check something??? 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 |
|
AndrewC
Moderator Group Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
|
You are correct. We found this problem and corrected it in the 8.12 beta.
|
|
wjbons
Beginner Joined: 17 Jun 10 Status: Offline Points: 17 |
Post Options
Thanks(0)
|
thanks.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store