Splitting PDF based on bookmarks - Cannot access the PdfBookmarkBase class

Hi Team

Yesterday I signed up for trial access to the Essential PDF API. I am trying to create a c# console application to split a pdf document based on bookmarks. The basis of my code is the code sample supplied on the Syncfusion website.

My issue is that I cannot access the PdfBookmarkBase class, that is to say, the program is not recognising it.

I have tried creating the app targeting .net core 5.0 app and 4.8 framework. Same issue. 

I have consulted the documentation and believe I have added the necessary Nuget package (syncfusion.pdf.winforms) and assembly references to the project.

I have added the following using statements to my code:

using Syncfusion.Pdf;

using Syncfusion.Pdf.Parsing;

using Syncfusion.Pdf.Graphics;

using Syncfusion.Pdf.Grid;

Any advice/assistance with this issue will be gratefully received. Thankyou.


Gerard 


1 Reply

GK Gowthamraj Kumar Syncfusion Team July 12, 2021 11:10 AM UTC

Hi Gerard, 
 
Thank you for contacting Syncfusion support. 
 
Yes. We can split the PDF document based on each bookmarks by using Syncfusion PDF library. We have created a simple Net 5.0 sample for split the PDF document based on each bookmarks. The PdfBookmarkBase collection represents the bookmarks in a PDF document. We have attached the runnable sample for your reference, kindly please try the sample on your end and let us know the result. 
 
 
Please refer to this below link for more information,  
 
Regards, 
Gowthamraj K 


Loader.
Up arrow icon