Hi Gilad,

so if I understand you correctly you are creating a PDF form with PDFBox, maybe 
prefill it and later on a user is filling out
the form interactively. Now some of the fields should contain a dynamic barcode 
with the value being calculated from some other
fields values. Is that correct? What's the end users application for filling 
out the PDF?

BR
Maruan
 
> The problem with that approach is that the image is static, while I want a
> field whose value can be changed (based on the value of another field).
> 
> On Tue, Feb 25, 2020 at 4:30 PM PDF Developer <pdf...@yahoo.com.invalid>
> wrote:
> 
> >  Hello Gilad,
> > 
> > I suppose you could define a form button and assign the appearance to be
> > an image file, generated perhaps from Barcode4J. I use that trick in
> > Acrobat Pro to add content to PDFs, content I have scanned to PDF.
> > 
> > I went down a different route and added barcodes as XObjects. Using the
> > Okapi library, I wrote a very simple (no text) PDF Renderer based on their
> > SVG one and took the output from that renderer and wrapped it as an XObject.
> > PDFDev
> > 
> >     On Tuesday, February 25, 2020, 3:09:57 PM GMT, Gilad Denneboom <
> > gilad.denneb...@gmail.com> wrote:
> > 
> >  Any ideas? I saw an old post of yours where you write that maybe this can
> > be done with Barcode4J, but I think that would just generate the barcode as
> > an image, not as a field.
> > 
> > On Sun, Feb 23, 2020 at 11:20 PM Gilad Denneboom <
> > gilad.denneb...@gmail.com>
> > wrote:
> > 
> > > DataMatrix
> > > 
> > > On Sun, Feb 23, 2020 at 3:41 PM Maruan Sahyoun <sahy...@fileaffairs.de>
> > > wrote:
> > > 
> > > > Hi Gilad,
> > > > 
> > > > what type of barcode would you like to generate?
> > > > 
> > > > BR
> > > > Maruan
> > > > 
> > > > > Hi all,
> > > > > 
> > > > > Does anyone have any pointers on how to create a Barcode field using
> > > > PDFBox?
> > > > > As far as I can see it's a text field, but with some special
> > properties,
> > > > > such as the PaperMetaData (PMD) object, and a calculation script with
> > > > > specific JS code for copying the value from other fields.
> > > > > I can handle the latter, but the former seems quite difficult to
> > > > implement,
> > > > > so any help would be appreciated.
> > > > > 
> > > > > Thanks in advance,
> > > > > Gilad
> > > > 
> > > > 
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
> > > > For additional commands, e-mail: users-h...@pdfbox.apache.org
> > > > 
> > > > 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org

Reply via email to