Get Page Count from Metadata

Hi,

I have a job which is CSV input which goes through a datamapper and then through a template. We are outputting single PDF’s per record (upto 50k PDF’s). I need to get the page count for each record, but from the standard metadata the pages in document is always set to 1. I saw a thread somewhere about a work around to get this but I can’t find it, does anyone have any ideas?

I was wondering if it’s possible to update metadata from a template as we could then add the pagecount from the template into a existing metadata field.

James

Hi @jbeal84,

[…] I saw a thread somewhere about a work around to get this but I can’t find it […]

I assume that you are referring to the following OL Learn forum post ‘How to determine number of pages in a document?’, can you please confirm if this is correct?

Hi

Yes that’s the one, am I correct in thinking this issue still hasn’t bene resolved so you can get the page counts much more easily?

James

Yes, you will have to use the same kind of solution to add the page count to the metadata in case you would like to extract the page count from the metadata later on.