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!
GeoPdf layer image |
Post Reply |
Author | |
vinod_pathak
Beginner Joined: 14 May 11 Location: india Status: Offline Points: 7 |
Post Options
Thanks(0)
Posted: 14 May 11 at 9:18AM |
hi,
i m using QUICKPDF Library. but i don't know, how to extract image from the geopdf. image present in the form of layer. plz help me. Thanks & Regards vinod pathak |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi Vinod!
Please use the search-functionality (above on the right side). Try the advanced option and the searchstring GeoPDF on all forums without time restrictions... Then you'll get what you need ;-) Cheers and welcome here, Ingo Edited by Ingo - 14 May 11 at 10:57AM |
|
vinod_pathak
Beginner Joined: 14 May 11 Location: india Status: Offline Points: 7 |
Post Options
Thanks(0)
|
Hi Ingo
Thanks for your kind response, but i fetch the layers name but how can i get image from these layers. code: int lay = pdf.OptionalContentGroupCount(); int lay1=0; string lay2 = ""; for (int i = 1; i <= lay; i++) { lay1 = pdf.GetOptionalContentGroupID(i); lay2 = pdf.GetOptionalContentGroupName(lay1); } |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi!
Here's a sample how to get images and more out of a pdf: http://www.quickpdf.org/forum/extract-text-and-images-and-insert-into-new-pdf_topic1308.html If you need it relevant for special layers you should try ... but i don't think that this is supported by QP. Cheers, Ingo |
|
vinod_pathak
Beginner Joined: 14 May 11 Location: india Status: Offline Points: 7 |
Post Options
Thanks(0)
|
Hi
Thanks for your support. May be this PDF Created in PHOTOSHOP. when i open this file in Acrobat. 10 layers are shown in the layers view and image attached as a layer. Thanks & Regards vinod pathak |
|
vinod_pathak
Beginner Joined: 14 May 11 Location: india Status: Offline Points: 7 |
Post Options
Thanks(0)
|
Hi Ingo
link of pdf is : www.terragotech.com/system/files/geopdf/webmap_urbansample.pdf plz check this pdf Thanks vinod pathak |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi Vinod!
This here is only a user-user-forum ... If you know that the image is on the last layer you can check the layercount using the result to remove the last layer... with the included image. Cheers, Ingo |
|
vinod_pathak
Beginner Joined: 14 May 11 Location: india Status: Offline Points: 7 |
Post Options
Thanks(0)
|
Hi! Ingo
Thanks for your support. you are doing good task for every one. In this pdf, image add as a layer. QUICKPDF Library not able to extract image from the layer so i will try another tool to extract image from layers in c#. vinod |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
so you should remove the last layer WITH the image ;-)
|
|
vinod_pathak
Beginner Joined: 14 May 11 Location: india Status: Offline Points: 7 |
Post Options
Thanks(0)
|
how can i remove last layer that is the image layer.
|
|
Rowan
Moderator Group Joined: 10 Jan 09 Status: Offline Points: 398 |
Post Options
Thanks(0)
|
Vinod, there might be some confusion here between layers and optional content groups. Read this article:
In short: Acrobat uses the term layers, but we use the term optional content groups -- in QPL terminology layers refers to content streams. The image that you are referring to is part of an optional content group. Despite the order that it is listed in the Acrobat Layers panel, this does not indicate that internally this image is stored in the last optional content group -- that is just a visual representation, but not an accurate representation of the order in which the OCGs are stored. I will post more info shortly. Just running out of battery on my laptop.
|
|
Rowan
Moderator Group Joined: 10 Jan 09 Status: Offline Points: 398 |
Post Options
Thanks(0)
|
More info:
It is possible to delete optional content groups, but this will *not* delete the content that was associated with optional content group. Deleting text, image, etc, objects from PDF files is a messy business and so allowing users to delete all content associated with an OCG would result in broken PDF files. What you will need to do is identify the particular image that you want to remove and then use the ClearImage function to basically delete that image. The image object is not actually deleted though, to prevent the corruption of existing links to the image it will not be deleted from the document. The image will be converted into a 24-bit RGB format consisting of a single transparent pixel. I hope this helps.
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
"...
The image will be converted into a 24-bit RGB format consisting of a single transparent pixel ..." Tricky and good solution! I've learned something, too ;-) Thanks! 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