Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fillpdf
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal.org
fillpdf
Commits
cb6cd5eb
"ist-git@git.uwaterloo.ca:wcms/uw_wcms_gesso.git" did not exist on "a028c6546b0a55e9a06fa07913ea98ae16a09522"
Commit
cb6cd5eb
authored
16 years ago
by
Tyler Renelle
Browse files
Options
Downloads
Patches
Plain Diff
*** empty log message ***
parent
f75e3369
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.txt
+1
-44
1 addition, 44 deletions
README.txt
with
1 addition
and
44 deletions
README.txt
+
1
−
44
View file @
cb6cd5eb
-- SUMMARY --
This module populates existing PDF forms with token-specified content. Think of TurboTax or FAFSA, where
the user is guided through many webforms of data-collection and finally prints out those data into PDFs of
specific formats. In these situations (common when working with government agencies), a PDF is provided
by an agency and its format is strict. Therefore, unlike print.module, which uses dompdf to print
a page as it looks in print-view, this module requires an existing PDF with form-fields, and will populate
those form-fields with data.
-- Dependencies --
Content & Token
-- INSTALLATION --
Install via sites/all/modules > Other > Fill PDF
-- USAGE --
This module requires that you setup links of a specific format in order to download the PDFs (see the last step)
--- setting things up ---
* Go to /admin/content/fillpdf
* Click the "Add PDF" tab
* Enter the PDF's URL, and a title for this form. Make sure the PDF document isn't encrypted. If it is
encrypted and non copy-righted (typical of government PDFs), then try a decrypting tool like "Advanced
PDF Password Recovery." If you upload an encrypted PDF, you will have empty PDFs when you attempt to
download your submissions.
* Either click "Generate Fields From PDF" or "Add Field" to get fields into the form
* Add field values, mostly you'll be adding tokens
-- downloading the PDF ---
When you want to print your form to PDF, you need to navigate to /fillpdf?fid=10&nid=10
where fid is the form id of the form you've just created, and nid is the node id whose content you'll
be pulling via tokens. You can obtain fid from the URL when editing your form. It will look like:
http://localhost/admin/content/fillpdf/form/FID/...
-- iText Servlet --
This module depends on iText. Currently, I have a servlet installed on my home server that handles the
iText functions via remote calls. If your PDF needs are intensive, you're likely to crash my server; therefore,
please email me and I'll give you the WAR so you can install the servlet on your own server and tell you what
changes you need to make to the module to get that working.
I'd like to move away from servlets and get the PDF functionality into PHP, but there doesn't seem to be any
PHP libraries that support PDF form-field parsing or XFDF-to-PFD merging and flattening, both which are necessary
for this module to work. If anyone knows of a solution, please email me.
-- CONTACT --
tylerrenelle@gmail.com
\ No newline at end of file
http://drupal.org/node/369990
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment