Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Tue Sep 01, 2015 8:25 am

Hello

How can I iterate the images in a PdfDocument or on a PdfPageBase?
My goal is to replace the existing images, so far I found page.ExtractImages(), which leaves me without any information where the image was in the pdf etc.

Thanks for your help
Manuel

manuel.haegeli
 
Posts: 2
Joined: Mon Aug 31, 2015 7:33 am

Tue Sep 01, 2015 8:39 am

Hello,

Thanks for your inquiry.
So sorry that our product doesn't support this feature at this stage.

Best Regards,
Sweety
E-iceblue support team
User avatar

sweety1
 
Posts: 539
Joined: Wed Mar 11, 2015 1:14 am

Tue Sep 01, 2015 10:42 am

Is it planned to implement the following two?
1. PdfImageInfo[] imageInfos = page.ImagesInfo;
2. page.ReplaceImage(imageInfo.Index, PdfImage.FromImage(image));

Both functions don't do a lot. ImageInfos with, height, x and y Fields are not filled. ReplaceImage seems to do nothing since any index can be passed to the method without causing an exception.

Another interessting function would be DeleteImage(index).

manuel.haegeli
 
Posts: 2
Joined: Mon Aug 31, 2015 7:33 am

Wed Sep 02, 2015 7:23 am

Hello,

Thanks for your reply.
I have transferred the requirement you mentioned to our Dev team, and they think it might be achieved, but it needs some time as its complexity. Once there is any update, we will let you know.

Best Regards,
Sweety
E-iceblue support team
User avatar

sweety1
 
Posts: 539
Joined: Wed Mar 11, 2015 1:14 am

Fri Sep 18, 2015 4:01 am

Hello,

Sorry to keep you waiting.
The new version of Spire.Pdf ( Spire.PDF Pack(Hot Fix) Version:3.5.51 ) solved your issue "Replace Images in Pdf" has been released. Please download it via link below and have a try.
http://www.e-iceblue.com/Download/download-pdf-for-net-now.html

Best Regards,
Sweety
E-iceblue support team
User avatar

sweety1
 
Posts: 539
Joined: Wed Mar 11, 2015 1:14 am

Thu Oct 08, 2015 7:20 am

Hello,

Glad to inform you that now our product can delete the image via the index of image in pdf. You can download the latest hotfix(Spire.PDF Pack(Hot Fix) Version:3.5.80) and try the following method.
Code: Select all
PdfPageBase page=PdfDocument.Pages[0];
page.DeleteImage(int imageIndex);

Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Return to Spire.PDF