-
Notifications
You must be signed in to change notification settings - Fork 363
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
Border not printed with "overflow: hidden" #297
Comments
Also noticed now, that I can see very very thin border when displaying the PDF inside the browser, but not at all with gnome's evince. |
Hi @maresja1, Thanks for the concise example and expected images. I could replicate your behavior (very thin border in Mac Preview, none in Acrobat), but only when I used the fast mode renderer, which is not ready for production use yet. The output was equivalent to RC16 image when using this builder code: public static void main(String... args) throws Exception {
try (OutputStream os = new FileOutputStream("/Users/me/Documents/pdf-issues/output/issue-297.pdf")) {
PdfRendererBuilder builder = new PdfRendererBuilder();
builder.withUri("file:///Users/me/Documents/pdf-issues/issue-297.htm");
builder.toStream(os);
builder.testMode(true);
//builder.useFastMode(); // Could only replicate by uncommenting this line!
builder.run();
}
} I can confirm this is still an issue in head in the fast mode renderer and will add a test now. If by any chance you are not using the fast mode, could you post your builder code so I can replicate? |
…order. Border is not visible in output PDF.
It appears the problem only appears with floated elements with overflow hidden and a border. I never would have found that so thanks for reporting. |
In RC-17 there is a problem with rendering span with overflow: hidden and border. For following HTML:
I get this on RC-17:
And this on RC-16:
See attached PDF files.
border-overflow-RC16.pdf
border-overflow-RC17.pdf
The text was updated successfully, but these errors were encountered: