Hi Bohdan,
Thank you for contacting Syncfusion support,
The “Unexpected token Unknown before 118”may throw due to the document is corrupted. We have a option to load the corrupted pdf document using isOpenAndRepair property, So we suggest you to use the below code snippet to load the document.
PdfLoadedDocument loadeddocument= new PdfLoadedDocument(Filestream,true);
|
Please find the online documentation link below.
Online documentation link:
Please try our suggestion, if you still facing any issue kindly provide the input document. We will analyze and provide the solution earlier.
Please let us know if you have any further assistance.
Regards,
Sasi kumar S.