Go Back   MarcomCentral (PTI) and FusionPro User Communities > Software-Related Talk > FusionPro® VDP Server (API)

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 13th, 2015, 12:43 PM
knaselk knaselk is offline
Junior Community Member
 
Join Date: Feb 2011
Posts: 19
Default Creating PDFs with metadata (Author Name)

Hello, I've managed to embed an author's name in pdfs when using the following code in "On Record Start".

FusionPro.Composition.OutputFile.author = Field("Merch Buyer")

It works great on templates that only have one body page, but when I try to apply it to a template with multiple body pages it doesn't seem to hold the author name. The template is currently set up to make a body page active depending on the sign type needed.

I there a trick to applying doc info to the body page when multiple are available?

Thank-you
Reply With Quote
  #2  
Old April 14th, 2015, 12:12 AM
David Miller David Miller is offline
Senior Contributor
 
Join Date: Oct 2008
Location: Wallingford, CT
Posts: 263
Default Re: Creating PDFs with metadata (Author Name)

It's a cool feature. Especially when we compose multiple PDFs to an older RIP that displays the PDF Title rather than the actual file name.

OnRecordStart:
Code:
FusionPro.Composition.OutputFile.title = 'PDF Title';
FusionPro.Composition.OutputFile.author = 'PDF Author';
FusionPro.Composition.OutputFile.subject = 'PDF Subject';
FusionPro.Composition.OutputFile.keywords = 'PDF Keywords';
But, I'm unable to reproduce your problem. Maybe I'm not understanding the issue. All composed multi-paged PDFs contain the injected metadata. Even when the FusionPro Templates have Unused Body Pages that are called out via FusionPro.Composition.SetBodyPageUsage.

Sugest you post your template. What OS and version of FusionPro are you using?
__________________
David Miller
FusionPro VDP Creator 10.0.26
Adobe Acrobat Pro 2019.008.20074
Suitcase Fusion 20.0.0 (7653)
macOS High Sierra 10.13.6

Last edited by David Miller; April 14th, 2015 at 12:29 AM..
Reply With Quote
  #3  
Old April 14th, 2015, 05:22 AM
knaselk knaselk is offline
Junior Community Member
 
Join Date: Feb 2011
Posts: 19
Default Re: Creating PDFs with metadata (Author Name)

Thanks. David! I am using Mac OS 10.7.5 with Fusion Pro 8.2.7. The only time it doesn't work is when I make any of the body pages inactive. There are a total of 10 pages of various sizes in my template, but it only need to output 1 page per record. If I allow it to output all of the pages, it holds the author name just fine. I am in the process of creating a sample template from scratch. My current template is a little bloated with rules, just trying to narrow down any other possible conflicts.

It really is a great feature. I was looking for a way to sort all of my output files into folders. I wrote a companion applescript that pulls the author name, creates a folder, and moves each pdf into their corresponding folders. Any help or insight greatly appreciated. I'll try to post a sample soon. Thanks again.
Reply With Quote
  #4  
Old April 14th, 2015, 05:47 AM
knaselk knaselk is offline
Junior Community Member
 
Join Date: Feb 2011
Posts: 19
Default Re: Creating PDFs with metadata (Author Name)

Here is my template (attached). Perhaps my code is off, here is the OnRecordStart:
Quote:
FusionPro.Composition.OutputFile.author = Field("Author")
if (Field("Primary Sign Type").indexOf("SIZE A") > -1)
FusionPro.Composition.SetBodyPageUsage("PAGE A", true);
if (Field("Primary Sign Type").indexOf("SIZE B") > -1)
FusionPro.Composition.SetBodyPageUsage("PAGE B", true);
if (Field("Primary Sign Type").indexOf("SIZE C") > -1)
FusionPro.Composition.SetBodyPageUsage("PAGE C", true);
All of the body pages are set to unused. I also have a OnOutputFile rule that names the pdf by my "Primary Sign Type" field.
Attached Files
File Type: zip NEW TEMPLATE.zip (5.66 MB, 8 views)
Reply With Quote
  #5  
Old April 15th, 2015, 10:29 AM
step's Avatar
step step is offline
Senior Contributor
 
Join Date: Jan 2010
Location: Charlotte, NC
Posts: 955
Default Re: Creating PDFs with metadata (Author Name)

If I had to guess, I'd bet that this functionality is restricted to the first page in the document. If you were to rearrange your template so that "PAGE B" was the first page in the template, you'd see that the authoring meta-data was only created for the "PAGE B.pdf" output file. So having the pages set to "Unused" or not is really irrelevant. If all of your pages were set to unused (and toggled on and off by OnRecordStart) the output files that use the first page in your template would honor your authoring meta-data.

This is similar to how FPImposer works. If the first page in the template is 8.5x11 and the second page is 5x5, you won't be able to properly impose the 5x5 page even with the 8.5x11 page set as unused. To my knowledge, in order to get the results you're looking for, you'd have to split your template into multiple single-paged templates, unfortunately.
__________________
Ste Pennell
FusionPro VDP Creator 9.3.15
Adobe Acrobat X 10.1.1
Mac OS X 10.12

LinkedIn
Reply With Quote
  #6  
Old April 15th, 2015, 12:33 PM
knaselk knaselk is offline
Junior Community Member
 
Join Date: Feb 2011
Posts: 19
Default Re: Creating PDFs with metadata (Author Name)

Thank you for your response, Ste. I was thinking the same thing. Unfortunately, the need to output all the various sign types in one go outweighs my need to automatically sort them. Good to know though!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:44 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.