Announcement

Collapse
No announcement yet.

How can i increase number in textbox after print?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • lyndi_wu
    replied
    JRB

    Sorry for the inconvenience. Is your account an Foxit Account? If not, please help sign up first from the below page first.
    https://account.foxit.com/site/sign-up

    Leave a comment:


  • JRB
    replied
    It says "Invalid email or password".

    Attached Files

    Leave a comment:


  • richell_huang
    replied
    You can create one ticket from Create ticket and input "Attention: Lisa" as the subject, so she will take care of it.

    Leave a comment:


  • JRB
    replied
    Thank you Lisa_lee

    How can I send you a private message?

    Leave a comment:


  • Lisa_lee
    replied
    JRB ,It is very kind of you to frequently help Javascripts related questions on our Foxit forum,we really appreciate your efforts and help.

    Leave a comment:


  • htqonline
    replied
    @JRB : Wow , its work. Thank you so much.

    Thank you very much every one .

    Leave a comment:


  • JRB
    replied
    This script works fine but it must be used from the Console or from an application level script (for security reasons) if you don't want to click OK for each printing.
    Try it in the attachment.

    nPrint = 10; // number of pages to print
    nPrint +=1;
    this.getField("PRINTCOUNT").value = 0;
    for (var i=1; i<nPrint; i++) {
    this.getField("PRINTCOUNT").value = i;
    this.print({bUI: false, bShrinkToFit: true, nStart: 0, nEnd: this.numPages - 1});
    }
    Attached Files

    Leave a comment:


  • htqonline
    replied
    @JBR : its only 1 page
    Like JBR said i just send to printer 1 time and the printer will print 200 pages. On each page the serial number will be plus 1 (+1)
    Last edited by htqonline; 12-03-2021, 12:51 PM.

    Leave a comment:


  • htqonline
    replied
    Thank you everyone for helped. i added a sample file.

    Attached Files

    Leave a comment:


  • Roy_Chen
    replied
    htqonline
    That would be better to have a sample file for further investigating.

    Leave a comment:


  • JRB
    replied
    I understood.
    This requires a JavaScript which increments the field 200 times and send the file 200 times to the printer.

    Is it something to do with only one document or with several?
    If several, is the "counter" field already placed in the document?

    Please share you document or a sample.

    Leave a comment:


  • lyndi_wu
    replied
    htqonline

    Thank you for your explanation. It seems that your document has only one page, maybe it can contain two fields, you can input the copy number 200 in one field, and in the other field, it will show the serial number from 1 to 200,is that right? And it seems that the second field is similar with your first request.

    If not, maybe you can send us the sample file in question, then we can better advice. Thanks,


    Leave a comment:


  • htqonline
    replied
    @Lisa_lee : Thanks
    I tried and it gave me 200 pages with serial number 123456789 - 1 , i have 1 page but i want to print 200 page in diffirent serial number, and the serial number count from 123456789 - 1 to 123456789 - 200.

    Leave a comment:


  • Lisa_lee
    replied
    htqonline ,Thanks for your request. Based on the request that you mentioned, please choose to input the total copies that need to be printed and check the option "Collate“ in the Foxit print dialog box and then print the document to see if it will meet your requirements?
    Click image for larger version

Name:	1.png
Views:	112
Size:	57.2 KB
ID:	185998

    Leave a comment:


  • htqonline
    replied
    @Lisa_lee : Thank you for ur reply
    On my pdf file have a serial number like : 123456789 - x , x will count from 1,2,3,4,5 to 200 or more on each page i print. If i want "123456789 - 1" to "123456789 - 200" i will need to print 200 times (send it to the printer). Now i just want to pirnt it in 1 times.

    Sorry my english very bad
    Last edited by htqonline; 11-20-2021, 01:38 PM.

    Leave a comment:

Working...
X