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
>>
>>
  

Reply via email to