QR Codes

Community Beginner ,
Mar 03, 2021 Mar 03, 2021

Copy link to clipboard

Copied

I would ask about pdf file !

I have a pdf file and I would to generate QR code when rename file. ex: file name is 12345678 the QR code must represent this value .
note : programing language that used in adobe acrobat pro dc is JavaScriptInkedSharedScreenshot_LI.jpg

TOPICS
Edit and convert PDFs, How to, JavaScript, PDF forms, Scan documents and OCR

Views

39

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Most Valuable Participant ,
Mar 03, 2021 Mar 03, 2021

Copy link to clipboard

Copied

Try this:

 

event.value = this.documentFileName.replace(/\.pdf$i/, "");

 

However, this will not execute when the file is opened. To do that you would need to add the following code under Tools - JavaScript - Document JavaScripts (NOT inside of a function):

 

this.calculateNow();

 

Also note that this won't work in Reader, only in Acrobat.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 04, 2021 Mar 04, 2021

Copy link to clipboard

Copied

Almost done thank you for help

 

Finally I would like to ask about file extension, if we can to remove from QR code when read it

 

(for example: the file name is 12345, QR reader gives me 12345.pdf

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Most Valuable Participant ,
Mar 04, 2021 Mar 04, 2021

Copy link to clipboard

Copied

LATEST

The code I provided above does it already.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines