Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rendering Code39 or ITF bar code with embedded text exception is thrown #108

Open
MikeGratsas opened this issue Nov 27, 2019 · 0 comments
Open

Comments

@MikeGratsas
Copy link

When Code39 or Interleaved 2 of 5 bar code is rendered using PDFSharp library and TextLocation.AboveEmbedded or TextLocation.BelowEmbedded is selected for this bar code if font size used to draw text is so large that graphics MeasureString method returns height greater than bar code height exception is thrown in ThickThinBarcodeRenderer.RenderBar method
info.Gfx.DrawRectangle(info.Brush, rect);
statement since value of rect.Height is negative.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants