PdfSharpCore icon indicating copy to clipboard operation
PdfSharpCore copied to clipboard

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

Open swabloodreaper opened this issue 5 years ago • 9 comments

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

swabloodreaper avatar Oct 12 '20 12:10 swabloodreaper

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

bhupiister avatar Jun 16 '21 10:06 bhupiister

i have this also when building using aot ill2cpp with unity

friuns2 avatar Aug 20 '21 12:08 friuns2

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

Emanx140 avatar Dec 27 '21 06:12 Emanx140

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

bhupiister avatar Dec 27 '21 07:12 bhupiister

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

Emanx140 avatar Dec 27 '21 09:12 Emanx140

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 avatar Dec 27 '21 13:12 bhupiister

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

bhupiister avatar Dec 27 '21 13:12 bhupiister

@bhupiister Thanks! that link.xml helped me

Emanx140 avatar Dec 28 '21 04:12 Emanx140

@bhupiister Thanks! that link.xml helped me

My pleasure

bhupiister avatar Dec 28 '21 06:12 bhupiister