2023.1:Merge (Activity)

From Grooper Wiki
Revision as of 08:08, 26 July 2024 by Rpatton (talk | contribs) (// via Wikitext Extension for VSCode)

WIP

This article is a work-in-progress or created as a placeholder for testing purposes. This article is subject to change and/or expansion. It may be incomplete, inaccurate, or stop abruptly.

This tag will be removed upon draft completion.


This article is about an older version of Grooper.

Information may be out of date and UI elements may have changed.

20252023.1

file_save Merge is an Activity that creates a PDF, TIF, XML or ZIP file from the page and data content of a Batch Folder and saves it to that Batch Folder.

Glossary

About

So, you've gone through the first 4 phases of Grooper: Aquire, Condition, Organize, and Collect.

You have extracted data from your documents and you want to now build a document. The Export activity can build the document and export it outside of grooper all in one step. However, you might have a desire to build the document before executing the Export step in your Batch Process. You can do this with the Merge activity.

The Merge activity builds a document from the Pages in a Batch and saves that document to the Batch Folder. You can choose to build your document in a specific format such as a PDF or TIFF file. You can also automatically rename the documents as their built.

How To

Creating the Batch Process Step

The first thing we need to do is add a Merge Batch Process Step to our Batch Process and set the Scope at which the step will run.

  1. Right-click on the Batch Process.
  2. Hover over "Add Activity", then hover over "Transform". Finally, Click on "Merge..."
  3. When the "Add Activity" window pops up, feel free to change the name of the step in the Step Name property. For this tutorial we will be using the default of "Merge".
  4. Click "EXECUTE" located in the top right hand corner of the pop up window.


  1. Now you should have a Merge step in your Batch Process.
  2. Your scope should be set to the Folder Level containing the pages that will be combined into a document. In our case that is Folder Level 1, so we have set the Scope property to Folder and the Folder Level property to 1.


Configuring the Merge Activity

  1. Click the hamburger icon to the right of the Merge Format property and select the desired file type from the drop down list. For this tutorial, we will select PDF.


  1. You can set a name for the resulting merged document using either the Custom Filename or Attachment Name property. Ignore the Save As property as it is currently broken in 2023 and 2023.1.

The Custom Filename Property

  1. Enter in a name you want to name the PDFs in the Custom Filename property located in the rightmost property grid. Include the file extension in the file name.
  2. Click the save icon at the top right of the middle property grid.


  1. Click over to the "Activity Tester" tab.
  2. Select the Batch Folder containing the document you want to Merge.
  3. Click the Test icon at the top right of the Batch Viewer.


  1. Navigate through your Test Batches in the node tree to the Batch Folder you tested the Merge activity on.
  2. Click on the "Advanced" tab.
  3. Under "FILES" on the right-hand panel, you should see the new merged PDF file.


Why You Need to Include the File Extension

  1. If you do not include the file extension in your Custom Filename...


  1. ... you will still get an attached file, but it will not be a PDF or other useable file type.


The Attachment Name Property

  1. Click the ellipsis icon to the right of the Attachment Name property.
  2. When the "Attachment Name" window pops up, insert an expression for how you want to name the attachments. In our example we have used a String Interpolation expression to name the document with a random GUID.
    $"{Guid.NewGuid}.pdf
  3. Click "OK".