Skip to content

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

Description

@MikeGratsas

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions