Hi All, I have a pdf files that contains indvidual photographs inside it on
every page.Every Indvidual has a Unique Serial No againt it. But there are
cases when the indvidual photographs is not available against Unique Serial
No. and hence there is a vaccant space. Iam able to extract all the images
from PDF file using Itextsharp. But it is not able to check for which Serial
No. the Photograph is not there.
Please help me out in case you have some solution for it.
Thanks a Lot
Hi Rajeev,
Thank you very much for considering Aspose.
I’m afraid, I couldn’t understand your requirement completely. Could you please elaborate your requirement with the help of some sample PDF? So, we could look into it in detail and guide you accordingly.
Regards,
Hi,
Hi Rajeev,
I have looked into your requirement and I’m sorry to share with you that it is not feasible to relate the serial no. (which is just some text in the PDF file) to an image; although, the serial nos. and images are formatted visually, they don’t relate to each other in the internal structure of the PDF file.
The only feasibility could be if you add the images with a particular serial no. as its name. Then you may try using GetImageDescriptions method to get all the information of the images including its name. After that, you can save those images with their particular names, which would be the serial nos. in your case.
Please have a look into this sample for more details.
We’re sorry for the inconvenience. If you have any further questions, please do let us know.
Regards,
Hi,
Hi Rajeev,
As I shared earlier, there is no way for the Aspose.Pdf.Kit to identify the places where there is no image along with the serial no. The problem is that these objects (image and serial no.) are not related internally in any way. That’s why it is not feasible for the component to make sure that some blank image or no image is saved for the particular serial no.
There is only one feasibility and that again only if you have control over the source PDF file; if you could add the images using their serial number or add some empty image where there is no actual image added.
We’re sorry for the inconvenience.
Regards,