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

Update to latest official #4

Merged
merged 57 commits into from
Sep 6, 2019
Merged

Conversation

DSW-PS
Copy link
Owner

@DSW-PS DSW-PS commented Sep 6, 2019

No description provided.

danfickle and others added 30 commits March 13, 2019 22:05
Control of PDPage creation via Page supplier.
I'm the worst offender with tabs but they are evil!
Currently broken image links are causing a NPE.
Upgrade Jsoup dependency for last release of this sub-module. Users should use W3CDom class from Jsoup instead.
If we advertise it, we should test it!
…k fonts are used.

With tests. Thanks for reporting @daliuss!
This work moves sizing of replaced objects form externally in each replaced object implementation to internally in the core code. This should reduce duplication and mean all sizing properties are available on each replaced object type.

For example, now images have min-width and min-height as well as a border-box implementation.

This work is published initially in a new branch because while there are good tests for images we need to test the new sizing code for all the other replaced object options such as SVG, PDF, custom, etc.
Including min-width/min-height and border-box sizing. With test.
We can now use unit values such as mm in the width/height attribute of SVG images. With tests.
… default.

Added new constructor so user can allow scripts and resource requests if using trusted SVGs only.

With tests.

Needs documenting in Wiki upon release.
Now, always keep the correct aspect ratio.
The MathML renderer (JEuclid) produces slightly different results on JDK8 vs JDK11 so is not suitable for auto testing.
danfickle and others added 27 commits June 28, 2019 22:29
Upgrade PDFBox to 2.0.16 and PDFBox-Graphics2d to 0.24
Only one broken test - svg linked with img tag.
…mg tag.

This is mostly a revert of d9cdd6a

I forgot about external SVGs rather than inline SVGs where the width/height attribute are converted to CSS earlier in the render process.
Nearly there, the only reason I havent committed the test is that it is a couple of pixels off on width, which is noticeable when there is a border.
Turns out the problem was prematurely casting our width and height to ints and thus getting incorrect scale factors. Test now passing.
I thought I had broken the clear mechanism, but it was fine. Left test as a useful regression test.
Hopefully this will also trigger travis.
Replaced element improved sizing support
Time to get rid of some of our 1000+ warnings.
+ Test with simple text only (passing).
+ Test with nested elements (failing).
+ Test with nested floats (failing).
Was broken when intrinsic width or height were greater than max-width or max-height.

Thanks again @rototor.

Public domain images provided by pexabay at www.pexels.com

Co-Authored-By: Emmeran Seehuber <rototor@rototor.de>
@DSW-PS DSW-PS merged commit e0bb3a8 into DSW-PS:open-dev-v1 Sep 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants