mozilla / pdf.js

PDF Reader in JavaScript
https://mozilla.github.io/pdf.js/
Apache License 2.0
48.32k stars 9.97k forks source link

Added text to PDF with Adobe typewriter tool, but not showing in FF #1973

Closed Twoleeland closed 8 years ago

Twoleeland commented 12 years ago

Hello,

I added some text with Adobe Acrobat typewriter tool to a PDF-file. This file, opened in FF with pdf.js, doesn't show the added text. In Adobe Reader/Acrobat it is shown right. Maybe a bug?

Regards

yurydelendik commented 12 years ago

Could you provide the link to or example PDF that's created by this tool?

Twoleeland commented 12 years ago

Here is the link: http://www.dj2lee.com/files/test.pdf

There must be green text in the table.

yurydelendik commented 12 years ago

Error console contains:

[08:25:21.861] Warning: TODO: unimplemented annotation type: FreeText @ http://www.dj2lee.com/files/test.pdf:30463

Looks like it's not a part of the page content itself, but "artificial" overlay on top of it.

Twoleeland commented 12 years ago

The Adobe Acrobat typewriter tool is a common tool, if you want to add text onto a PDF, like filling a form or a table as I did. ;) Free PDF-Viewer software like Foxit Reader can show this text, I add in with typewriter. I hope, someone can and will fix this issue in PDF.js in near future.

arturadib commented 12 years ago

Yes, annotations are very mainstream and users don't really care if the spec considers them separate. Related bugzilla bug:

https://bugzilla.mozilla.org/show_bug.cgi?id=741239

yurydelendik commented 11 years ago

The file above is absent. Here is file with the typewriter tool example http://mirrors.rit.edu/CTAN/macros/latex/contrib/pdfcomment/doc/example.pdf (ref by http://tug.ctan.org/tex-archive/macros/latex/contrib/pdfcomment/doc/pdfcomment.pdf)

marcosps commented 11 years ago

The log of web console is: [10:05:05.943] "Warning: TODO: unimplemented annotation type: FreeText" [10:05:06.073] "Warning: TODO: unimplemented annotation type: Line" [10:05:06.073] "Warning: TODO: unimplemented annotation type: FreeText" [10:05:06.073] "Warning: TODO: unimplemented annotation type: StrikeOut" [10:05:06.073] "Warning: TODO: unimplemented annotation type: Underline" [10:05:06.074] "Warning: TODO: unimplemented annotation type: Squiggly" [10:05:06.074] "Warning: TODO: unimplemented annotation type: Square" [10:05:06.074] "Warning: TODO: unimplemented annotation type: FreeText" [10:05:06.075] "Warning: TODO: unimplemented annotation type: Circle" [10:05:06.075] "Warning: TODO: unimplemented annotation type: PolyLine" [10:05:06.075] "Warning: TODO: unimplemented annotation type: Highlight" [10:05:06.093] "Warning: TODO: unimplemented annotation type: FreeText" [10:05:06.093] "Warning: TODO: unimplemented annotation type: Line" [10:05:06.094] "Warning: TODO: unimplemented annotation type: FreeText" [10:05:06.094] "Warning: TODO: unimplemented annotation type: StrikeOut" [10:05:06.094] "Warning: TODO: unimplemented annotation type: Underline" [10:05:06.094] "Warning: TODO: unimplemented annotation type: Squiggly" [10:05:06.095] "Warning: TODO: unimplemented annotation type: Square" [10:05:06.095] "Warning: TODO: unimplemented annotation type: FreeText" [10:05:06.095] "Warning: TODO: unimplemented annotation type: Circle" [10:05:06.095] "Warning: TODO: unimplemented annotation type: PolyLine" [10:05:06.095] "Warning: TODO: unimplemented annotation type: Highlight" [10:05:06.592] "Warning: TODO: unimplemented annotation type: Line" [10:05:06.592] "Warning: TODO: unimplemented annotation type: Polygon" [10:05:06.592] "Warning: TODO: unimplemented annotation type: Line" [10:05:06.595] "Warning: TODO: unimplemented annotation type: Highlight" [10:05:06.596] "Warning: TODO: unimplemented annotation type: Line" [10:05:06.596] "Warning: TODO: unimplemented annotation type: Polygon" [10:05:06.597] "Warning: TODO: unimplemented annotation type: Line"

2013/5/9 Yury Delendik notifications@github.com

The file above is absent. Here is file with the typewriter tool example http://mirrors.rit.edu/CTAN/macros/latex/contrib/pdfcomment/doc/example.pdf(ref by http://tug.ctan.org/tex-archive/macros/latex/contrib/pdfcomment/doc/pdfcomment.pdf )

— Reply to this email directly or view it on GitHubhttps://github.com/mozilla/pdf.js/issues/1973#issuecomment-17663089 .

Att,

Marcos Paulo de Souza Acadêmico de Ciencia da Computação - FURB - SC Github: https://github.com/marcosps/ "Uma vida sem desafios é uma vida sem razão" "A life without challenges, is a non reason life"

timvandermeij commented 11 years ago

Note that the PDF @yurydelendik linked is also missing some annotation icons...

timvandermeij commented 8 years ago

This is now tracked in #6810.