Scribus Forums

Scribus => Layout Issues => Topic started by: prkos on February 06, 2021, 11:44:09 pm

Title: Paste vector frame format–position many frames quickly
Post by: prkos on February 06, 2021, 11:44:09 pm
I imported a vector SVG drawing into one page and adjusted size and position (it exactly fills the content area, within margins).

Now I want to import several more different vectors into other pages. The position and size of those frames should be the same save the left/right position difference.

What is the quickest way to do that?

Currently I import the vector, click on a page to make it appear, adjust the position and size manually in Properties window. Snapping to grid helps a bit but it's still super tedious.
Title: Re: Paste vector frame format–position many frames quickly
Post by: utnik on February 07, 2021, 12:14:42 am
hi prkos

i would set guides to snap on…

utnik
Title: Re: Paste vector frame format–position many frames quickly
Post by: prkos on February 08, 2021, 01:52:48 am
Thank you!

I also found the Scribus Generator extension https://berteh.github.io/ScribusGenerator/ and it's wonderful but it rasterizes my SVGs on import and the quality is poor. I wish Scribus allowed for linking to vector files instead of importing them as scribus objects so they can be edited. I don't need to edit them in Scribus, I need to export into nice vector PDF.

 
Title: Re: Paste vector frame format–position many frames quickly
Post by: dragonfly on February 08, 2021, 12:23:15 pm
I have been experimenting with dynamic scripting of SVG properties (and indeed SLA which is also XML) and posted my research in the ScribusGenerator issues closed.

https://github.com/berteh/ScribusGenerator/issues/167#issuecomment-765346318

You might pick up some tips from old.carto.net articles listed above.

Be warned, it is a hacking process involving adding custom mime.types, but it does work.
It is useful to have in your bag of tricks if you are frequently editing SVG files to import.


[Later edit] I add this related discussion.

https://github.com/berteh/ScribusGenerator/issues/164#issuecomment-761875170

In particular this idea from berteh:

Quote
If you need to script the export SVG>PNG (or other) you may be interested in another script of mine: https://github.com/berteh/svg-objects-export