You are viewing limited content. For full access, please sign in.

Question

Question

Can workflow delete a page from a document?

asked on March 11, 2024

I have a workflow where I would want it to find some specific PDFs in a folder, each of these pdf's should have 2 pages, and I would want to delete the second page from each document.

Is there a way to do this in built into workflow? The PDF's do not have pages generated.

0 0

Replies

replied on March 11, 2024

You could probably get a simple script put together that deletes a page from the document, I have a few that create pages, so I know they can manipulate the document pages without too much trouble.  But that's the generated pages - the Laserfiche pages.  You said that you don't have generated pages, so you're talking about editing the actual PDF.  That's going to be a significantly more difficult task.  I don't think if there is any easy way to do that using Workflow.

3 0
replied on March 12, 2024

Aside from importing some sort of PDF library, the only way to really do it with workflow would be to generate pages first.

If you have a DCC server set up and are running version 11, then you could use workflow to schedule Page Generation with the built-in activity they added.

In the advanced settings for the activity, you configure callback methods for success/errors, so the first workflow would schedule page generation, and the "callback" method could handle the page removal.

Either way, something like this would still require a decent amount of work.

0 0
replied on March 14, 2024

Agreed. If you have Quick Fields Agent, it would be much easier to use a Quick Fields session to re-save the entry with only the first 2 pages, then save all remaining page(s) as an entry that is tagged for auto-deletion using a workflow. There may be a way to just delete the remaining pages from within the Quick Fields session, but I don't know how to do that yet.

0 0
replied on March 14, 2024

QuickFields is also an option, and ImportAgent if you get creative with SDK scripts and exports, however, the DCC page generation uses a much newer PDF library, so you'll get more reliable results.

We used to rely on ImportAgent and QuickFields for this type of thing, but we switched to using the DCC as soon as that functionality was added and the error rate on page generation dropped to effectively zero.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.