• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

684

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 Expert ,
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.

Votes

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

Votes

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 Expert ,
Mar 04, 2021 Mar 04, 2021

Copy link to clipboard

Copied

LATEST

The code I provided above does it already.

Votes

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