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.
Fri Jan 26, 2018 3:56 pm
Hy,
convert XPS to PDF don't convert image (error load images - ImagesInfo - "Object reference not set to an instance of an object.")
Spire.PDF version 3.10
thanks,
JD
Login to view the files attached to this post.
-
aibizcore
-
- Posts: 12
- Joined: Fri Dec 29, 2017 12:12 pm
Mon Jan 29, 2018 2:43 am
Hello,
Thanks for your feedback. After an initial test, I was unable to reproduce the issue on my side. Please note that you need to first convert the XPS to PDF, then you can capture information from the PDF. Below is my code for testing.
- Code: Select all
//Open pdf document
PdfDocument doc = new PdfDocument();
doc.LoadFromXPS(@"C:\Users\Administrator\Desktop\12739\input_file\input_file.xps");
MemoryStream ms = new MemoryStream();
doc.SaveToStream(ms,FileFormat.PDF);
doc.LoadFromStream(ms);
var images=doc.Pages[0].ExtractImages();
var inf=doc.Pages[0].ImagesInfo;
Best regards,
Simon
E-iceblue support team
-
Simon.yang
-
- Posts: 620
- Joined: Wed Jan 11, 2017 2:03 am
Wed Jan 31, 2018 10:05 am
Hello,
Greeting from E-iceblue.
How is the issue going?
Your feedback will be greatly appreciated.
Best regards,
Simon
E-iceblue support team
-
Simon.yang
-
- Posts: 620
- Joined: Wed Jan 11, 2017 2:03 am
Wed Mar 07, 2018 2:31 pm
View attached file generate with the submitted code.
version: 4.2.4, 4.3.0
thanks,
JD
Login to view the files attached to this post.
-
aibizcore
-
- Posts: 12
- Joined: Fri Dec 29, 2017 12:12 pm
Thu Mar 08, 2018 2:26 am
Hello JD,
Thanks for your feedback. I have noticed the issue and logged it into our bug tracking system.Once it's fixed, we will let you know. We apologize for the inconvenience.
Best regards,
Simon
E-iceblue support team
-
Simon.yang
-
- Posts: 620
- Joined: Wed Jan 11, 2017 2:03 am
Thu Jan 24, 2019 3:07 am
Hello,
Thanks for your patient waiting.
Glad to inform you that the reported issue has been resolved, welcome to download the hotfix from the following link.
Spire.PDF Pack(Hot Fix) Version:5.1.16Sincerely,
Nina
E-iceblue support team
-
Nina.Tang
-
- Posts: 1187
- Joined: Tue Sep 27, 2016 1:06 am
Tue Jan 29, 2019 7:59 am
Hi,
Greetings from E-iceblue.
Did we fix your issue? Could you please give us some feedback about your issue at your convenience?Thanks in advance.
Sincerely,
Nina
E-iceblue support team
-
Nina.Tang
-
- Posts: 1187
- Joined: Tue Sep 27, 2016 1:06 am