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

Print Button in Adobe to send Fields directly to labels printer for printing using JavaScript

New Here ,
Jan 30, 2022 Jan 30, 2022

Hi Everyone

I have the following request where I want to collect a number of fields in an Adobe doc then compine them in an array so I can compose a list of lables and send it to a sticky lables printer EPSON L90 for printing .

I wrote the following script in a "Print Button" to collect the requested fileds in two arrayes "P_FieldName" & "V_FieldName".


var P_FieldName=[];
var V_FieldName=[];
var pRowStr="";


for (var p=1; p<4; p++) {

      if (p>1) pRowStr="_"+p;

      for (var i=1; i<13; i++) {
             var pField=this.getField("Part NumRow"+i+pRowStr);
            var vField=this.getField("Part VendorRow"+i+pRowStr);
            if (pField != null){
                P_FieldName.push(pField.valueAsString);
                V_FieldName.push(vField.valueAsString);

      }
}

 

Would you please help me with the needed code to compine and send those arrays to the EPSON L90 printer for printing them as lables 

TOPICS
Acrobat SDK and JavaScript
3.3K
Translate
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
New Here ,
Feb 04, 2022 Feb 04, 2022

How to run the above JavaScript when we open the PDF file with Evince PDF viewer 

Translate
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
LEGEND ,
Feb 04, 2022 Feb 04, 2022
LATEST

This forum is for support for Adobe products. To find the capabilities of rival products, you'd need to consult the maker of the app. Be aware though that almost no non-Adobe products bother to support the full range of JavaScript commands.

Translate
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