Giter Club home page Giter Club logo

Comments (4)

ThomasHoevel avatar ThomasHoevel commented on August 16, 2024 1

Thanks for the feedback. Fixed it and fix will be included with PDFsharp 6.0.0-preview-2.

from pdfsharp.

ThomasHoevel avatar ThomasHoevel commented on August 16, 2024

The image will be rendered when you use the GDI build.

Which build are you using?

from pdfsharp.

brandengunn avatar brandengunn commented on August 16, 2024

I was using PDFsharp-GDI/6.0.0-preview-1.

As a further test, I added these lines to the HelloWorld-gdi,PDFsharp app and reproduced the issue (once getting past other compile issues from missing font files.):

            // Draw DataMatrixCode
            var codeSize = XUnit.FromMillimeter(10);
            var code = new CodeDataMatrix("0123456789", 12, new XSize(codeSize, codeSize));
            gfx.DrawMatrixCode(code, XBrushes.Black, new XPoint(width / 2 - codeSize / 2, height / 2 - 80));

image

I then modified MatrixCode.cs as follows and was able to produce the Hello World pdf:

        internal XImage? MatrixImage
        {
            get => _matrixImage;
            set => _matrixImage = value;
        }

        XImage? _matrixImage = null!;

image

from pdfsharp.

brandengunn avatar brandengunn commented on August 16, 2024

Sorry, I learned about the issue submission template after writing the above, so here is the MCVE zip that reproduces it in the PdfSharp IssueSubmission-gdi project:

Issue.zip

from pdfsharp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.