Search found 257 matches

by JimmyHartington
Mon Feb 19, 2024 2:50 pm
Forum: Flows
Topic: Adding Page Dimensions at the end of a file name
Replies: 5
Views: 115

Re: Adding Page Dimensions at the end of a file name

I will just add that my action list uses the built in variable in Pitstop to get the size of the Trim Box.
So not a Switch variable.

Image
by JimmyHartington
Mon Feb 19, 2024 2:23 pm
Forum: Flows
Topic: Adding Page Dimensions at the end of a file name
Replies: 5
Views: 115

Re: Adding Page Dimensions at the end of a file name

In the Pitstop configurator you can also set it to create a report (which you do not need to use), and then you can change the unit. https://d.pr/i/8W0aLT+ A feature request for the configurator could be the ability to set the unit, without needing to create the report. But maybe there are some tech...
by JimmyHartington
Thu Feb 15, 2024 11:28 am
Forum: Flows
Topic: Inject XML to pdf
Replies: 11
Views: 184

Re: Inject XML to pdf

You could look at the app "Inject Wildcard" https://www.enfocus.com/en/appstore/pro ... t-wildcard
It has traffic lights out, so you should be able to send failed matches out through one connection.
by JimmyHartington
Wed Feb 14, 2024 2:16 pm
Forum: Flows
Topic: PDF to EPUB
Replies: 4
Views: 101

Re: PDF to EPUB

I run it on a M2 MacBook Pro and it just worked.
But it only worked for me if the pdf-filename does not contain any spaces.
by JimmyHartington
Wed Feb 14, 2024 1:47 pm
Forum: Flows
Topic: PDF to EPUB
Replies: 4
Views: 101

Re: PDF to EPUB

I have now tried with this file: https://d.pr/f/UPeWId And it has made this fixed lay-out epub: https://d.pr/f/3Foyul I needed to install docker https://docs.docker.com/desktop/install/mac-install/ And then ran this command in the terminal docker run -ti --rm -v `pwd`:/temp dodeeric/pdf2epubex pdf2e...
by JimmyHartington
Wed Feb 14, 2024 1:07 pm
Forum: Flows
Topic: PDF to EPUB
Replies: 4
Views: 101

Re: PDF to EPUB

In my search I found this, which claims to create fixed layout epubs.
But on macOS you need to run it through Docker.
https://github.com/dodeeric/pdf2epubEX? ... me-ov-file

I have some time available if you would like me to test with a file?
by JimmyHartington
Mon Feb 12, 2024 11:05 am
Forum: Node.js scripting
Topic: Warning in messages of Switch
Replies: 3
Views: 496

Re: Warning in messages of Switch

Thanks for your suggestions in regards to the code. I do not take it as criticism. I have no formal education in coding, so this is a case of finding a way to convert HTML to PDF and combining the example from the documentation with code from some of my other scripts. I will try to implement your su...
by JimmyHartington
Fri Feb 09, 2024 1:20 pm
Forum: Node.js scripting
Topic: Warning in messages of Switch
Replies: 3
Views: 496

Warning in messages of Switch

I have begun to make more and more scripts with Node.JS. And often I get this error in the messages of Switch. The script execution has ended while an async function or callback in the script might not have finished yet. Please check the script code for unresolved promises or missing await statement...
by JimmyHartington
Fri Feb 09, 2024 12:06 pm
Forum: PitStop Pro
Topic: Select 6mm Dots and add key line
Replies: 4
Views: 88

Re: Select 6mm Dots and add key line

If you can select the dots, I would set the art box to the bounds of the selection.
Extend the artbox +4 mm on each side.
Add a rectangle based on the art box.

Optionally delete the art box afterwards.
by JimmyHartington
Mon Jan 29, 2024 11:24 am
Forum: PitStop Pro
Topic: 2 columns into one
Replies: 2
Views: 476

Re: 2 columns into one

As Freddy mentions I think this not possible directly in Pitstop Pro. But you could use Pitstop to strip the elements you do not need. Save the pdf as text or RTF from Acrobat. After that you will have to lay-out the document again. And do a lot of cleanup. I made a test on one page. Acrobat is clev...
by JimmyHartington
Fri Jan 26, 2024 12:51 pm
Forum: Action Lists
Topic: Page numbering dynamic
Replies: 2
Views: 380

Re: Page numbering dynamic

If you instead use the "Add object" action you can define text and use variables to set page number and page count.

Code: Select all

%Page Number%/%Page Count%
Image
by JimmyHartington
Fri Jan 26, 2024 12:19 pm
Forum: Flows
Topic: Condition - If XML contains ABC?
Replies: 5
Views: 732

Re: Condition - If XML contains ABC?

Thanks, Freddy.

What I have done is using the JSON Pickup with these settings.
Image

And on a folder I set private data:

Code: Select all

ProductCount=[Metadata.Integer:Dataset="OrderDataXML",Model="XML",Path="count(/JSON/Linjer/Produkt/Buchs_Nr)"]
by JimmyHartington
Fri Jan 26, 2024 10:40 am
Forum: Flows
Topic: Condition - If XML contains ABC?
Replies: 5
Views: 732

Re: Condition - If XML contains ABC?

Sorry to intrude on this solution. But could it be used to count how many times a key is found in JSON? I have an order file which consists of different orderlines. Some is for production. Others are just for invoicing. So I would like a count of every time "Buchs_Nr" is pressent. So in th...
by JimmyHartington
Thu Jan 18, 2024 9:26 am
Forum: Node.js scripting
Topic: Script Expression and set action list
Replies: 2
Views: 1272

Re: Script Expression and set action list

Thanks Freddy.

I thought that also could be a work around.
Some of my other expressions uses private data, so I know that works.
by JimmyHartington
Thu Jan 18, 2024 8:49 am
Forum: Node.js scripting
Topic: Script Expression and set action list
Replies: 2
Views: 1272

Script Expression and set action list

I am trying to convert some legacy script expressions to node.JS script exprissions. Old code var colorRotate = job.getVariableAsString( "[Stats.Colorants]" ); var basePath = "\\\\FILE01-MB\\Fælles\\Grafiske Brugere\\Pitstop Action Lists\\Kunderelaterede\\0-9\\2care4_75152900\\Packagi...