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 Mar 22, 2022 5:01 pm

When trying to remove a bookmark by its title, an exception occurs:


var doc = new PdfDocument();
doc.LoadFromBytes(File.ReadAllBytes("bookmarks.pdf"));
var parent = doc.Bookmarks[0];
Console.WriteLine($"Parent - {parent.Title}");
var child = parent[2];
Console.WriteLine($"Child - {child.Title}");
parent.Remove(child.Title);

hunterb46
 
Posts: 13
Joined: Tue Mar 15, 2022 7:16 pm

Wed Mar 23, 2022 2:26 am

Hello,

Thank you for your inquiry.
I simulated a PDF file and did an initial test with the code you provided, but didn't find the exception issue you mentioned. To help us investigate your issue quickly and efficiently, please provide the following information. You could attach them here or send them to us via email (support@e-iceblue.com). Thanks in advance.
1) Your input PDF file.
2) Your test environment, such as OS info (E.g. Windows 7, 64-bit) and region setting (E.g. China, Chinese).
3) Your application type, such as Console app (. Net Framework 4.5).

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1647
Joined: Wed Apr 07, 2021 2:50 am

Wed Mar 23, 2022 11:49 am

Here is the a sample pdf, and this is happening on a windows 10 64bit on .net framework 4.8

hunterb46
 
Posts: 13
Joined: Tue Mar 15, 2022 7:16 pm

Thu Mar 24, 2022 2:05 am

Hello,

Thank you for your inquiry.
I tested your PDF file and did reproduce the issue you mentioned. I have logged the issue into our bug tracking system with the ticket number SPIREPDF-5011. Our development team will investigate and fix it. Once it is resolved, I will inform you in time. Sorry for the inconvenience caused.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1647
Joined: Wed Apr 07, 2021 2:50 am

Sat May 07, 2022 9:59 am

Hi Andrea,

Thanks for your patience!
Glad to inform you that we just released Spire.PDF Pack(Hot Fix) Version:8.5.0 which fixes the issue of SPIREPDF-5011.
Please download the new version from the following links to test.

Website link: https://www.e-iceblue.com/Download/download-pdf-for-net-now.html
Nuget link: https://www.nuget.org/packages/Spire.PDF/8.5.0

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1647
Joined: Wed Apr 07, 2021 2:50 am

Return to Spire.PDF

cron