I'd like a flow that takes the json file and picks up a svg image, makes it the correct size based on the information in the json file, and saves it out as a pdf. The other issue is the app keeps crashing all of switch not just the flow but the whole thing. I tried illustrator but I get error and then opens it incorrectly.
Thanks,
Bruce
Photoshop app
- magnussandstrom
- Advanced member
- Posts: 510
- Joined: Thu Jul 30, 2020 6:34 pm
- Location: Sweden
- Contact:
Re: Photoshop app
Hi Bruce, I would use Rsvg-convert with Execute command for such a task. No need to use Photoshop or Illustrator.
Easiest way to install Rsvg-convert is using Chocolatey https://community.chocolatey.org/packages/rsvg-convert (or Brew if you are on Mac).
The arguments in Execute command is simple: "%1" -f pdf -o "%2"
After converting the SVG to PDF you can use a Pitstop action for scaling to the wanted size from the JSON.
Easiest way to install Rsvg-convert is using Chocolatey https://community.chocolatey.org/packages/rsvg-convert (or Brew if you are on Mac).
The arguments in Execute command is simple: "%1" -f pdf -o "%2"
After converting the SVG to PDF you can use a Pitstop action for scaling to the wanted size from the JSON.
Re: Photoshop app
I fully agree with Magnus, using a CLI is the way to go.
I use Inkscape to convert SVG to PDF. This is purely informational! Not having compared this tool with rsvg-convert I am not saying that one is better than the other. My main reason for using Inkscape is that it has an installer. I cannot run brew anymore on my computer
(IT-reasons).
I use Inkscape to convert SVG to PDF. This is purely informational! Not having compared this tool with rsvg-convert I am not saying that one is better than the other. My main reason for using Inkscape is that it has an installer. I cannot run brew anymore on my computer

-
- Newbie
- Posts: 19
- Joined: Thu Aug 11, 2022 3:05 pm
Re: Photoshop app
That piece of software is way above my coding abilities. I'm more of a GUI type of guy.
Thanks,
Thanks,
-
- Newbie
- Posts: 19
- Joined: Thu Aug 11, 2022 3:05 pm
Re: Photoshop app
@freddyp
I'm trying Inkscape now but it seems that it opens all my files at the wrong size and then I have to manually adjust to the correct size of the order. Granted I can now do it in like 15 seconds but automation is what I'm looking for.
I'm trying Inkscape now but it seems that it opens all my files at the wrong size and then I have to manually adjust to the correct size of the order. Granted I can now do it in like 15 seconds but automation is what I'm looking for.
Re: Photoshop app
This page gives an overview of all the options for Inkscape: https://inkscape.org/doc/inkscape-man.html.
There is --export-width and --export-height so I am pretty sure it can be done in an automated way, or there is the method that Magnus suggested by using PitStop Server in a second step to correct the converted PDF.
If you are really not comfortable with command line options and the use of "Execute command" check out the Learn section of the website, or see if you can get help from your reseller.
There is --export-width and --export-height so I am pretty sure it can be done in an automated way, or there is the method that Magnus suggested by using PitStop Server in a second step to correct the converted PDF.
If you are really not comfortable with command line options and the use of "Execute command" check out the Learn section of the website, or see if you can get help from your reseller.