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

Question

Question

How to move pages for a document with different documents within

asked on January 28, 2020 Show version history

I have a 50 page document which contains different documents e.g. Title page, Enrollment document, Police clearance document. I have about 14 different documents I need to move to a folder and name the document with the title of the document. I have matched all titles and have last page identifiers for the documents.

Not sure where to start and what tokens I need and how to identify the length of the document as they will vary.

0 0

Replies

replied on January 29, 2020

Hi All

Just a couple thoughts for you. When you use a Find Entry, Search, etc, there are extra Properties you can retrieve about the document which can include Page Count (Page count only applies to LF Pages)

Knowing the number of pages in a Document, I have used this in conjunction with a Repeat loop Iteraction to match the Page Count or with a calculated PageCounter to know how many times to run the Loop.

Once inside the loop, Retrieve the Document Text for that page, You'll need Pattern Matching to find the Text that tells you what Document Type it is, or to identify last page. When you find a New Document Type, Create a New Doc and move the Page to it. Loop to the next page, typically I make the assumption that if I don't find a new document type, then I move that page to the last created document.

And Repeat.

Hopefully this gives you some ideas. 

 

3 0
replied on January 29, 2020

Hi Steven,

Thanks for your help.

I have pattern matching for the first page of a document, I have also attempted to match and identifying word for the last page of each document do I need to do that? Or once in the loop keep moving pages until the next Document title is found / matched?

I have created a couple of tokens for Page Count, Doc Type Hit Count, Keyword search and Document type. I am struggling to figure out how to use the loop for calculating and then moving pages. I'm a bit inexperienced.

I'm also not sure how my Pattern match passes through to my Document Type token.

 

Cheers,

 

Francis

0 0
replied on January 30, 2020

Hi Francis, this does get a bit complicated

Based on what I have to work with may change things on a case by case bases.

As a starting point, I typically only look for the next Header, assuming all pages until the next header found belongs to the previous document. As I loop through the pages, my Pattern Match would be looking for all valid headers types in the one Pattern, and then I would have a condition, If Header found, start a New Document, if not found, move the page to the last created document.

1 0
replied on January 29, 2020

Hey Francis :)

Long time no chat

 

This is a bit of a tricky workflow. I'll need to think about it for a while.

I'm thinking along the lines of creating a new entry, moving a single page to that. Then a token to track the new entry ID. Use a Repeat until the next pattern is matched. Moving pages to the current ID.

 

Not a simple workflow.

I'll give you a call if I get a chance over the next couple of days

Jono

1 0
replied on January 29, 2020

Hi Jono,

Hope you are well mate. That would be great if you could give me a call at some stage. I can show you what I have. I'm just not sure how to piece it all together.

 

Cheers,

 

Francis

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

Sign in to reply to this post.