IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Page 1 of 2 1 2 >
Topic Options
#44909 - 09/10/13 04:58 PM Putting filename on page
strido Offline
OL Expert

Registered: 08/06/13
Posts: 159
Loc: MA
Hey..

I'd like to put the filename on the page that I create, sort of like for a slip-sheet.

I'm sure there's planet press talk involved, as I tried to find a metadata solution but was unable.

Can someone nudge me in the right direction?

(Read: Tell me how to do it)
confused

Top
#44921 - 09/11/13 02:45 PM Re: Putting filename on page [Re: strido]
Olivier J
Unregistered


Hi Strido,

If you refer to the datafile name that will be run in the workflow, then a simple way is possible. In the form design, use a jobinfo to receive the name from the workflow(simpler than variables). You could have a slip sheet setup with a data selection object on it that shows: "=&watch.jobinfos[9]". Make sure to put that in the advanced data selection(no double quotes).

In the workflow, before the output task, you will have a "set job infos and variables" plugin that will store %o in %9 (original file name with extension in job info #9).

That's all. Now you will see the original file name on your slip sheet in the output.

Hope this helps. Thanks.
Regards,
Olivier

Top
#44923 - 09/11/13 05:00 PM Re: Putting filename on page [Re: strido]
Philippe F. Offline
OL Expert

Registered: 09/06/00
Posts: 1984
Loc: Objectif Lune, Montreal, Qc
...or, if you have metadata, simply look in the Document Level where the name of the original data file is stored in the DataFile field.
_________________________
Technical Product Manager
I don't want to achieve immortality through my work; I want to achieve immortality through not dying - Woody Allen

Top
#46500 - 01/21/14 12:30 PM Re: Putting filename on page [Re: strido]
strido Offline
OL Expert

Registered: 08/06/13
Posts: 159
Loc: MA
How about putting the filenames that are contained in a folder into a PDF? I'm poking around PressTalk but can't seem to come up with a solution. This is a different task than was mentioned previously, but it's sort of related so I thought I'd ask here.

I have 100 files in the "archive" folder - how do I print their names onto a PDF file?

Top
#46502 - 01/21/14 01:21 PM Re: Putting filename on page [Re: strido]
Philippe F. Offline
OL Expert

Registered: 09/06/00
Posts: 1984
Loc: Objectif Lune, Montreal, Qc
If you have PlanetPress Workflow, use the Folder Listing Input task to get a list of files as an XML file that you can then use as your data file inside a PlanetPress Document template.
_________________________
Technical Product Manager
I don't want to achieve immortality through my work; I want to achieve immortality through not dying - Woody Allen

Top
#46510 - 01/21/14 03:40 PM Re: Putting filename on page [Re: strido]
strido Offline
OL Expert

Registered: 08/06/13
Posts: 159
Loc: MA
OK, I have the XML data file as my input to a document. How do I get it to print all the filenames in the folder, not just the one I've selected as my data?

Top
#46512 - 01/21/14 04:37 PM Re: Putting filename on page [Re: strido]
Philippe F. Offline
OL Expert

Registered: 09/06/00
Posts: 1984
Loc: Objectif Lune, Montreal, Qc

  • Drag & Drop the XML file into the Data Pane
  • Double-click in the Data Pane and in the Data Selector that pops up, set the Emulation Delimiter to Second element and press OK
  • Drag & Drop the first filename element from the data pane onto the document template to create a Data Selection object
  • Double-click on the data selection object and select the Repeat section
  • Set the Repeat mode option to Line repeat
  • In the XPath option, click the Data Selector button
  • Click the first file element in the data selector and make sure you set the To iteration option to 0 to indicate you want all file elements to be processed, then press OK

That's it. All your filenames will be listed.

If the listing stretches beyond the page boundary, you can automatically have it overflow onto the next page:
  • In the Data Seleciton object's Repeat section, set the Condition to exit and overflow field to something like

Code:

=&physical.y>9


This will automatically overflow to the next page when the repeated items go below the 9 inch position from the top of the page.
_________________________
Technical Product Manager
I don't want to achieve immortality through my work; I want to achieve immortality through not dying - Woody Allen

Top
#46513 - 01/21/14 05:11 PM Re: Putting filename on page [Re: strido]
strido Offline
OL Expert

Registered: 08/06/13
Posts: 159
Loc: MA
Getting there....

It's only doing the first two and putting them on separate pages.

Yikes.

Top
#46514 - 01/21/14 05:59 PM Re: Putting filename on page [Re: strido]
Philippe F. Offline
OL Expert

Registered: 09/06/00
Posts: 1984
Loc: Objectif Lune, Montreal, Qc
Did you follow the Step-by-Step above exactly? If not, what did you do differently (so we can get an idea what causes the issue)?
_________________________
Technical Product Manager
I don't want to achieve immortality through my work; I want to achieve immortality through not dying - Woody Allen

Top
#46516 - 01/22/14 08:30 AM Re: Putting filename on page [Re: Philippe F.]
strido Offline
OL Expert

Registered: 08/06/13
Posts: 159
Loc: MA
Originally Posted By: Philippe F.
Did you follow the Step-by-Step above exactly? If not, what did you do differently (so we can get an idea what causes the issue)?


Brand new morning brings with it a fresh set of eyes.

I selected the filename element instead of file in your last step.

You even made it bold. UGH. Sorry 'bout that.

Thanks for your patience! It's really helpful. I really don't have a programming background so this is coming along slowly...[/b]

...sorry 1 more thing. I assume (could be my 1st problem) that we can put the iteration number before the filename using &current.iteration. I tried to input that inside the "lines" area of the data selection window. I see I can type anything in there so I can put text in front of the iteration, but I'd like to put a sequence number in front. I'll dig for that for a while but if you have an easy solution that I'll actually read in its entirety this time that would be cool. Thanks!


Edited by strido (01/22/14 09:22 AM)

Top
Page 1 of 2 1 2 >