I found that under Windows 10 bash you can install the package with pdfinfo and 
it then the command seems to work - I haven't downloaded the zip file yet to 
try it out but sed, awk, etc. all seem to be in place under the bash shell.

--------------------------------------------------------------------------
Lionel B. Dyck 
Mainframe Systems Programmer - TRA
Enterprise Operations (Station 200) (005OP6.3.10)
Information and Technology, IT Operations and Services

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Farley, Peter x23353
Sent: Monday, May 01, 2017 12:50 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: [EXTERNAL] Re: Manual Naming for Local use [WAS: Issue with 
SK4T-4949-13 - IBM Online Library....]

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:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of John McKown
Sent: Monday, May 01, 2017 1:12 PM
To: IBM-MAIN@LISTSERV.UA.EDU
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 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to