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 - DAGetImageDataAsString Not Found
  FAQ FAQ  Forum Search   Register Register  Login Login

DAGetImageDataAsString Not Found

 Post Reply Post Reply
Author
Message Reverse Sort Order
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Topic: DAGetImageDataAsString Not Found
    Posted: 10 May 18 at 12:56PM
have a look into these two samples:
http://www.debenu.com/kb/extract-images-from-pdf-files-as-the-appropriate-image-type/
http://www.debenu.com/kb/get-embedded-image-coordinates-from-pdf-files/
here you can read about the relevant functions:
http://www.debenu.com/docs/pdf_library_reference/ImageHandling.php
here you'll find all what a developer needs:
http://www.quickpdf.org/

Cheers,
Ingo

Back to Top
imsudheer View Drop Down
Beginner
Beginner
Avatar

Joined: 27 Apr 18
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote imsudheer Quote  Post ReplyReply Direct Link To This Post Posted: 10 May 18 at 12:35PM
I am trying to get the Image data which inside a PDF.


int DocumentID = pdfLibrary.DAOpenFile(fileName, "");
                    //pdfLibrary.SelectDocument(DocumentID);

                    var pageCount = pdfLibrary.DAGetPageCount(DocumentID);
                    //int images = pdfLibrary.FindImages();

                    //string numberOfImages = Convert.ToString(images);
                    string filename = "";

                    // Iterate through each page
                    for (int i = 1; i <= pageCount; i++)
                    {
                        // Select current page
                        pdfLibrary.SelectPage(i);

                        //var extractedText = pdfLibrary.GetPageText(0);
                        //Console.WriteLine("Extracted Text " + extractedText);

                        var pageRef = pdfLibrary.DAFindPage(DocumentID, i);

                        // Get list of images on the page
                        il = pdfLibrary.DAGetPageImageList(DocumentID, pageRef);

                        // Count number of images in the list
                        int ic = pdfLibrary.DAGetImageListCount(DocumentID,il);
                        for (int k = 1; k <= ic; k++)
                        {
                            // Iterate through each image and get the
                            // image type and image ID
                            int it = pdfLibrary.GetImageListItemIntProperty(il, k, 400);
                            int gid = pdfLibrary.GetImageListItemIntProperty(il, k, 405);
                            var imageIndex = pdfLibrary.GetImageID(k);

                            var data = pdfLibrary.DAGetImageDataAsString(DocumentID, ic, k);


My need is to get the Image resolution and Image bytes and the Image formats. But DAGetImageDataAsString is missing. Am I missing any thing?

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