Re: Rendering issue with type 2 shading: vertical expansion

2025-07-04 Thread Tilman Hausherr
Hi, It is related to having "W f" instead of "W n" (it works the expected way when having "W n"). I think we're not fully correct when handling the "n" operator, that one does the handling of the clipping path which (maybe) should have been done earlier when handling the "W" operator. (Usuall

RE: Rendering issue with type 2 shading: vertical expansion

2025-07-04 Thread Esteban R
Thanks for your answer. I confirm: if I replace "W f" by "W n" in the original document then the rendering is OK. Anyway, for me it is strange that the expansion is only in the vertical axis (and not in the horizontal axis). I can create a bug report if you want. For my use case I can solve the

Re: Rendering issue with type 2 shading: vertical expansion

2025-07-04 Thread Tilman Hausherr
On 7/4/2025 4:37 PM, Esteban R wrote: I can create a bug report if you want. Yes please do Tilman - To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org For additional commands, e-mail: users-h...@pdfbox.apache.org

Rendering issue with type 2 shading: vertical expansion

2025-07-04 Thread Esteban R
Hello. For the following pdf (which is a simplification of a real life example) the shading is expanded vertically all the page. Other viewers show a rectangle. https://drive.google.com/file/d/1bocFsJbOFAlRijKnBUfSBdQ_GVX3oSUQ/view?usp=drive_link Is it an issue from pdfbox or maybe it is a probl

Re: Rendering issue with type 2 shading: vertical expansion

2025-07-04 Thread Tilman Hausherr
On 7/4/2025 4:37 PM, Esteban R wrote: Anyway, for me it is strange that the expansion is only in the vertical axis (and not in the horizontal axis). I'm too lazy to investigate why it goes wrong the way it does, I'm satisfied that it works properly with a small code segment move 😂 Tilman

Re: Rendering issue with type 2 shading: vertical expansion

2025-07-04 Thread Mark de Does
for me it is strange that the expansion is only in the vertical axis (and not in the horizontal axis). A PDF axial gradient defines a band with gradually changing colors across the band. If your shading does not extrapolate outside its band, nothing is drawn at either side of the band. The ban