cancel
Showing results for 
Search instead for 
Did you mean: 

PB.Net 12.5.2/12.6 Assembly PDFSharp error saving as PDF

Former Member
0 Kudos

I have a PB.net assembly that is saving a datawindow (via a datastore) as a PDF that includes a QRCode barcode font (IDAutomation) and is getting a PDFSharp error "Ascender should be less than 0" between the file being generated and saved to the saved location.   If you click the Ignore button the PDF is saved and when opened is rendered just fine and includes the QRCode barcode.  The barcode font is installed on the machine as well as any components needed for the font.  This only happens if the font of the column returned in the datawindow is using the barcode font.  So, if it's Arial it's fine.


The PB assembly is used in a WPF application.

Has anyone else seen this kind of message before?  Is there anything that can be done to suppress it or give it what it needs?

This message will only appear the first time that the Ignore button is selected while WPF app is running and is fine otherwise.

Any help would be awesome

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

This seems to be an issue with 2D barcode fonts.   

I downloaded this trial version of a QR Code font from QR Code Barcode Fonts (http://www.barcoderesource.com/qrcodebarcode.shtml)

If you could create a simple PB .Net Assembly that has a datawindow with a barcode font on it and a datastore that does a SaveAs PDF! from a nonvisual and consume that in a simple WPF app I would hope you'd see what I am seeing in my previous post.   You can follow the example they provide to get a barcode to produce

So it doesn't work for IDAutomation fonts or this font from Barcode Resource.

Hope this might help a guru out there in helping to solve my issue