That is the original form.

On Tue, 3 Jun 2025, 21:36 sahy...@fileaffairs.de, <sahy...@fileaffairs.de>
wrote:

> Hello
>
>
> Am Dienstag, dem 03.06.2025 um 17:47 +0200 schrieb Ulf Dittmer:
> > Hello-
> >
> > When trying to fill in values into a form, I'm encountering the error
> > shown
> > below, which means nothing to me. It's not just for the first field
> > it
> > encounters - if I comment that out, it happens for the next field.
> >
> > The form (an official government PDF) doesn't seem different from any
> > number of other ones we are successfully filling out; it can be found
> > at
> > https://ulfdittmer.com/pdfbox/Guide_BW.pdf
>
> is that the original form or after setting the font?
>
> BR
> Maruan
>
> >
> > The source code is also similar to other codes we use for other
> > forms:
> > https://ulfdittmer.com/pdfbox/StreamQRApplForm.java
> >
> > It uses the following font, which is also standard
> > https://ulfdittmer.com/pdfbox/Arial.ttf
> >
> > Are we doing something wrong? Is the PDF weird? Is there a way around
> > this
> > issue?
> >
> > Many thanks in advance for any help you can supply.
> >
> > Ulf
> >
> > Jun 03, 2025 5:21:00 PM org.apache.pdfbox.pdfparser.BaseParser
> > parseCOSDictionaryNameValuePair
> > WARNING: Empty COSName at offset 940
> > Exception in thread "main" java.io.IOException: Could not process
> > default
> > appearance string ' 13 0 g' for field 'Name ggf Geburtsname': Missing
> > operands for set non stroking color operator [COSInt{13}, COSInt{0}]
> > at
> > org.apache.pdfbox.pdmodel.interactive.form.AppearanceGeneratorHelper.
> > <init>(AppearanceGeneratorHelper.java:123)
> > at
> > org.apache.pdfbox.pdmodel.interactive.form.PDTextField.constructAppea
> > rances(PDTextField.java:261)
> > at
> > org.apache.pdfbox.pdmodel.interactive.form.PDTerminalField.applyChang
> > e(PDTerminalField.java:209)
> > at
> > org.apache.pdfbox.pdmodel.interactive.form.PDTextField.setValue(PDTex
> > tField.java:218)
> > at StreamQRApplForm.setField(StreamQRApplForm.java:67)
> > at StreamQRApplForm.main(StreamQRApplForm.java:28)
> > Caused by: java.io.IOException: Missing operands for set non stroking
> > color
> > operator [COSInt{13}, COSInt{0}]
> > at
> > org.apache.pdfbox.pdmodel.interactive.form.PDDefaultAppearanceString.
> > processSetFontColor(PDDefaultAppearanceString.java:202)
> > at
> > org.apache.pdfbox.pdmodel.interactive.form.PDDefaultAppearanceString.
> > processOperator(PDDefaultAppearanceString.java:133)
> > at
> > org.apache.pdfbox.pdmodel.interactive.form.PDDefaultAppearanceString.
> > processAppearanceStringOperators(PDDefaultAppearanceString.java:105)
> > at
> > org.apache.pdfbox.pdmodel.interactive.form.PDDefaultAppearanceString.
> > <init>(PDDefaultAppearanceString.java:87)
> > at
> > org.apache.pdfbox.pdmodel.interactive.form.PDVariableText.getDefaultA
> > ppearanceString(PDVariableText.java:105)
> > at
> > org.apache.pdfbox.pdmodel.interactive.form.AppearanceGeneratorHelper.
> > <init>(AppearanceGeneratorHelper.java:117)
> > ... 5 more
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
> For additional commands, e-mail: users-h...@pdfbox.apache.org
>
>

Reply via email to