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!
DAGetImageDataAsString Not Found |
Post Reply |
Author | |
imsudheer
Beginner Joined: 27 Apr 18 Status: Offline Points: 9 |
Post Options
Thanks(0)
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? |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
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 |
|
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