Search found 24 matches

by pcarvalho
Mon Nov 21, 2022 1:19 pm
Forum: Switch
Topic: Escaping banknotes from photoshop flow
Replies: 1
Views: 2581

Escaping banknotes from photoshop flow

Hi, I have a flow that resize images to a specific size in Photoshop, but I have some cases that banknotes are ingested in that flow and photoshop is blocked with those type of images. I have a script to open the files depending if they are bitmap, eps, pdf or ai files. Already placed a try catch in...
by pcarvalho
Thu Aug 12, 2021 6:47 pm
Forum: Applications
Topic: Using PDFTK to remove password from PDFs
Replies: 2
Views: 7295

Using PDFTK to remove password from PDFs

I'm using PDFTK to remove the password protection of PDF files and is working fine. The problem is when the PDF password mismatch the one I've setup in the code. The file simply disappear from switch Can I set an error folder or some error notification for these cases? This is my code: Screenshot 20...
by pcarvalho
Thu Aug 12, 2021 6:16 pm
Forum: PitStop Server
Topic: Automatically enter PDF password & Change security settings
Replies: 4
Views: 8426

Re: Automatically enter PDF password & Change security settings

You can use the following values do set PDFTK in your Switch workflow.
Just replace the PASSWORD with your password.
Screenshot 2021-08-12 at 17.14.05.png
Screenshot 2021-08-12 at 17.14.05.png (35.11 KiB) Viewed 7654 times
by pcarvalho
Sat Jan 09, 2021 1:28 pm
Forum: PitStop Pro
Topic: Add UTC DATE in portuguese
Replies: 1
Views: 3410

Add UTC DATE in portuguese

I need to add a date in portuguese to a PDF using the variable %UTC Date%.
I've changed the language of the MACOS to portuguese but it didn+t work.
How can i do this?
by pcarvalho
Fri Mar 08, 2019 4:14 pm
Forum: Switch
Topic: e-mail to PDF
Replies: 1
Views: 4100

e-mail to PDF

I'm trying to create a flow that extract every content of a email, convert it to PDF, merge all PDFs in a single file and send the email back with that PDF. This is for archive purposes. The problem is when I print the email (.htm files) it prints without the images that are in the body. The files a...
by pcarvalho
Thu Oct 18, 2018 11:37 am
Forum: LEGACY scripting
Topic: Set view options in acrobat with Javascript
Replies: 1
Views: 3667

Set view options in acrobat with Javascript

I have several pdf files in single page that i need to change the view options.
Can use a script script to invoke an action that do this?
Is is possible to do it directly in javascript? If so, where can i check the commands?

Image

Thanks in advance
by pcarvalho
Wed Oct 17, 2018 11:57 am
Forum: Flows
Topic: keeping the Hierarchy info in generated PDFs
Replies: 4
Views: 5497

Re: keeping the Hierarchy info in generated PDFs

I don't have the Metadata module.
Is there any other way?
by pcarvalho
Tue Oct 16, 2018 3:05 pm
Forum: Flows
Topic: keeping the Hierarchy info in generated PDFs
Replies: 4
Views: 5497

keeping the Hierarchy info in generated PDFs

I want to build a flow that receives an email and extract all the attachments (PDF, .docx, .xlsx,...) storing the Hierarchy info to assemble it upfront. The problem is that in between, i convert the word files to PDF. When i try to assemble it it doesn't work. How can i store the Hierarchy info to t...
by pcarvalho
Wed Mar 30, 2016 6:40 pm
Forum: Flows
Topic: exiftool in switch
Replies: 1
Views: 3463

exiftool in switch

Does any one knows how to use exiftool with command line in switch?
i want to apply the command -xmp:all= *.* so that all metadata is removed.
by pcarvalho
Fri Feb 19, 2016 6:48 pm
Forum: Flows
Topic: split folders, process files and merge back again with same structure
Replies: 1
Views: 3784

split folders, process files and merge back again with same structure

I need to create a flow that disassemble a folder that has other 2 folders with files. one folder has PDF and the other has images. I want to merge the PDF, process the images and in the end, i need to reassemble the files/folders with the same structure. here's the example of the input and the outp...
by pcarvalho
Sat May 23, 2015 1:13 pm
Forum: LEGACY scripting
Topic: Export a file without the unique ID file name
Replies: 4
Views: 7568

Re: Export a file without the unique ID file name

thanks dkelly, but JavaScript does not offer Left and Right functions.

Works with
var name = $filename.substring(7, $filename.length);
by pcarvalho
Sat May 23, 2015 12:31 pm
Forum: PitStop Pro
Topic: duplicate layers
Replies: 1
Views: 5038

duplicate layers

Hello,
Is it possible to duplicate a layer and its contents, in a PDF?
Why do i ask this?, Because i want to rasterise the text but also want to keep it editable with 100% transparent.
by pcarvalho
Mon Apr 27, 2015 5:49 pm
Forum: LEGACY scripting
Topic: Export a file without the unique ID file name
Replies: 4
Views: 7568

Export a file without the unique ID file name

I have a script that export a indd file to rtf, xml and PDF. The resulted files have the unique ID file name ( _001OL _Teste_DOC1.rtf). How can i generate a file without that unique ID? Heres a portion of the script: var name = $filename; //========== Export to RTF =========== myRTFFile = new File($...
by pcarvalho
Wed Apr 01, 2015 12:41 pm
Forum: LEGACY scripting
Topic: check the creator of a file
Replies: 1
Views: 3902

check the creator of a file

In a switch workflow we can use [Doc.Application] contains "Illustrator" to check is a file is illustrator How can i do it by script when opening the file in Photoshop? Can i do something like this: if ($extension == "eps" || $infile.application.name.indexOf("Illustrator&quo...
by pcarvalho
Sat Mar 28, 2015 9:59 am
Forum: Flows
Topic: Processing files individually
Replies: 0
Views: 4381

Processing files individually

I have a flow that downsample the PDF to 72dpi in Pitstop Server and apllies a protection by Command Line using PDFTK. The problem is that when i copy, for example, 10 PDF files, it only starts protecting the files when all the files are processed by Pitstop Server. Is there a way to solve this? Is ...