• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

import data into pdf file

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello. I'm am just learning java, but have a very specific job I need to do. I have a three up W2 form in PDF. I want to write a java program that will import Payroll data from an ascii file (maybe CSV) into the appropriate fields in the PDF file and print the completed forms. I have been trying to use PDFBox, but apparently don't understand enough to comprehend what it is. I can find no documentation on it either. Can someone point me in the right direction. I am lost and wandering at this time. Thank you for your time.
 
Bartender
Posts: 543
4
Netbeans IDE Redhat Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
iText is what you're looking for.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Start with the http://pdfbox.apache.org/apidocs/org/apache/pdfbox/examples/fdf/SetField.html and http://pdfbox.apache.org/apidocs/org/apache/pdfbox/examples/fdf/PrintFields.html examples, the source code for which is part of PDFBox

iText is what you're looking for.


iText is cool, but keep in mind that the version on SourceForge is licensed under the Affero GPL, which makes it unsuitable for most business purposes. You either need to license it, or use the old iText 2 (which probably does everything you need done).
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic