Search found 303 matches

by JimmyHartington
Thu May 16, 2024 9:55 pm
Forum: PitStop Pro
Topic: Adding multi-line text to PDF with VariableSets
Replies: 11
Views: 3229

Re: Adding multi-line text to PDF with VariableSets

I just use tools at my disposal :D I have looked into Puppeteer. Have made a Scrip Element which uses it from a NPM-package. Am still testing if I like it better than using an installed version of Chrome. As I understand then Puppeteer is using Chromium for this. There is some difference in font han...
by JimmyHartington
Thu May 16, 2024 1:07 pm
Forum: PitStop Pro
Topic: Adding multi-line text to PDF with VariableSets
Replies: 11
Views: 3229

Re: Adding multi-line text to PDF with VariableSets

I use Google Chrome to convert HTML to PDF. With the Execute Command with these settings: https://d.pr/i/Ek08uw+ And my "Convert HTML to pdf with Chrome.cmd" file contains this code: "C:\Program Files\Google\Chrome\Application\chrome.exe" --headless --disable-gpu --no-pdf-header-...
by JimmyHartington
Thu May 16, 2024 7:34 am
Forum: PitStop Pro
Topic: Adding multi-line text to PDF with VariableSets
Replies: 11
Views: 3229

Re: Adding multi-line text to PDF with VariableSets

Because I'd like to use this feature to generate PDFs. What kind of pdf do you need to create? As earlier stated I have had success with writing HTML with Switch variables and then converting this HTML to PDF and place in other artwork with Pitstop. Or more recently I have use this app https://www....
by JimmyHartington
Thu May 02, 2024 2:41 pm
Forum: Imposition
Topic: imposition
Replies: 7
Views: 517

Re: imposition

It should be possible with just Pitstop Pro and variables.

But it takes some setting up.

I think for your case Quite Imposing Plus (https://www.quite.com/imposing/) will be a good option, if you do not have the need to automate right now.
by JimmyHartington
Wed May 01, 2024 8:43 am
Forum: Imposition
Topic: imposition
Replies: 7
Views: 517

Re: imposition

I have had success with imposing in Pitstop. Using Pitstop Variables and Switch. In my case I get a pdf and a JSON-file. In the JSON-file is defined finished size of artwork, space between each element horizontally and vertically, how many elements to place horizontally. Vertically I place as many t...
by JimmyHartington
Fri Apr 26, 2024 12:12 pm
Forum: Flows
Topic: JSON - list of files [SOLVED]
Replies: 14
Views: 1026

Re: JSON - list of files [SOLVED]

magnussandstrom wrote: Wed Apr 24, 2024 1:20 pm XSLT is very powerful IMHO. I use it for alot of different stuff in my Switch flows. I couldn't live without it! :)

I just tested with one of my flows and got it to work.
Like you with a xslt created with the help of ChatGPT.
by JimmyHartington
Thu Apr 25, 2024 9:32 am
Forum: Flows
Topic: Hyperlink on a PDF
Replies: 1
Views: 510

Re: Hyperlink on a PDF

I use the cpdf https://www.coherentpdf.com command-line (is free, but needs license to be used commercially) for some tasks. It seem from the manual that you can set annotations in a pdf from a JSON-file. So I think you could make a pdf manually in Acrobat with a link. Extract the information about ...
by JimmyHartington
Wed Apr 24, 2024 9:32 am
Forum: Flows
Topic: EMFILE: too many open files ..main.js
Replies: 26
Views: 7375

Re: EMFILE: too many open files ..main.js

I just got the ECONNRESET error for five flows, where no files was being processed. This was on the XML Pickup app. But Switch was processing files in another flow, which uses a script I have developed. The script reads a file and sets Private Data. So I do not create any temp files or anything. But...
by JimmyHartington
Wed Apr 24, 2024 8:08 am
Forum: Flows
Topic: JSON - list of files [SOLVED]
Replies: 14
Views: 1026

Re: JSON - list of files [SOLVED]

This helps in understanding how.

I have not worked with XLSTs in Switch before. It seems a bit daunting to write XLST, but maybe with the help of AI and testing it could work.

Some of my flows could surely be optimized in some cases by using XLSTs instead of some of my workarounds.
by JimmyHartington
Tue Apr 23, 2024 7:32 pm
Forum: Switch
Topic: Acrobat Freezing with print command
Replies: 3
Views: 1082

Re: Acrobat Freezing with print command

I have just had to move my Switch to a new system. And ran into the problem with Acrobat just hang. My solution was to open a pdf-file manually in Acrobat and complete the startup of Acrobat. There was a tutorial with 5 steps. I suspect Switch uses scripting to open a pdf in Acrobat and do the comma...
by JimmyHartington
Tue Apr 23, 2024 3:36 pm
Forum: Flows
Topic: JSON - list of files [SOLVED]
Replies: 14
Views: 1026

Re: JSON - list of files [SOLVED]

Ok.

And how do you process the XML with the XLST using Saxon?
by JimmyHartington
Tue Apr 23, 2024 1:17 pm
Forum: Flows
Topic: JSON - list of files [SOLVED]
Replies: 14
Views: 1026

Re: JSON - list of files [SOLVED]

As always there are many ways to achieve the same result :D

Would you mind sharing how you split the XML with Saxon?
by JimmyHartington
Tue Apr 23, 2024 11:26 am
Forum: Flows
Topic: JSON - list of files [SOLVED]
Replies: 14
Views: 1026

Re: JSON - list of files

And here is the info when one of the output files has been processed with the JSON Pickup.

Image
by JimmyHartington
Tue Apr 23, 2024 10:40 am
Forum: Flows
Topic: JSON - list of files [SOLVED]
Replies: 14
Views: 1026

Re: JSON - list of files

And here is a .cmd script for Windows. The one argument for the script should be the input json-file. @echo off for /f %%i in ('C:\ProgramData\chocolatey\lib\jq\tools\jq.exe -c ".ls[]" %1') do ( for /f "delims=" %%f in ('echo %%i ^| C:\ProgramData\chocolatey\lib\jq\tools\jq.exe -...
by JimmyHartington
Tue Apr 23, 2024 10:35 am
Forum: Flows
Topic: JSON - list of files [SOLVED]
Replies: 14
Views: 1026

Re: JSON - list of files

I do not know which platform you are on. But using the jq command line tool it is possible to manipulate JSON. I use chocolatey on Windows and Homebrew on macOS to install it. With the help of ChatGPT I was able to create this bash script which works on macOS. jq -c '.ls[]' $1 | while read i; do nam...