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!
![]() |
How to get pointer to data in memory |
Post Reply
|
| Author | |
raphaelverdier
Beginner
Joined: 22 Jan 13 Status: Offline Points: 16 |
Post Options
Thanks(0)
Quote Reply
Topic: How to get pointer to data in memoryPosted: 28 Mar 13 at 10:47AM |
|
For our software we need a new component for opening pdf.
We want to know if it possible with quickpdf to open pdf and : If the pdf has only an image get the pointer to data in memory If the pdf is a vector transform it to an image and get the pointer to data in memory How to do this ? thanks for your help We use the latest version of quickpdf |
|
![]() |
|
tfrost
Senior Member
Joined: 06 Sep 10 Location: UK Status: Offline Points: 437 |
Post Options
Thanks(0)
Quote Reply
Posted: 28 Mar 13 at 5:23PM |
|
Much safer to let the library extract the image for you, using one of the DAGetImageDataTo... or SaveImageTo... functions.
|
|
![]() |
|
raphaelverdier
Beginner
Joined: 22 Jan 13 Status: Offline Points: 16 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 Jul 13 at 4:12PM |
|
thanks for your answer, I found the solution by using the function RenderPageToString.
after I convert the String to Hglobal and I can load the image with our SDK. Now I need to get the dpi used in the pdf or image for the function RenderPageToString. I try the function ImageHorizontalResolution but I allways get the value 0 Do you know how to get the dpi resolution ? for example : int filehandle =debenudll->LoadFromFile(strFileName, szPWD); int numPages = debenudll->PageCount(); int numImages = debenudll->FindImages(); for (int i = 1; i <= numPages; i++) { for (int j = 1; j <= numImages; j++) { int idxImage = debenudll->GetImageID(i); int nTest =debenudll->SelectImage(idxImage); int nRes = debenudll->ImageHorizontalResolution(); nRes = debenudll->ImageHeight();//this function works } } |
|
![]() |
|
raphaelverdier
Beginner
Joined: 22 Jan 13 Status: Offline Points: 16 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 Jul 13 at 4:19PM |
the image is a jpeg2000. Is it a problem for getting the resolution ? is it possible with the width and height to convert it and getting the resolution in dpi ? |
|
![]() |
|
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