Search found 300 matches

by JimmyHartington
Thu Feb 15, 2024 11:28 am
Forum: Flows
Topic: Inject XML to pdf
Replies: 14
Views: 1331

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: 948

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: 948

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: 948

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: 4
Views: 5252

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: 4
Views: 5252

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: 859

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: 1172

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: 982

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: 890

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: 890

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: 4
Views: 2576

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: 4
Views: 2576

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...
by JimmyHartington
Thu Dec 07, 2023 8:16 am
Forum: Flows
Topic: Flow definition is corrupt: several flow objects have the same internal ID
Replies: 3
Views: 30585

Re: Flow definition is corrupt: several flow objects have the same internal ID

I have used RegEx and BBEdit to extract a certain pattern. Could be like "<id>.+<\id>".
And then using remove duplicates function to leave the one which has duplicates.
Then it is pretty fast to find which ID it is.
by JimmyHartington
Thu Oct 26, 2023 8:19 pm
Forum: Action Lists
Topic: Remove all CMY from PDF (Map to Spot Color None)
Replies: 4
Views: 12342

Re: Remove all CMY from PDF (Map to Spot Color None)

Hi Magnus

I think you have share the wrong file.
It is not an action list.