Skip to main content
Inspiring
March 29, 2023
Answered

How can I set the default behaviour of PDF generated by FM to show the Filename in the title bar

  • March 29, 2023
  • 3 replies
  • 1289 views

I am using FM2020, with structured documents (DITA 1.3).

When I generate a PDF (i.e. using the Publish feature, which uses the STS file I have generated), all of the PDFs always show the contents of the PDF's Title field/metadata in the Title bar, rather than displaying the PDF's filename.

I can manually fix this issue via two different approaches:

  • Open the PDF in Acrobat, go to File > Properties, select the Initial View tab, and in the Window Options sub-panel, select "File Name" for the Show field
  • Alternatively, open the PDF in Acrobat, go to File > Properties, select the Description tab, and clear the contents of the Title field

However, what I am looking for is an automatic solution, i.e. something I can set within Framemaker, so that I do not need to perform this step manually afterwards.

I have looked in the Publish Settings dialog (i.e. editing the STS file) and could not find any options that appear to control this behaviour. I have also looked in the Job Options file (i.e. PDF "Presets") and likewise I could not find any options to control this behaviour.

 

I feel like I have over-looked something obvious...

This topic has been closed for replies.
Correct answer frameexpert

For your first bullet point, launch Distiller and choose File > Preferences and select the option indicated in the screenshot:

 

3 replies

Ian16B7Author
Inspiring
April 14, 2023

After contacting Adobe about this issue, they suggested I created a feature request. I have done so here:

 

https://tracker.adobe.com/#/view/FRMAKER-13046

 

Anyone else who would like this feature, please upvote the feature request.

frameexpert
Community Expert
Community Expert
April 1, 2023

OK, this solution is anything but obvious, but it works.

  1. Create a text frame on the first page of the document and add the text to it as indicated in the screenshot. Make sure you set the text frame properties to PostScript code.

2. Choose File > Publish to show the Publish Pod (Panel) and click the Edit button.

3. In the Publish Settings dialog box, select the Use Acrobat Distiller checkbox:

4. Save the settings and create a PDF. You should get the filename in the title bar instead of the document's Title.

frameexpert
Community Expert
Community Expert
April 1, 2023

In case that text in the screenshot is hard to read:

 

[ /PageMode /DisplayDocTitle false /ViewerPreferences pdfmark

 

You can put it on the master page of your template and make it less conspicuous (smaller font, white text, etc).

 

The Postscript code will not show in the resulting PDF as long as you use the Use Distiller for PDF generation setting.

Two-fer
Inspiring
March 30, 2023

This should solve your problem....It is an Acrobat setting, not a FrameMaker setting. (And no, it isn't obvious, and yes, it is bat-crazy that a user has to actually select this to make it the default setting.) With no files open, go to Edit --> Preferences and then go here and checkmark the circled item: 

 

Ian16B7Author
Inspiring
March 31, 2023

@Two-fer- thanks for your response. While that approach works if I were the only end-user, it does not work for my customers.

Having re-read my post, I now realized I missed an important detail (sorry about that): I want this setting in the PDFs (not Acrobat) because I distribute these PDFs to many people (i.e. our customers). So I only have control over the PDF, I do not have control over our customers' settings, nor do I want to force them to use a system-wide setting (i.e. it could affect other PDFs that they view that are not ours).