Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

Placement of sprites wrong with "newpage" for vector formats

0 votes
Hi!

I encountered the following problem:

The placement of sprites is wrong when a sequence chart contains a "newpage" for vector output formats (svg, pdf, eps). On the first page the sprites are placed outside of the diagram.

Only for png output it seems to work.

Here an example:

@startuml
sprite $TimerExpired [17x21/4z] Os101qnWmCmCfXWP6HcOqG1M0OH-C0T91Cg4Yw0pq9MY6uR2XuWmu1D0rm9t9HeVoHae8cX-8yxx-0K0
sprite $TimerStarted [17x21/4z] Os101qnWmCmCfXWP6HcOqG0H0WpeV5GHY4NeV8G8mZ7eV8W80pu1B4P02IG-aWWw0rqfXc6aXmS0
sprite $TimerStopped [17x21/4z] Os101qnWmCmCfXWP6HcOqG1M0OH-C0T91Cg4Yw0pq9MY6uR2XuWmu1D0rq9jzn0N7YW00000
hide footbox
title test of plant uml
participant ALICE
participant BOB

scale 3.0

   ......
   <- ALICE : <$TimerStarted> <b>Set</b> TEST_TIMER_1
   ALICE ->> BOB : <b>TEST_MESSAGE_1
   BOB ->> ALICE : <b>TEST_MESSAGE_2
   <- ALICE : <$TimerStopped> <b>Reset</b> TEST_TIMER_1
   ALICE ->> BOB : <b>TEST_MESSAGE_1
   BOB ->> ALICE : <b>TEST_MESSAGE_2
   ALICE ->> BOB : <b>TEST_MESSAGE_1
   ......
   <- ALICE : <$TimerStarted> <b>Set</b> TEST_TIMER_1
   ALICE ->> BOB : <b>TEST_MESSAGE_1
   BOB ->> ALICE : <b>TEST_MESSAGE_2
   <- ALICE : <$TimerStopped> <b>Reset</b> TEST_TIMER_1
   ALICE ->> BOB : <b>TEST_MESSAGE_1
   BOB ->> ALICE : <b>TEST_MESSAGE_2
   ALICE ->> BOB : <b>TEST_MESSAGE_1
   ......
   newpage Test of PlantUML, Part 2

   ......
   <- ALICE : <$TimerStarted> <b>Set</b> TEST_TIMER_1
   ALICE ->> BOB : <b>TEST_MESSAGE_1
   BOB ->> ALICE : <b>TEST_MESSAGE_2
   <- ALICE : <$TimerStopped> <b>Reset</b> TEST_TIMER_1
   ALICE ->> BOB : <b>TEST_MESSAGE_1
   BOB ->> ALICE : <b>TEST_MESSAGE_2
   ALICE ->> BOB : <b>TEST_MESSAGE_1
   ......
   <- ALICE : <$TimerStarted> <b>Set</b> TEST_TIMER_1
   ALICE ->> BOB : <b>TEST_MESSAGE_1
   BOB ->> ALICE : <b>TEST_MESSAGE_2
   <- ALICE : <$TimerStopped> <b>Reset</b> TEST_TIMER_1
   ALICE ->> BOB : <b>TEST_MESSAGE_1
   BOB ->> ALICE : <b>TEST_MESSAGE_2
   ALICE ->> BOB : <b>TEST_MESSAGE_1
   ......
 @enduml
asked Mar 9, 2015 in bug by stephan_sy (240 points)

1 Answer

0 votes
Thanks for the report!

This should be fixed in the following beta : https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

Tell us if it does not work for you.
answered Mar 9, 2015 by plantuml (122,830 points)
Wow, thanks for this quick hotfix.

It works for my sprites. However, I found that the same problem exists for the "circle arrows" like "->>o", "o->" etc.

BR
Stephan
Ok, here is a new fix:
https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

Many thanks for your tests!
Hi!

Looks fine. Thanks again.
BR
Stephan
Support This Project Offer 250 Mo! Follow PlantUML on Twitter
...