logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Post a reply
From:
Message:

Maximum number of characters in each post is: 32767
Bold Italic Underline   Highlight Quote Choose Language for Syntax Highlighting Insert Image Insert an existing Attachment or upload a new File... Create Link   Unordered List Ordered List   Left Justify Center Justify Right Justify   Outdent Indent   More BBCode Tags
Font Color Font Size
Security Image:
Enter The Letters From The Security Image:
  Preview Post Cancel

Last 10 Posts (In reverse order)
Paul Rayman Posted: Monday, November 2, 2020 11:36:33 PM(UTC)
 
No exceptions are thrown with the code you provided.
Please contact support and provide a more specific code to reproduce the problem.
https://pdfium.patagames.com/Support/
lugangxyz Posted: Thursday, October 29, 2020 4:42:15 PM(UTC)
 
GFCCGong Lian Bai Pi Shu 9-15(2)(2)(2).pdf (780kb) downloaded 63 time(s).

Hi, this is the file I have problem with


Code:
	void deleteBookmark(PdfBookmarkCollections bookmarks, PdfBookmark toBeDeleted)
		{
			if (bookmarks == null || bookmarks.Count < 1 || toBeDeleted == null)
			{
				return;
			}

			if (bookmarks.Contains(toBeDeleted))
			{
				int idx = bookmarks.IndexOf(toBeDeleted);
				bookmarks.ToList().Remove(toBeDeleted);
				try
				{
					bookmarks.DeleteAt(idx);
				}catch (Exception ex)
				{
					MessageUtil.Alter("删除书签失败:" + ex.Message);
				}

			}

			foreach (PdfBookmark b in bookmarks)
			{
				deleteBookmark(b.Childs, toBeDeleted);
			}
		}
lugangxyz Posted: Thursday, October 29, 2020 6:26:13 AM(UTC)
 
Originally Posted by: Paul Rayman Go to Quoted Post
What kind of exception is thrown?


keyword is no in the dictionary
Paul Rayman Posted: Thursday, October 29, 2020 5:10:15 AM(UTC)
 
What kind of exception is thrown?
Guest Posted: Thursday, October 29, 2020 2:48:44 AM(UTC)
 
Hi there
First of all thanks very much for your great help

I need to delete a selected bookmark item from pdf file
But seems I can not do it through PdfBookmarkCollections
When I call DeleteAt the system raise a exception

Let me know if there are any ways that I can use to delete a specified bookmark itme

Thanks in advance