Search found 57 matches

by jan_suhr
Wed Aug 16, 2017 4:06 pm
Forum: Flows
Topic: How do you handle Illegal Characters?
Replies: 6
Views: 26266

Re: How do you handle Illegal Characters?

Shouldn't Switch decode the XML, the & is illegal in XML and is written as & . If you get it from a Metadata variable it should be correctly applied as a file path in Switch. If not you always have the Search field in the variables were you can do a RegEx to change the & to & and the...
by jan_suhr
Tue Aug 15, 2017 10:00 am
Forum: Flows
Topic: How do you handle Illegal Characters?
Replies: 6
Views: 26266

Re: How do you handle Illegal Characters?

If the problematic characters are in the filename and Switch has problem finding the files Switch can't change the file name until the file is in the Switch system.

What are the file systems? Are the files on another system than the Switch installation?


Jan
by jan_suhr
Thu Jul 20, 2017 10:45 am
Forum: Flows
Topic: Plan a pdf file into InDesign automatically
Replies: 7
Views: 21978

Re: Plan a pdf file into InDesign automatically

The input file to the InDEsign configurator must be a InDesign file, a template or a job. Then the script will place the PDF on this InDesign file.

Jan
by jan_suhr
Thu Jul 20, 2017 10:41 am
Forum: Flows
Topic: simple placement of pdf A directly on pdf B
Replies: 2
Views: 18521

Re: simple placement of pdf A directly on pdf B

If I understand you question correct you can do it in Switch with the Execute Command and run PDFToolkit (pdftk) Stamp function. It can combine two PDF's on top of each other. It will position the placed PDF from the lower left corner.

https://www.pdflabs.com/tools/pdftk-server/
by jan_suhr
Thu Jul 13, 2017 10:11 am
Forum: Scripting
Topic: Duplicate pages
Replies: 11
Views: 54372

Re: Duplicate pages

I don't know how the scripting for Quite Imposing works but if you can send a script file to it I think that my app "Execute Command Friend" could work.

It will let you create a dynamic shell script from Switch variables that can be used by an application that needs a script to run.

Jan
by jan_suhr
Wed Jul 12, 2017 12:15 pm
Forum: Scripting
Topic: Duplicate pages
Replies: 11
Views: 54372

Re: Duplicate pages

It can be done with my App Duplicate PDF Pro that Freddy suggested early in this thread.


Jan
by jan_suhr
Wed Jul 12, 2017 8:23 am
Forum: Scripting
Topic: Duplicate pages
Replies: 11
Views: 54372

Re: Duplicate pages

You have to use PDF Toolkit for this and run it with Execute Command. Then you have to construct a shellscript or BAT-file that contains the commands to make your new PDF. PDF Toolkit uses the cat command for it. https://www.pdflabs.com/docs/pdftk-man-page/#dest-op-cat You can use my free APP Execut...
by jan_suhr
Tue Jul 04, 2017 2:48 pm
Forum: Scripting
Topic: Script expression - If - Else
Replies: 5
Views: 20944

Re: Script expression - If - Else

You can solve this without scripting too. I guess you want to sort even or odd pages from a PDF and do different things with them. If you first split the PDF in Switch and UnGroup the folder the pages end up in you have files with a suffix of the page numbers. On the connection out of the folder you...
by jan_suhr
Mon Jun 19, 2017 4:36 pm
Forum: Scripting
Topic: Yesterday's Date? [SOLVED]
Replies: 13
Views: 47222

Re: Yesterday's Date?

Thanks,

It wasn't much of a problem since I already had the code for it in a script I made a couple of years ago.

It was just to take a snippet that could do this and make an app of it.

That is also why it is free :-)


Jan
by jan_suhr
Sun Jun 18, 2017 2:08 pm
Forum: Scripting
Topic: Yesterday's Date? [SOLVED]
Replies: 13
Views: 47222

Re: Yesterday's Date?

I have now made an app that is called Date Calculator. It will hopefully be on the Enfocus Appstore at the end of the week. And it will be FREE! You can with it add or subtract days from a given date. and it will do it correctly over a change of months. The new date will be stored as Private data in...
by jan_suhr
Fri Jun 16, 2017 5:59 pm
Forum: Scripting
Topic: Yesterday's Date? [SOLVED]
Replies: 13
Views: 47222

Re: Yesterday's Date?

But it can be done with an App :-D
Gabriel, you or me??

Then you don't need the Scripting module.



Jan
by jan_suhr
Fri Jun 16, 2017 5:58 pm
Forum: Scripting
Topic: Yesterday's Date? [SOLVED]
Replies: 13
Views: 47222

Re: Yesterday's Date?

It's a long standing request to be able to use Switch.Calucaltions to calculate date and time.

As it is you are stuck with calculate the Day value but as you say at the end or beginning of a month you're stuck.


Jan
by jan_suhr
Fri Jun 16, 2017 1:17 pm
Forum: Scripting
Topic: Yesterday's Date? [SOLVED]
Replies: 13
Views: 47222

Re: Yesterday's Date?

There's a numerical value for a date that you can do calculations on.

Look in the documentation

Jan
by jan_suhr
Thu May 04, 2017 9:55 am
Forum: Scripting
Topic: Extract images from PDF
Replies: 2
Views: 16961

Re: Extract images from PDF

There is a CLI utility that is called pdfimages that can extract images inside of PDF's It is a simple tool that can be run with the Execute command tool. Depending on how the images is saved inside of the PDF you can get it to save the images as .jpg, how ever normally it is saving out images in a ...
by jan_suhr
Sat Apr 22, 2017 9:16 am
Forum: Scripting
Topic: ImageMagick jpg to pdf
Replies: 2
Views: 14976

Re: ImageMagick jpg to pdf

It is probably a path-issue.

Try to use the Static IM where all the components are embedded in to one .exe-file.
They are at the bottom of the list.

http://www.imagemagick.org/script/binar ... hp#windows



Jan