-
Notifications
You must be signed in to change notification settings - Fork 568
Revieve linear gradients and opacity PR #493
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
Revieve linear gradients and opacity PR #493
Conversation
…bad starting angle. This has caused significant performance issues in awt Area constructor sometimes.
…vements by lvostinar's fork.
…rgba-color support in PDF outputdevice.
…or nested opacities.
…with different opacities and z-index values.
…vements by lvostinar's fork.
…rgba-color support in PDF outputdevice.
…with different opacities and z-index values.
…stException for grid layouts.
…vements by lvostinar's fork.
…rgba-color support in PDF outputdevice.
Bumps [junit](https://github.com/junit-team/junit4) from 4.10 to 4.13.1. - [Release notes](https://github.com/junit-team/junit4/releases) - [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.10.md) - [Commits](junit-team/junit4@r4.10...r4.13.1) --- updated-dependencies: - dependency-name: junit:junit dependency-type: direct:development ... Signed-off-by: dependabot[bot] <[email protected]>
Bumps [itextpdf](https://github.com/itext/itextpdf) from 5.3.0 to 5.5.12. - [Release notes](https://github.com/itext/itextpdf/releases) - [Commits](itext/itextpdf@5.3.0...5.5.12) --- updated-dependencies: - dependency-name: com.itextpdf:itextpdf dependency-type: direct:development ... Signed-off-by: dependabot[bot] <[email protected]>
# Conflicts: # flying-saucer-core/pom.xml # flying-saucer-core/src/main/java/org/xhtmlrenderer/css/constants/IdentValue.java # flying-saucer-core/src/main/java/org/xhtmlrenderer/css/constants/Idents.java # flying-saucer-core/src/main/java/org/xhtmlrenderer/css/constants/ValueConstants.java # flying-saucer-core/src/main/java/org/xhtmlrenderer/css/newmatch/CascadedStyle.java # flying-saucer-core/src/main/java/org/xhtmlrenderer/css/newmatch/Selector.java # flying-saucer-core/src/main/java/org/xhtmlrenderer/css/parser/CSSParser.java # flying-saucer-core/src/main/java/org/xhtmlrenderer/css/parser/FSFunction.java # flying-saucer-core/src/main/java/org/xhtmlrenderer/css/parser/FSRGBColor.java # flying-saucer-core/src/main/java/org/xhtmlrenderer/css/parser/property/Conversions.java # flying-saucer-core/src/main/java/org/xhtmlrenderer/css/parser/property/PrimitivePropertyBuilders.java # flying-saucer-core/src/main/java/org/xhtmlrenderer/css/sheet/FontFaceRule.java # flying-saucer-core/src/main/java/org/xhtmlrenderer/css/style/CalculatedStyle.java # flying-saucer-core/src/main/java/org/xhtmlrenderer/extend/OutputDevice.java # flying-saucer-core/src/main/java/org/xhtmlrenderer/layout/BoxBuilder.java # flying-saucer-core/src/main/java/org/xhtmlrenderer/layout/Layer.java # flying-saucer-core/src/main/java/org/xhtmlrenderer/layout/SharedContext.java # flying-saucer-core/src/main/java/org/xhtmlrenderer/render/AbstractOutputDevice.java # flying-saucer-core/src/main/java/org/xhtmlrenderer/render/BorderPainter.java # flying-saucer-core/src/main/java/org/xhtmlrenderer/swing/Java2DOutputDevice.java # flying-saucer-core/src/main/java/org/xhtmlrenderer/util/GeneralUtil.java # flying-saucer-examples/pom.xml # flying-saucer-fop/pom.xml # flying-saucer-log4j/pom.xml # flying-saucer-pdf-itext5/pom.xml # flying-saucer-pdf-itext5/src/main/java/org/xhtmlrenderer/pdf/ITextOutputDevice.java # flying-saucer-pdf-osgi/pom.xml # flying-saucer-pdf/pom.xml # flying-saucer-pdf/src/main/java/org/xhtmlrenderer/pdf/ITextFontResolver.java # flying-saucer-pdf/src/main/java/org/xhtmlrenderer/pdf/ITextOutputDevice.java # flying-saucer-swt-examples/pom.xml # flying-saucer-swt/pom.xml # flying-saucer-swt/src/main/java/org/xhtmlrenderer/swt/SWTOutputDevice.java # pom.xml
@OndrejSpanel Thank you for the contribution. |
I think conflict are already resolved, I will recheck if everything works as intended and then ask for review. |
d8efd19
to
93465d5
Compare
93465d5
to
63f62a6
Compare
I think it should be ready now. If it makes review or merging easier, I could prepare a squashed version. |
Note: my effort concentrates on |
@OndrejSpanel Well... I personally don't care about Graphics2D, I use FlyingSaucer to generate PDFs. Usually I prefer to rebase PR, but in this case this option is not available because of conflicts: So what do you prefer, should we squash all 70 commits into one, or is it better to create a merge commit? |
For me it doesn't really matter. I have also prepared #496 in case it is easier for you (commit authorship lost, but I doubt anyone would care about that). |
Regarding PDF support: while gradients are not implemented in the PDF backend, they should not be difficult to add if anyone is interested. And the opacity should already work, only I did not test it for PDFs. |
@OndrejSpanel Thank you. After looking at the PR, I decided to merge the original PR - let's keep its history. In case of any troubles, it will be easier to investigate and understand why some changes were done. |
@asolntsev did the PDF support for linear gradient get added before this was merged? This package works amazing for my use case, except I need linear gradient support for PDFs as well. I am happy to help out where I can, but I think I will need some direction. |
No, I think PDF support was not implemented. |
Attempt to revive #22
It works fine in my fork, it "just" needs resolving possible conflicts.