Summary: | Okular fails to print document with a long title | ||
---|---|---|---|
Product: | [Applications] okular | Reporter: | Olivier Diotte <olivier+kde> |
Component: | general | Assignee: | Okular developers <okular-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aacid, johu, stupor_scurvy343 |
Priority: | NOR | ||
Version First Reported In: | 0.16.5 | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/okular/5dfffec650c03a13684089d9e6c0a223adf16ce0 | Version Fixed In: | 4.11.5 |
Sentry Crash Report: | |||
Attachments: |
Videotron generic contract file
the said file |
Description
Olivier Diotte
2013-10-25 09:28:36 UTC
Created attachment 83115 [details]
Videotron generic contract file
Testing if uploaded files get f'ed up here too.
Alright, please download the PDF file from here, I do not know why, but Gentoo's bugtracker messes the file when I upload it. Tested again with 4.11.2 (Okular 0.17.2), I still get the same error. Ok, i'm going to need your help here, please get the file i will be attaching and edit it with a editor that doesn't destroy it (kwrite/kate won't work) (vi, nano seem to work) and change the line that says /Title (Les modalités et conditions de la présente Annexe s<90>applique à chaque contrat de service de télécommunications conclu par le Client, soit les contrats de services de télédistribution, Internet, de téléphonie par câble et de téléphonie sans fil) to make it shorter by one character each time until you stop getting the error. Can you do that for us? Created attachment 83116 [details]
the said file
Albert, I do not know if it was because you were puzzled that the title was only one character too long, but that's what it is (I thought I would save time by cutting the title dichotomically, boy was I wrong). Removing a single letter (shortening 'fil' to 'fi') doesn't give the error. Appending a letter to that file makes okular give the error again. TL;DR: One character less makes it work s/Appending a letter to that file/Appending a letter to the title of that file/ So, just to be sure, can you confirm that deleting one letter from the title makes it work? If so i'll try to make sure that when we create the job name it's not longer than that amount of characters. Yes, deleting one letter from the title makes it work. Info provided, back to unconfirmed pending i go back to somewhere i have a printer and can try to reproduce myself. Git commit 5dfffec650c03a13684089d9e6c0a223adf16ce0 by Albert Astals Cid. Committed on 15/12/2013 at 22:44. Pushed by aacid into branch 'KDE/4.11'. Make sure string passed to -J is no more than 255 bytes lpr refuses to print referencing http://tools.ietf.org/search/rfc2911#section-4.1.2 Unfortunately cutting at 255 bytes may mess up the end of the name, but oh well FIXED-IN: 4.11.5 M +2 -1 core/fileprinter.cpp http://commits.kde.org/okular/5dfffec650c03a13684089d9e6c0a223adf16ce0 |