First time here? Check out the FAQ!
x

Can I view fields names of a protected PDF?

0 votes
asked by
edited by

I want to view field names of a locked (protected PDF) document. Is it possible?

1 Answer

0 votes
answered by (193k points)

You can download and install ABCpdf ASP and copy the script below into a text file extension and save it as a .vbs extension. Copy your PDF file into the script folder and named it 'abc.pdf'. Run the script by a double-click.
After that you will find another PDF document named 'output.pdf' in the same folder. This document will have all the field names overlayed on top of the fields.

Set theDoc = CreateObject("ABCpdf8.Doc")
theDoc.Read "abc.pdf"
theDoc.AddFont "Helvetica-Bold"
theDoc.FontSize=16
theDoc.Rect.Pin=1

Dim theIDs, theList
theIDs = theDoc.GetInfo(theDoc.Root, "Field IDs")
theList = Split(theIDs, ",")

For Each id In theList

theDoc.Page = theDoc.GetInfo(id, "Page")
theDoc.Rect.String = theDoc.GetInfo(id, "Rect")
theDoc.Color.String = "240 240 255"
theDoc.FillRect()
theDoc.Rect.Height = 16
theDoc.Color.String = "220 0 0"
theDoc.AddText(theDoc.GetInfo(id, "Name"))
theDoc.Delete(id)

Next

theDoc.Save "output.pdf"
theDoc.Clear
MsgBox "Finished"

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register
...