ststeiger / PdfSharpCore

Port of the PdfSharp library to .NET Core - largely removed GDI+ (only missing GetFontData - which can be replaced with freetype2)
Other
1.08k stars 237 forks source link

Release mode: System.NotImplementedException: Cannot create value for key: /Info #120

Open swabloodreaper opened 4 years ago

swabloodreaper commented 4 years ago

the package is working fine in debug mode but in the release, it is throwing this error I also tried to manually add the key but still no luck

below is the stacktrace

t PdfSharpCore.Pdf.PdfDictionary+DictionaryElements.GetValue (System.String key, PdfSharpCore.Pdf.VCF options) [0x000d2] in <5a662627b59a4bed98e918bfab79be46>:0 \n at PdfSharpCore.Pdf.Advanced.PdfTrailer.get_Info () [0x00006] in <5a662627b59a4bed98e918bfab79be46>:0 \n at PdfSharpCore.Pdf.PdfDocument.get_Info () [0x00008] in <5a662627b59a4bed98e918bfab79be46>:0 \n at PdfSharpCore.Pdf.PdfDocument..ctor () [0x00047] in <5a662627b59a4bed98e918bfab79be46>:0 \n at FieldSeeker.View.Tools.ReviewTodaysWork.btnDownloadReport_Clicked (System.Object sender, System.EventArgs e) [0x000f7] in :0

bhupiister commented 3 years ago

@swabloodreaper Any luck running it? I am getting the same error.

friuns2 commented 3 years ago

i have this also when building using aot ill2cpp with unity

Emanx140 commented 2 years ago

Any updates/workarounds? I almost certain that is Unity's problem with ill2cpp

bhupiister commented 2 years ago

if your end goal is to create pdf. I had success with it on Unity. Let me know if you need help on this.

Emanx140 commented 2 years ago

@bhupiister Yes! I would like to know, please.

bhupiister commented 2 years ago

PDFSharp.rar.pdf This is a zip file with pdf extension or else Github doesn't allow to attach zip files. Remove .pdf from the end, make a folder inside the plugin folder and extract all files there. The important file is the link.xml which will make sure that all files of this library are compiled at run time and are not stripped.

bhupiister commented 2 years ago

@Emanx140 I hope this solves your issue. Make sure files are inside plugin folder as shown below Assets\Plugins\PDFSharp

Emanx140 commented 2 years ago

@bhupiister Thanks! that link.xml helped me

bhupiister commented 2 years ago

@bhupiister Thanks! that link.xml helped me

My pleasure