Research-IT-Swiss-TPH / pdf-form-filling-api

API to read, fill and flatten PDF forms.
https://143.198.242.211.sslip.io/
0 stars 2 forks source link

Test field types with pdftk #1

Closed tertek closed 10 months ago

tertek commented 1 year ago

check https://github.com/Research-IT-Swiss-TPH/pdftk-api/tree/master/docs @edenst-TPH

edenst-TPH commented 12 months ago

Hi Ekin Iich hänge fest bei pdftk generate_fdf mit "Error: No input files." dabei hat er das File vor der Nase, freen geht problemlos .. LG Stephan

From: "Ekin Tertemiz" @.> To: "Research-IT-Swiss-TPH/pdftk-api" @.> Cc: "Stephan Edenhofer" @.>, "Mention" @.> Date: 28.11.2023 12:47 Subject: [Research-IT-Swiss-TPH/pdftk-api] Test field types with pdftk (Issue #1)

check https://github.com/Research-IT-Swiss-TPH/pdftk-api/tree/master/docs @edenst-TPH — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>


This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify us immediately by reply e-mail and delete this message from your system.

tertek commented 12 months ago

Hallo @edenst-TPH

Kannst du bitte Terminal Eingabe und Ausgabe hier teilen? Sonst ist es schwer für mich, das Problem nachzuvollziehen

edenst-TPH commented 12 months ago

Hi Ekin

Jetzt gehts ("meine" Test-PDFs mit & ohne mehrere selected Items in ListBox

@.:/var/www/html/tph/edenst/data/01$ pdftk 03bfrmFilledFree.pdf dump_data_fields output 03bfrmFilledFree_dump.txt @.:/var/www/html/tph/edenst/data/01$ pdftk 03bfrmFilledFree.pdf generate_fdf output 03bfrmFilledFree_fdf.txt // multiSelect-Listbox, multiple Items selected @.***:/var/www/html/tph/edenst/data/01$ pdftk 03frmFilledFree.pdf generate_fdf output 03frmFilledFree_fdf.txt

"Dein" Pdf, mit gefülltem Image-Field geht auch wobei der Value blank bleibt

From: "Ekin Tertemiz" @.> To: "Research-IT-Swiss-TPH/pdftk-api" @.> Cc: "Stephan Edenhofer" @.>, "Mention" @.> Date: 30.11.2023 15:21 Subject: Re: [Research-IT-Swiss-TPH/pdftk-api] Test field types with pdftk (Issue #1)

Hallo @edenst-TPH Kannst du bitte Terminal Eingabe und Ausgabe hier teilen? Sonst ist es schwer für mich, das Problem nachzuvollziehen — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>


This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify us immediately by reply e-mail and delete this message from your system.

%FDF-1.2 %âãÏÓ 1 0 obj

<< /FDF << /Fields [ << /T (image) /V /

<< /T (check_box) /V /

<< /T (text_field_multi) /V (line 1\rline 2\rhttps://github.com/Research-IT-Swiss-TPH/pdftk-api/tree/master/docs)

<< /T (text_field) /V (single line)

<< /T (radio) /V /choice2 ]

endobj

trailer

<< /Root 1 0 R

%%EOF


FieldType: Text FieldName: text_field FieldFlags: 4096 FieldValue: single line FieldJustification: Left

FieldType: Text FieldName: text_field_multi FieldFlags: 4096 FieldValue: line 1 line 2 https://github.com/Research-IT-Swiss-TPH/pdftk-api/tree/master/docs FieldJustification: Left

FieldType: Button FieldName: check_box FieldFlags: 0 FieldJustification: Left FieldStateOption: Off FieldStateOption: Yes

FieldType: Button FieldName: radio FieldFlags: 49152 FieldValue: choice2 FieldJustification: Left FieldStateOption: choice1 FieldStateOption: Off FieldStateOption: choice2

FieldType: Button FieldName: image FieldFlags: 65536 FieldJustification: Left

%FDF-1.2 %âãÏÓ 1 0 obj

<< /FDF << /Fields [ << /T (edtName) /V (edenst)

<< /T (edtBirthday) /V (16.1.2023)

<< /T (rdiColor) /V /green

<< /T (lsbFood) /V /Salat,#20Laugengeb#e4ck#5d

<< /T (slcVehicle) /V (Velo) ]

endobj

trailer

<< /Root 1 0 R

%%EOF

%FDF-1.2 %âãÏÓ 1 0 obj

<< /FDF << /Fields [ << /T (edtName) /V (edenst)

<< /T (edtBirthday) /V (16.1.2023)

<< /T (rdiColor) /V /green

<< /T (lsbFood) /V (Salat)

<< /T (slcVehicle) /V (Velo) ]

endobj

trailer

<< /Root 1 0 R

%%EOF

tertek commented 12 months ago

Sobald Image Fields eingebunden werden, wird ein Cross Reference Block im FDF mitgeführt. Ich vermute, dass dieser beim Befüllen Probleme bereitet.