Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| en:plugins:formfiller [2024/06/01 21:54] – [Downloads] rmb | en:plugins:formfiller [2025/11/17 15:52] (current) – rmb | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== FormFiller ====== | ====== FormFiller ====== | ||
| - | ==== Description ==== | + | ===== Description |
| This plugin makes it possible to fill PDF forms with profile data and profile pictures of members, as well as any text and pictures. | This plugin makes it possible to fill PDF forms with profile data and profile pictures of members, as well as any text and pictures. | ||
| Line 9: | Line 9: | ||
| - | ==== Downloads ==== | + | ===== Downloads |
| <WRAP download 60%> | <WRAP download 60%> | ||
| - | [[https:// | + | [[https:// |
| </ | </ | ||
| - | Older versions: | + | Older versions:\\ |
| + | [[https:// | ||
| [[https:// | [[https:// | ||
| [[https:// | [[https:// | ||
| Line 23: | Line 24: | ||
| [[https:// | [[https:// | ||
| [[https:// | [[https:// | ||
| - | ==== Information ==== | + | ===== Information |
| Supported by: **[[http:// | Supported by: **[[http:// | ||
| - | Plugin-Version: | + | Plugin-Version: |
| - | Required Admidio-Version: | + | Required Admidio-Version: |
| - | Supported databases: | + | Supported databases: |
| Supported languages: **German, English, French** | Supported languages: **German, English, French** | ||
| Line 36: | Line 37: | ||
| License: **GPL 2** | License: **GPL 2** | ||
| - | ==== Screenshots ==== | + | ===== Screenshots |
| {{: | {{: | ||
| {{: | {{: | ||
| - | ==== Installation ==== | + | ===== Installation |
| - | * In the adm_plugins | + | * Unpack the file Formfiller_x.x.x into the folder |
| - | * After that, copy all files (and folders) of the formfiller folder from the unzipped zip file to this folder. | + | * Log in to Admidio |
| - | * Then use the Admidio module menu to create | + | * Installing a plugin version < 4.0.0 |
| + | * Create | ||
| + | * The installation routine | ||
| + | * Installing | ||
| + | * To install, run the following PHP file:\\ < | ||
| - | ==== Update ==== | + | ===== Update |
| - | * First delete | + | * Update from plugin version 3.x to plugin version 3.y |
| - | * Then copy all files (and folders) of the formfiller folder | + | * Replace |
| + | * Update | ||
| + | * Delete the existing menu item via the Adminidio module menu | ||
| + | * To install, run the following PHP file:\\ < | ||
| - | ==== History ==== | + | ===== History ===== |
| + | //4.0.0 (16.11.2025)// | ||
| + | * [[https:// | ||
| + | |||
| + | //3.3.1 (01.06.2024)// | ||
| + | * [[https:// | ||
| + | |||
| + | //3.3.0 (16.01.2024)// | ||
| + | * [[https:// | ||
| //3.2.0 (18.02.2023)// | //3.2.0 (18.02.2023)// | ||
| * [[https:// | * [[https:// | ||
| Line 110: | Line 127: | ||
| [[https:// | [[https:// | ||
| - | ==== Operation | + | ===== How it works ===== |
| - | Form Filler can either create single | + | FormFiller creates PDF documents |
| - | === Definition "single document" === | + | === Definition |
| - | If via the user administration the profile | + | Form printing in the sense of FormFiller means that a PDF form is filled using absolute XY coordinates. The X and Y values define |
| - | {{: | + | Example: |
| + | {{: | ||
| - | In the above example, | + | In the example |
| - | === Definition " | + | -> Last name and first name are on the same line (80 mm)\\ |
| + | -> First name (at 60mm) comes before last name (at 100mm) | ||
| - | Even the creation of multiple documents is possible with formfiller. Multiple Document means that the data of several members | + | Further information on this topic can be found in the " |
| - | The menu item form filler module for multiple documents is called. | + | === Definition of the term "label printing" |
| - | {{: | + | Label printing using FormFiller means that the smallest X-coordinate of a line determines the start of the print. All other X-coordinates of a line are used solely for sorting. |
| - | Click on the button " | ||
| - | |||
| - | If " | ||
| - | |||
| - | {{: | ||
| - | {{: | ||
| - | |||
| - | === Definition "Print form" === | ||
| - | |||
| - | Form pressure within the meaning of Form Filler means that the filling in a PDF form is performed using fixed XY coordinate. The details for X and Y define here the horizontal and vertical position in millimeters relative to the upper left corner of the PDF form. | ||
| Example:\\ | Example:\\ | ||
| - | {{: | + | {{: |
| - | In the above example, the first name of the member is 60 millimeters and 80 millimeters | + | Using form printing, the printed image would look like this: (always referring |
| + | * Gender (title) at position 20, 30 (20 millimeters to the right and 30 millimeters down) | ||
| + | * First name at position 25, 30 (25 millimeters to the right and 30 millimeters down) | ||
| + | * Last name at position 26.30 (26 millimeters to the right and 30 millimeters down) | ||
| - | ⇒ Surname and first name are in the same row (80 mm)\\ | + | -> The surname would begin one millimeter to the right of the first name and almost completely overwrite it. |
| - | ⇒ First name (at 60mm) stands in front of Surname (bei 100mm) | + | |
| - | Further information on this topic can be found in " | + | However, if label printing is enabled, the printed image will look like this: |
| + | * Gender First Name Last Name //(each separated by a space)// | ||
| - | === Definition "label printing" | + | -> The smallest X-coordinate in the example is 20, meaning the gender (= salutation) determines the start of the print at position 20,30 (20 millimeters to the right and 30 millimeters down, relative to the top left corner of the form). First name and last name are appended, each separated by a space. |
| - | Label printing within | + | Further information on this topic can be found in the " |
| - | Example: | + | === The Main Menu === |
| - | {{: | + | |
| - | With form printing, the printed image would appear as follows: (always relative to the upper left corner of the form) | + | To populate a PDF document, a data source and a form configuration must be selected in the main menu. Specifying a PDF file is optional. |
| - | * Gender (Informal) to position 20,30 (20 millimeters to the right and 30 mm downwards) | + | |
| - | * First name at item 25,30 (25 millimeters to the right and 30 mm downwards) | + | |
| - | * Surname at position 26,30 (26 millimeters to the right and 30 mm downwards) | + | |
| - | ⇒ The last name here would begin a millimeter to the right of first name and this would almost completely overwrite it. | + | {{: |
| - | However, if label printing is set, the printed image is as follows: | + | The data source can be either a list configuration in conjunction with a role or individual users. |
| - | * Gender first name last name // (each separated by a space)// | + | In the list configuration, |
| - | ⇒ Smallest X coordinate in the example is 20, that is, gender (= Heading) determines the start of printing at position 20,30 (20 millimeters to the right and 30 mm downward, relative to the upper left corner of the form). First name and surname are, separately, added by a space. | + | {{: |
| + | {{: | ||
| - | Further information on this topic can be found in " | + | The form configuration defines the various parameters for printing, including the XY coordinates of the profile fields to be printed, font size, font color, relationships, |
| - | === Menu settings === | + | If no PDF file has been defined in a form configuration, |
| - | The menu **settings** is selected via the Settings link, top right of the default view. It is divided into four menu items. | + | {{: |
| - | * Configuration | + | === Menu Preferences === |
| - | * Options | + | |
| - | * Plugin enable | + | The **Preferences** menu can be accessed via the button of the same name, which is only visible to administrators. |
| - | | + | |
| {{: | {{: | ||
| {{: | {{: | ||
| - | === Menu configurations | + | === Menu item Configurations-Edit |
| - | Concerning configurations any number of PDF forms or label templates | + | Any number of form configurations |
| - | * Sample | + | * Sample |
| * Envelope DL | * Envelope DL | ||
| - | * mailing | + | * Address |
| {{: | {{: | ||
| Line 193: | Line 201: | ||
| {{: | {{: | ||
| - | == Designation | + | == Name == |
| - | The designation | + | The " |
| - | == Font, font style, font size and color == | + | == Font type, font style, font size and font color == |
| - | The font attributes set here (type, style, size and color) apply to all profile fields the same configuration. | + | The font attributes set here (type, style, size and color) apply to all profile fields |
| {{: | {{: | ||
| Line 203: | Line 211: | ||
| {{: | {{: | ||
| - | == PDF-File == | + | == PDF form alignment, PDF form size, PDF form unit == |
| - | Concerning | + | Parameters for the PDF file to be created. |
| + | |||
| + | == PDF file == | ||
| + | A PDF form can be selected | ||
| + | |||
| + | Important note: PDF forms must not exceed PDF version 1.4. If an error message appears... | ||
| + | //" | ||
| {{: | {{: | ||
| - | To enable Form Filler can access PDF forms, | + | In order for FormFiller to access PDF forms, |
| == Labels == | == Labels == | ||
| - | To print labels the following information in the labels box are required: the number of columns, column spacing, number of lines, line spacing. | + | To print labels, the following information |
| Example:\\ | Example:\\ | ||
| {{: | {{: | ||
| - | Here the label printing would look like this: | + | The label printing would look like this: |
| - | * 3 Labels across | + | * 3 labels side by side (3 columns), spaced |
| - | * 7 Labels across | + | * 7 labels one below the other (7 lines), |
| - | If the labels | + | If the Labels |
| - | Example: | + | Example:\\ |
| {{: | {{: | ||
| - | Smallest | + | The smallest |
| + | |||
| + | The profile fields are printed as follows:\ | ||
| + | Title First Name Last Name | ||
| + | |||
| + | Note: To write a single address label into a PDF document (e.g., a mail merge with invitations, | ||
| + | |||
| + | == Relationship == | ||
| + | In addition to the profile data of a member, the profile data of a relationship can also be read (Note: Profile fields of a relationship are only available in the field selection after the form configuration has been saved, closed and reopened). | ||
| + | |||
| + | {{: | ||
| + | |||
| + | In the following example, the relationship " | ||
| + | |||
| + | {{: | ||
| + | |||
| + | In the main menu, the member and their spouse are selected as users. | ||
| + | |||
| + | {{: | ||
| - | The profile fields are printed as follows:\\ | + | The result of label printing could look like this: |
| - | Informal first name last name | + | {{: |
| - | Note: To write a single address label in a PDF document (for example, | + | It is also possible to print a postage stamp for Dialogpost (diagram |
| + | {{: | ||
| - | == Field selection | + | == Field Selection |
| - | Concerning Field selection any number of profile fields can be added to a configuration.\\ | + | Any number of profile fields can be added to a configuration |
| {{: | {{: | ||
| - | To write the data of a profile | + | To write the data of a profile |
| {{: | {{: | ||
| - | To highlight individual profile fields, | + | To highlight individual profile fields, |
| - | Syntax:\\ | + | The various parameters |
| - | |Font: | + | |
| - | |Font style: | + | |
| - | |Font size: |S=<Size in Pixel> | + | |
| - | |Font color: | + | |
| - | |Gender: | + | |
| - | + | ||
| - | | + | |
| - | | **Profile Filed** | + | |
| - | |Surname | + | |
| - | |Firstname | + | |
| - | |Address | + | |
| - | |Gender | + | |
| + | ^ Parameter | ||
| + | ^ F |Font | ||
| + | ^ A | Font style | | (A) attribute | ||
| + | ^ S |Font size | | (S)ize | ||
| + | ^ C |Font color | ||
| + | ^ O |Alignment | ||
| + | ^ T |Text |only for option/ | ||
| + | ^ { |Pretext | ||
| + | ^ } |Posttext | ||
| + | ^ D |Date |only with additional field **Date** | ||
| + | ^ V | any text |only with additional field **Text** | ||
| + | ^ L |Image | ||
| + | ^ LW |Line width |only for additional field **Line** or **Rectangle** | ||
| + | ^ DC | Character color |only for additional fields **Line** or **Rectangle** | (D)raw(C)olor | ||
| + | ^ FC | Fill color |only for additional field **Rectangle** | ||
| + | ^ RS | Rectangle style |only for additional field **Rectangle** | ||
| + | ^ P |Print on page... | ||
| + | ^ K |KeyManager profile field |only for additional field **Text** | ||
| + | ^ OI | ||
| + | ^ OW |Line spacing in mm | ||
| + | ^ WL |Word length | ||
| + | ^ CL | ||
| + | ^ WW |Line spacing | ||
| + | ^ WM |max. number of lines |only in conjunction with WL or CL | (W)ordwrap(M)ax |WM=3 |Default setting: 1 | | ||
| - | //Special profile box Gender// | + | Use and effect of the print parameter " |
| + | ^ ^ FormFiller configuration contains print parameters for a single page (the parameter P=x is not used) ^ FormFiller configuration contains print parameters for more than one page (the parameter P=x is used) | | ||
| + | ^ No PDF file is selected to write the data to. | The output file contains x pages corresponding to the number of addresses. Each page uses a blank DIN A4 page as the background. | A member' | ||
| + | ^ The PDF file to be processed consists of one page or multiple pages (e.g., an invitation in DIN A4 format or many postcards with online stamps). | The output file contains x pages corresponding to the number of addresses. The selected PDF file serves as the background. The data of the first member is printed on the first page of the PDF file. The data of the second member is printed on the second page of the PDF file, and so on. Once all pages of the PDF file are printed, the process starts again with the first page. Example: The data of 4 members are to be printed in a two-page PDF file. The data of the first member is printed on the first page of the PDF file. The data of the second member is printed on the second page of the PDF file. Then the process starts again with the first page. The data of the 3rd member is printed again on page 1, and the data of the 4th member is printed again on page 2. | The data of a member is split across multiple pages according to the parameter P. The selected PDF file serves as the background. Example: The data of 3 members are to be printed in A two-page PDF file is printed. Parameters P=1 and P=2 are used. Result: The data of the first member is printed on pages 1 and 2 according to the P parameters. For the second member, printing starts again on page 1. The data is printed on pages 1 and 2 according to the P parameters. The same applies to the third member. | ||
| - | To identify the gender of a member | + | Examples: |
| + | ^ Profile field ^ Position and additional instructions | ||
| + | |Last name | ||
| + | |First name |10, | ||
| + | |Address | ||
| + | |Gender | ||
| - | Syntax:\\ | + | **Special feature: Gender profile field** |
| - | X1, | + | |
| + | To indicate a member' | ||
| + | |||
| + | Syntax:\\ | ||
| + | X1, | ||
| or | or | ||
| - | X,Y; T=<Text for male>,< | + | X,Y; T=<Text for male>,< |
| - | Example: | + | Examples: |
| - | 1. Case: | + | Case 1:\\ |
| - | In one form the following fields are available: {{: | + | The following fields are present in a form: {{: |
| - | * the rectangle of Male is located at coordinates 60,50 | + | * The rectangle of male is located at coordinates 60,50 |
| - | * the rectangle of female located | + | * The rectangle of the female |
| - | Depending on the gender | + | Depending on gender, male or female |
| - | Syntax: | + | Syntax:\\ |
| 60, | 60, | ||
| - | Result:\\ | + | Result:\\ |
| - | If the member is male, so an X is written at position 60,50, the member is female, an X is written at position 80.50 | + | If the member is male, an X is written at position 60, 50; if the member is female, an X is written at position 80, 50. |
| - | 2. Case:\\ | + | Case 2:\\ |
| - | For labels | + | For labels, the text " |
| - | Syntax:\\ | + | Syntax:\\ |
| - | 70, | + | 70, |
| - | Result:\\ | + | Result:\\ |
| - | If the member is male, so the text Lord at position 70,40 is written, | + | If the member is male, the text " |
| - | //The additional fields Date, profile photo and text// | + | **The additional fields Date, Profile Photo, Text, Line and Rectangle** |
| - | In addition to the profile fields the current date, the profile picture | + | In addition to the profile fields, the current date, the member' |
| - | Syntax:\\ | + | ^ Field ^ Position and additional instructions |
| - | | **Field** | **Position and additional instructions** | **Signification** | + | |Date |10.20 |Current date at position 10.20 | |
| - | |Date |10,20 | + | |Date |10, |
| - | |Date |10, | + | |Date |17, |
| - | |Date |17, | + | |Profile photo |40,20 |The member' |
| - | |Profile photo |40, | + | |Profile photo |40,20,30 |The member' |
| - | |Profile photo |40, | + | |Profile photo |40,20,0,50 |The member' |
| - | |Profile photo |40, | + | |Profile photo |40, |
| - | |Profile photo |40, | + | |Text |10, |
| - | |Text |10, | + | |Line |20, |
| + | |Rectangle |60, | ||
| - | Supported image formats: | + | Supported image formats: |
| * JPEG (Joint Photographic Experts Group) | * JPEG (Joint Photographic Experts Group) | ||
| - | * PNG (Portable Network Graphics) | + | * PNG (Portable Network Graphics) |
| - | * GIF (Graphics Interchange Format) | + | * GIF (Graphics Interchange Format) |
| - | === Menu Options === | + | **Dynamic Fields** |
| - | Concerning Options preferences for displaying the created PDF documents can be set and uninstallation can be performed. | + | |
| - | {{: | + | For dynamic fields (e.g. role memberships), |
| - | == max. PDF-Display == | + | All subsequent lines are added dynamically (depending on the number of roles within |
| - | PDF display is the maximum | + | |
| - | == Uninstall | + | If further fields (profile fields, text, other dynamic fields) are to be printed after a dynamic field, the parameter OI=x (e.g., OI=1) must be used. OI=x defines the order of the rows. The X/Y coordinates of the field with the smallest OI value (e.g., OI=1) determine the starting point of the entire list. |
| - | Concerning uninstall all created configuration files can be deleted. | + | |
| - | {{:de: | + | Example: |
| - | {{: | + | |Text |20,120;.........; |
| + | |Line | ...................; | ||
| + | |Role Memberships |..........; | ||
| + | |Last Name |.........................; | ||
| + | |First name |....................; | ||
| - | === Menu Enable Plugin === | + | In the example above, printing begins at position 20,120 with text. A line is drawn at position 20,130. The list of role memberships begins at position 20,138. Each role is printed 7 mm below the previous one. After all roles, the first name is printed first, followed by the last name. |
| - | Selection of roles, their families may call the plugin. The plugin and the settings menu can be unlocked separately for specific | + | |
| - | {{:de: | + | A sample configuration " |
| - | Note: A selected role also requires | + | //Notice:// |
| + | The parameter OI=x can only be used with fields containing absolute coordinates (e.g., text at position X/Y or a line from position X/Y to position X2/Y2). OI=x does not work with rectangles or images, as X2 and Y2 are relative values for these. | ||
| - | | + | **Line break** |
| - | | + | |
| - | | + | |
| - | === Menu Plugin information === | + | Line breaks are available specifically for long texts. Using the parameters WL, CL, WW, and WM, it is possible to split a text into individual segments and output them one below the other. |
| + | * WL = Word length | ||
| + | * CL = character length | ||
| + | * WW = Line spacing (default: 5) | ||
| + | * WM = max. number of rows (default: 1). | ||
| - | {{:de: | + | Example 1: |
| - | Here information about the version | + | -> ...; |
| + | -> A line break occurs after a maximum of 15 characters, without splitting individual words. The line spacing is 5 mm and a maximum | ||
| - | === Storing the Configurations === | + | Neuhofen a.d. Krems\\ |
| - | All configuration data is stored in a table named adm_plugin_preferences in Admidio database. Should not exist this table, it is created. | + | becomes\\ |
| + | Neuhofen a.d\\ | ||
| + | Krems\\ | ||
| + | |||
| + | Example 2: | ||
| + | |||
| + | -> ...;CL=13;WW=5;WM=3\\ | ||
| + | -> A line break occurs after 13 characters. The line spacing is 5 mm and a maximum of 3 lines are displayed. | ||
| + | |||
| + | This is a sample text\\ | ||
| + | becomes\\ | ||
| + | This is a sam\\ | ||
| + | ple text\\ | ||
| + | |||
| + | === Menu item Configuration-Sort === | ||
| + | Here, configurations can be sorted alphabetically and by XY coordinates. | ||
| + | |||
| + | === Menu item Configurations-Export/ | ||
| + | Configurations can be both exported and imported via export/ | ||
| + | (Example configurations are available at [[https:// | ||
| + | {{: | ||
| + | |||
| + | === Menu item System-Informations === | ||
| + | Information about the version and status of the plugin | ||
| + | {{: | ||
| + | |||
| + | === Menu item System-Options === | ||
| + | The options menu allows you to configure settings for displaying the created PDF documents and to uninstall the program. | ||
| + | {{: | ||
| + | |||
| + | == Max. PDF display == | ||
| + | Max. PDF display is the maximum number of pages a PDF document (when creating multiple documents) can have and still be displayed on the screen. If the number of pages exceeds | ||
| + | |||
| + | == Additional PDF Sizes == | ||
| + | In addition to the standard sizes A3, A4, etc., you can specify additional sizes for the PDF document to be generated. Separate multiple sizes with semicolons (e.g., 160x100; 120x60). | ||
| + | |||
| + | === Menu item System-Uninstallation == | ||
| + | Uninstalling the plugin will delete all configuration data created | ||
| + | {{: | ||
| + | {{: | ||
| - | Currently, in this table, the following configurations plugins are stored: | + | === Menu item Security-Access permission for preferences === |
| - | * Membership fee | + | In addition to the " |
| - | * Birthday list | + | |
| - | * Form Filler | + | |
| - | The table entries of plugins Form Filler all begin here with the letters " | + | === Saving the configuration === |
| + | All configuration data is stored in a table named adm_plugin_preferences in the Admidio database. If this table does not exist, it will be created. | ||
| - | === File readme.txt === | + | The table entries of the FormFiller |
| - | Current information regarding update or reinstall | + | |
| === Examples === | === Examples === | ||
| - | Below are some examples of filled formfiller | + | Below are some examples of PDF forms populated with FormFiller: |
| - | | | + | | Sample membership application: | The completed membership |
| |{{: | |{{: | ||
| - | | | + | | Sample |
| |{{: | |{{: | ||
| - | | | + | | Sample |
| |{{: | |{{: | ||