Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Jake Jackson

    (@blue-liquid-designs)

    If the barcode you have is just an image file you can add a header or footer to your PDF template file and have it display on each page of your PDF.

    I recommend reviewing our custom template getting started guide before moving onto the header/footer section.

    Thread Starter manishsoni5041

    (@manishsoni5041)

    Hi,

    can you please explain about it more in details, i am tying but not getting exactly how i need to do.

    I am not getting exact idea about it so it will be good if i will get some more info about it.

    Thanks

    Plugin Author Jake Jackson

    (@blue-liquid-designs)

    Apart from the links to our online documentation about custom templates, I’m not sure what additional information I can provide you. You will need HTML/CSS/PHP knowledge to do this. If you don’t have this knowledge you can hire us to do it for you. Get in touch and we can discuss the costs.

    If you still want to do it yourself, below are bullet points.

    1. Follow our guide and create a custom PDF template.
    2. Once up and running add a header or footer in your custom template.
    3. Include your barcode image in your header / footer
    4. Assign your new custom template to the appropriate Gravity Form using configuration options.

    Thread Starter manishsoni5041

    (@manishsoni5041)

    Hi,

    Through this code “$pdf->writeBarcode”, i have added the barcode but i am getting about the other things of this code.

    I have added the code, barcode came but how i can set a width and how i can assign some value to this barcode so when we scan a barcode we can get that value. I have one array which i want to pass as a value to this barcode so when we will scan we will get that value.

    Can you please help me out to solve this?

    $complete = array(‘1’ => ‘aa’, ‘2’ => ‘bb’);
    $codbare = $pdf->writeBarcode(‘EAN-13’, ‘5’, ‘5’, 10, 2, 0.4,$complete, ‘N’);

    I found this code and i have used this.

    Can you please help me with this more so i can set my custom values.

    Thanks

    Plugin Author Jake Jackson

    (@blue-liquid-designs)

    You can find details about the writeBarcode() method in the MPDF documentation, although you might find the HTML <barcode /> version simpler to use.

    In any case, you can only pass a string to the ‘code’ parameter (not an array). This is what will be displayed on your barcode scanner.

    Thread Starter manishsoni5041

    (@manishsoni5041)

    Hi,

    If i cant pass array than can i pass some custom value so on barcode scan, i will get that value.

    custom value means some url aur some static string data so on scan, i can get those values.

    Is it possible?

    Thanks

    Plugin Author Jake Jackson

    (@blue-liquid-designs)

    I think you are actually after a QR Code which will allow you to embed any string information you wish. The particular barcodes available to mPDF are an international standard (like EAN13) that only accepts numbers in their code. To generate a QR code you will need a 3rd party PHP library.

    Thread Starter manishsoni5041

    (@manishsoni5041)

    Hi,

    Can you please let me know that with this code “$pdf->writeBarcode”, how can i add 2d barcode, type pdf 417 in the pdf with some custom value?

    Thanks,

    Plugin Author Jake Jackson

    (@blue-liquid-designs)

    All the information about using the $pdf->writeBarcode method is in the documentation I have already provided you.

    The simplest barcode would be $pdf->writeBarcode('417');

    Thread Starter manishsoni5041

    (@manishsoni5041)

    Ok, thanks i will try with third party library.

    Is there any provision to put 2D barcode of type pdf417?
    e.g. https://en.wikipedia.org/wiki/PDF417

    Plugin Author Jake Jackson

    (@blue-liquid-designs)

    mPDF doesn’t have this feature built in. You would need to find a 3rd party PHP library that could generate PDF417 barcodes.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Barcode with PDF Pages’ is closed to new replies.