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 - How to get pointer to data in memory
  FAQ FAQ  Forum Search   Register Register  Login Login

How to get pointer to data in memory

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

Joined: 22 Jan 13
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote raphaelverdier Quote  Post ReplyReply Direct Link To This Post Topic: How to get pointer to data in memory
    Posted: 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
Back to Top
tfrost View Drop Down
Senior Member
Senior Member


Joined: 06 Sep 10
Location: UK
Status: Offline
Points: 437
Post Options Post Options   Thanks (0) Thanks(0)   Quote tfrost Quote  Post ReplyReply Direct Link To This Post 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.




Back to Top
raphaelverdier View Drop Down
Beginner
Beginner
Avatar

Joined: 22 Jan 13
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote raphaelverdier Quote  Post ReplyReply Direct Link To This Post 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

                        }
                  }
Back to Top
raphaelverdier View Drop Down
Beginner
Beginner
Avatar

Joined: 22 Jan 13
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote raphaelverdier Quote  Post ReplyReply Direct Link To This Post Posted: 01 Jul 13 at 4:19PM
Originally posted by raphaelverdier raphaelverdier wrote:

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

                        }
                  }


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 ?

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