Welcome to the Syncfusion Console App forums

Hello,

Welcome to the Syncfusion Console App forums.

Post all issues related to the
Console App project and feedback in this forum.

Regards, 
Syncfusion .Net Team

4 Replies

GB Gerard Billington July 9, 2021 09:45 PM UTC

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.

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


Gerard 



GK Gowthamraj Kumar Syncfusion Team July 12, 2021 11:11 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 



GB Gerard Billington July 15, 2021 02:04 AM UTC

Hi  Gowthamraj

Thank you for your response to my post. 

I appreciate you taking the time to review my post and providing me with a runnable sample.

I would, however, still like to know why my program - which as mentioned in my post - is based on the pdf bookmark extract code sample as found on the Syncfusion website - does not recognise the pdfbookmarkbase class. Could I be missing a using directive? If so, what?

Many thanks.


Kind regards

Gerard 



GK Gowthamraj Kumar Syncfusion Team July 15, 2021 10:56 AM UTC

Hi Gerard, 
 
Thank you for your update.  
 
We suspect that reported issue occurs due to package mismatch or conflicts in your application, so that the not recognising error occurs. To avoid conflict error, please ensure your application whether it contain package Syncfusion.Pdf.Winforms with same version of dependencies assemblies.

Note: Ensure the list of necessary package with provided sample to resolve the issue.
 
 
Regards, 
Gowthamraj K 
 


Loader.
Up arrow icon