BTW the "pdfinfo" command is available as a Windows binary available at the 
XPDF website:

http://www.foolabs.com/xpdf/download.html

The Windows package has only the command-line tools, of which "pdfinfo" is just 
one.  A quite useful set of PDF tools, IMHO.

HTH

Peter

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of John McKown
Sent: Monday, May 01, 2017 1:12 PM
To: [email protected]
Subject: Re: Manual Naming for Local use [WAS: Issue with SK4T-4949-13 - IBM 
Online Library....]

<Snipped>

​How I do it on Linux is to use the "pdfinfo" program. Example:

[tsh009@it-johnmckown-linux Documents]$ pdfinfo dz9zr010.pdf
Title:          z/Architecture Principles of Operation
Subject:        z/Architecture
Keywords:
Author:         IBM Corporation
Creator:        FrameMaker 10.0.2
Producer:       Acrobat Distiller 10.1.13 (Windows)
CreationDate:   Thu Feb 19 17:32:41 2015 CST
ModDate:        Thu Feb 19 17:32:41 2015 CST
Tagged:         no
UserProperties: no
Suspects:       no
Form:           AcroForm
JavaScript:     no
Pages:          1732
Encrypted:      no
Page size:      612 x 792 pts (letter)
Page rot:       0
File size:      15180376 bytes
Optimized:      yes
PDF version:    1.6


​So

for i in *.pdf;do ln -s "${i}" $(pdfinfo "${i}" | awk '$1=="Title:" {print
$0;}' | sed -r 's/^Title: *//;s|/||g;s/ +/_/g;').pdf;done

-- 


This message and any attachments are intended only for the use of the addressee 
and may contain information that is privileged and confidential. If the reader 
of the message is not the intended recipient or an authorized representative of 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please notify us immediately by e-mail and delete the message and any 
attachments from your system.


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to