Workflow Blank impression count

Hi there,

When we setup a duplex job with transaction table, it may automaticly adding a blank impression at the end of the doc to force the file can be printed in duplex.

Is there anyway I can get this blank impression count from Workflow by using REST API?
I try to get contentsets from REST API and using following code to get page count, and those count have included the blank impressions already, so that is there anyway I can tell which are blank impression?

                    var contentsetsPageDetails = JSON.parse(xhttp.responseText);
					
                    var contentsetsPageDetailMap = {};
                    var contentItemsLength = contentsetsPageDetails.length
                    for (var idx = 0 ; idx < contentItemsLength; idx++) {
							
                             contentsetsPageDetailMap['' + contentsetsPageDetails[idx].id] = contentsetsPageDetails[idx].pages;
                           
                            }

Many thanks

Hi @CainZ,

Based on “duplex job” I assume that you are making use of the Imposition option inside a Output Creation Preset file, is that correct? As far as could test is that blank pages will be ignored in the “page count” value.

You can get the “page count” value on different Metadata levels. It is up to you to decide on which Metadata level you would like to get the “page count” value, like for example:

On Job level:

Set Job Infos and Variables Workflow plugin:

  • Variable: %{pageCount}
  • Value: GetMeta(SelectedPageCount[0], 11, Job)

Run Script Workflow plugin (JavaScript):

var objMetadata = new ActiveXObject("MetadataLib.MetaFile");

objMetadata.LoadFromFile(Watch.GetMetadataFilename());

var pageCount = objMetadata.Job().PageCount();

Watch.SetVariable("pageCount", pageCount);

P.S. It might be worth checking the Metadata after you have executed the Create Output Workflow plugin in Debug mode.