Kozea / WeasyPrint

The awesome document factory
https://weasyprint.org
BSD 3-Clause "New" or "Revised" License
7.11k stars 678 forks source link

Duplicate Sequence Diagram Board Lines #2181

Closed lixueyi83 closed 3 months ago

lixueyi83 commented 3 months ago

Here is the original plantuml source code:

```plantuml
@startuml
loop ["forever loop"]
A -> B: Request
alt #lightblue [yes]
B -> C : Request
C -> B : Reponse:yes
else #pink [no]
B -> C : Request
C -> B : Reponse:no
end
end
@enduml


### This is the generated PDF file,

[a.pdf](https://github.com/user-attachments/files/15813098/a.pdf)

By the way, I have no problem with other plantuml diagrams, such as flowchart and state diagrams. This issue is only seen with the sequence diagram. Thanks. 
lixueyi83 commented 3 months ago

a.pdf

liZe commented 3 months ago

Hi!

I suppose that it’s the same problem as https://github.com/Kozea/CairoSVG/issues/266: the duplicated lines are supposed to be shadows, that are not supported in WeasyPrint because they are not supported by PDF (other than with raster images).

Could you try to use skinparam shadowing false and see if it fixes the problem?

lixueyi83 commented 3 months ago

Thanks very much, that fixed the problem instantly! Have a great day! 🍻