Giter VIP home page Giter VIP logo

Comments (1)

rototor avatar rototor commented on June 4, 2024

No idea why, but I got no notification for this issue ...

There are two bugs. The focial point is wrong but also the transparency mask is off, see #37. I was able to fix the focial point, but regarding the transparency issue I have to find some free time to deeper investigate this, as this stuff is rather tricky...

In PDF you don't have transparent colors, i.e. something like rgba(255,0,0,0.5) for some halve transparent red is not possible in PDF. You have to created some mask (i.e. a bitmap or a form (PDF command stream) with drawing instructions) which represents the alpha channel you want. And then you perform your paint/draw operation but set the transparency mask in the PDF extended graphics state before drawing. For solid colors you can set a special transparency value in the extended graphics state. But this is not possible for gradients. There you have to create a mask which resembles that alpha. And something is wrong with the matrix transforms of the mask. If you like to investigate that deeper you are welcome. But I can not estimate at the moment when I will time for that.

from pdfbox-graphics2d.

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.