Search found 283 matches

by JimmyHartington
Wed Feb 14, 2024 1:47 pm
Forum: Flows
Topic: PDF to EPUB
Replies: 4
Views: 255

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

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

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

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

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

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

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

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

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

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

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

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

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.
by JimmyHartington
Thu Oct 12, 2023 1:25 pm
Forum: PitStop Server
Topic: Malformed pdf when processed with Pitstop Server but not Pitstop Pro
Replies: 4
Views: 12004

Re: Malformed pdf when processed with Pitstop Server but not Pitstop Pro

Exactly. I would like to refry it, but to do it automatically based on when it happens. :)
Which is not always.

So I wondered if Pitstop could flag these files?

Maybe I need to report it to support.
by JimmyHartington
Wed Oct 11, 2023 9:57 pm
Forum: PitStop Server
Topic: Malformed pdf when processed with Pitstop Server but not Pitstop Pro
Replies: 4
Views: 12004

Re: Malformed pdf when processed with Pitstop Server but not Pitstop Pro

When I open the pdf in Acrobat, I get a font error. This document is the only one where this happen out of 43 in a collection I need to process and merge. This process happens with a lot of user submitted files, so I am looking for a way to find the files before processing. The difficulties are that...