Code Monkey home page Code Monkey logo

fpdm's Introduction

Form filling

Informations

Author: Olivier

License: FPDF

Description

This script allows to merge data into a PDF form. Given a template PDF with text fields, it's possible to inject values in two different ways:

  • from a PHP array
  • from an FDF file The resulting document is produced by the Output() method, which works the same as for FPDF.

Note: if your template PDF is not compatible with this script, you can process it with pdftk this way: pdftk modele.pdf output modele2.pdf

Then try again with modele2.pdf.

Source:

http://www.fpdf.org/en/script/script93.php

NOTE

This respository just a wrapper of http://www.fpdf.org/en/script/script93.php, so I'm so sorry I can't support about issues!

fpdm's People

Contributors

hamza-ezzahiry avatar madnh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fpdm's Issues

Fields with same name

Hi,

I love this library, nevertheless I have the issue that I often have large PDF forms where e.g. "name" or "street" or "city" are fields with the same name, used many times in the same PDF file.
So the user filling out the form manually only needs to enter it once.
Could it be that this library does not support that? If I have multiple fields with the same name, I get the Exception

FPDF-Merge Error: field street not found

in
fpdm.php:2088 Stack trace: #0 fpdm.php(863): FPDM\FPDM->Error('field street no...') #1 fpdm.php(471): FPDM\FPDM->set_field_value('current', 'street', 'Mystreet 1234') #2

Cheers,
Andy

Inserting image

Good work!

For one of the fields I am trying add image . I treid the FPDF the image() method but it seems no inheritance . What is the proper method to achieve this?

Adding pages from images

Is there an ability to add pages to a single page form. I was successfully able to implement a large formfill pdf array to template. But I need to add pages for images that will be attached to the data. Is that possible?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.