Bug 33199 (forms_render) - poppler: can't render text in PDF form
Summary: poppler: can't render text in PDF form
Status: RESOLVED MOVED
Alias: forms_render
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-17 01:01 UTC by Török Edwin
Modified: 2018-08-21 10:32 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
confirmare.pdf (339.38 KB, application/pdf)
2011-01-17 01:01 UTC, Török Edwin
Details
screenshot of xpdf, all fields are white, not text shown (19.17 KB, image/png)
2011-01-17 01:05 UTC, Török Edwin
Details
how it should look like (83.76 KB, image/png)
2011-01-17 01:05 UTC, Török Edwin
Details

Description Török Edwin 2011-01-17 01:01:43 UTC
Created attachment 42114 [details]
confirmare.pdf

xpdf/okular/pdfedit can't render the text from this form:
http://static.anaf.ro/static/10/Anaf/formulare/confirmare.pdf

I wouldn't expect the form part to work perfectly (it probably uses some Adobe-specific behaviour), but I would expect to see at least the text.

See screenshots on how it looks now, and how it should look like.

libpoppler version 0.12.4-1.2
xpdf version 3.02-12
okular version 4:4.4.5-2

This form is needed to sign up for Romania's online fiscal statements system.
It would be nice if free software could be used to see and fill out the form.
Comment 1 Török Edwin 2011-01-17 01:05:15 UTC
Created attachment 42115 [details]
screenshot of xpdf, all fields are white, not text shown
Comment 2 Török Edwin 2011-01-17 01:05:30 UTC
Created attachment 42116 [details]
how it should look like
Comment 3 Török Edwin 2011-01-17 01:39:17 UTC
Looks like the PDF uses widgets:

/Subtype/Widget/TU(Cod Numeric Personal)/Parent 30 0 R/MaxLen 13/F 4/P 42 0 R/Q 0/T(\xfe\xff\x00C\x00N\x00P\x00[\x000\x00])/DA(/TimesNewRomanPSMT 12.00 Tf 0 g)/FT/Tx/Type/Annot/MK<<>>>><</Rect[82.159 594.272 567.434 612.272]

It also seems to have a tooltip and some javascript to validate the field:
<assist\n><toolTip\n>Cod Numeric Personal</toolTip\n></assist\n><value\n><text maxChars="13"\n/></value\n><event activity="exit"\n><script contentType="application/x-javascript"\n>\nvar cn ;\nif (!this.isNull &amp;&amp; !Utile.verifCNP(this.rawValue))\n{\t\n\tthis.rawValue = "";\n\tform1.body.Confirmare.CNP2.rawValue="";\n\tapp.alert("CNP incorect.");\n}\nelse \n{\n    variables.Utile.umple_CNP2();\n}\n\n</script\n></event\n></field\n
Comment 4 Török Edwin 2011-01-17 12:30:17 UTC
FWIW I tried latest poppler 0.16, and poppler_qt4viewer has the same issue (bug or lack of feature to render /Widget).
Comment 5 Alexis-Emmanuel Haeringer 2011-04-15 16:43:09 UTC
Hello,
I can confirm with poppler-utils (0.16.3-1) okular 4:4.4.5-2,

But please don't be a desperate dev ! We can observe the _same look_ in acrobat 9 ;) 
acroread 9.4.2-0.0 sid     www.debian-multimedia.org
(test on linux version only)

And please note that the file confirmare.pdf, the producer is the buggy Adobe LiveCycle Designer ES 8.1
cf http://help.adobe.com/en_US/livecycle/8.2/lcdesigner_releasenotes.htm

Best regards
Comment 6 Brad Hards 2011-04-15 17:31:58 UTC
AH: why are you changing the heading to have so many strange fields? 

There is a keywords field if you insist on adding tags.

If you don't have a very good reason, please change it back.
Comment 8 Albert Astals Cid 2012-08-16 07:14:27 UTC
Reccaddos don't hijack other people bugs, in this one it says it fails both in okular and Adobe Reader while yours works correctly in Adobe Reader, so it's obviously a different bug. Please open a new issue.
Comment 9 GitLab Migration User 2018-08-21 10:32:35 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/249.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.