Bug 307786 - Okular reports wrong name for file embedded in PDF
Summary: Okular reports wrong name for file embedded in PDF
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 0.15.2
Platform: Ubuntu Linux
: NOR minor
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-03 17:09 UTC by Sergio
Modified: 2013-05-07 20:00 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Bad embedded file name example (15.90 KB, application/pdf)
2013-04-27 02:55 UTC, Reuben Martin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergio 2012-10-03 17:09:37 UTC
To reproduce

1) Create a simple pdf file, say pdffile.pdf
2) Create a simple text file, say textfile.txt
3) Use pdftk to attach the text file to the pdf file
pdftk pdffile.pdf attach_files textfile.txt output pdffilewithattachment.pdf
4) open the resulting file with okular
5) note that okular correctly and with some emphasis warns that the pdf file has an attachment with a banner saying "This document has embedded files, click here to see them"
6) Click the link, a table appears. The name field is a couple of weird characters, rather than textfile.txt

With the same test, acrobat reader shows the name of the attachment correctly.

Reproducible: Always

Steps to Reproduce:
See description
Comment 1 Albert Astals Cid 2012-10-03 17:55:08 UTC
Please attach such a file
Comment 2 Albert Astals Cid 2013-03-10 21:53:28 UTC
No answer from the reporter in a long time, closing down the bug. If you can
provide what we asked for please reopen it.
Comment 3 Reuben Martin 2013-04-27 02:55:11 UTC
Created attachment 79483 [details]
Bad embedded file name example

I've run into this issue myself.

The pdf I'm uploading should have an attachment called foo.txt. File show up with correct name when using Adobe Reader. Is was embedded using pdftk.
Comment 4 Albert Astals Cid 2013-05-07 20:00:43 UTC
Ok, it's a poppler bug, will be fixed in next poppler release. Thanks for attaching the file