[Bug 544636] Re: pdftopdf produces non-standard-conform pdf files.

2010-06-19 Thread Actiu informatica
Please, a link or explanation about how to apply the patch to an Ubuntu
9.10 system?

-- 
pdftopdf produces non-standard-conform pdf files.
https://bugs.launchpad.net/bugs/544636
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 544636] Re: pdftopdf produces non-standard-conform pdf files.

2010-03-24 Thread Launchpad Bug Tracker
This bug was fixed in the package cups - 1.4.2-10

---
cups (1.4.2-10) unstable; urgency=low

  [ Till Kamppeter ]
  * debian/local/filters/pdf-filters/pdftopdf/P2PDoc.cxx: Output of the
pdftopdf filter was not completely complying with the Adobe specs for PDF.
Thanks to Duncan Lock for finding and reporting the bug and supplying a
fix (LP: #544636).

  [ Martin Pitt ]
  * Add no-conffile-timestamp.dpatch: Disable time stamps in conffiles, to
avoid ever-changing files in /etc. Thanks Joey Hess!
(Rejected upstream, STR#3067; Closes: #549673)
  * CVE-2010-0393.dpatch: Replace with patch from upstream, and tag
header. (Closes: #572940)
  * debian/local/filters/pdf-filters/*: Disable call of setErrorFunction() on
armel for now, since armel's libpoppler is broken. This works around
#575262, so that cups can finally go into testing again (which is more
than overdue).

cups (1.4.2-9.1) unstable; urgency=high

  * Non-maintainer upload by the Security Team.
  * Fix loading of localized message string from arbitrary files
through exporting the LOCALEDIR environment variable when lppasswd
has a setuid bit set (CVE-2010-0393).
 -- Martin Pitt martin.p...@ubuntu.com   Wed, 24 Mar 2010 16:50:56 +0100

** Changed in: cups (Ubuntu)
   Status: Fix Committed = Fix Released

** CVE added: http://www.cve.mitre.org/cgi-
bin/cvename.cgi?name=2010-0393

-- 
pdftopdf produces non-standard-conform pdf files.
https://bugs.launchpad.net/bugs/544636
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 544636] Re: pdftopdf produces non-standard-conform pdf files.

2010-03-23 Thread Johann Felix Soden
The bug is in pdftopdf from the cups package. It wrongly writes the document 
information dictionary  as a direct object.
The attached patch should solve the problem.

** Patch added: pdftopdf_use_indirect_object_for_document_info_dict.patch
   
http://launchpadlibrarian.net/41721650/pdftopdf_use_indirect_object_for_document_info_dict.patch

-- 
pdftopdf produces non-standard-conform pdf files.
https://bugs.launchpad.net/bugs/544636
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 544636] Re: pdftopdf produces non-standard-conform pdf files.

2010-03-23 Thread Brian Murray
** Tags added: patch

-- 
pdftopdf produces non-standard-conform pdf files.
https://bugs.launchpad.net/bugs/544636
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 544636] Re: pdftopdf produces non-standard-conform pdf files.

2010-03-23 Thread Till Kamppeter
Johann Felix Soden, thank you for the patch. I have tried it, but after
patching pdftopdf pdftopdf dumps core:

cat ~/ghostscript/gpl/testfiles/CityMap-evince.pdf |
PPD=/etc/cups/ppd/pxl.ppd /usr/lib/cups/filter/pdftopdf 1 1 1 1  
~/ghostscript/gpl/testfiles/CityMap-evince-pdftopdf2.pdf*** glibc
detected *** /usr/lib/cups/filter/pdftopdf: free(): invalid pointer:
0x7fefeed46b88 ***

It always dumps core, independent of the input file and the PPD file.
The backtrace in gdb is:

#0  0x7f3aa7c20a85 in raise () from /lib/libc.so.6
#1  0x7f3aa7c24520 in abort () from /lib/libc.so.6
#2  0x7f3aa7c5a3e7 in ?? () from /lib/libc.so.6
#3  0x7f3aa7c64406 in ?? () from /lib/libc.so.6
#4  0x7f3aa7c6ac93 in free () from /lib/libc.so.6
#5  0x7f3aa89b3ad9 in Dict::~Dict() () from /usr/lib/libpoppler.so.5
#6  0x7f3aa8f29690 in P2PDoc::output (this=value optimized out, 
str=0x7f3aaa484ba0, deviceCopies=value optimized out, 
deviceCollate=value optimized out) at P2PDoc.cxx:124
#7  0x7f3aa8f285cb in main (argc=value optimized out, 
argv=value optimized out) at pdftopdf.cxx:716

I am on Lucid 64-bit.

-- 
pdftopdf produces non-standard-conform pdf files.
https://bugs.launchpad.net/bugs/544636
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 544636] Re: pdftopdf produces non-standard-conform pdf files.

2010-03-23 Thread Duncan Lock
Doing

dpkg -l cups cups-pdf

gives me:

||/ Name   VersionDescription
+++-==-==-
ii  cups   1.4.1-5ubuntu2 Common UNIX Printing System(tm) - server
ii  cups-pdf   2.5.0-8ubuntu1 PDF printer for CUPS

Oh, I'm also on 64bit, Karmic, btw.

-- 
pdftopdf produces non-standard-conform pdf files.
https://bugs.launchpad.net/bugs/544636
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 544636] Re: pdftopdf produces non-standard-conform pdf files.

2010-03-23 Thread Johann Felix Soden
Thanks, Till Kamppeter, for testing the patch! (Testing is really needed - I 
have not much experience with poppler).
I found the error: some missing strdup commands. The corrected patch is 
attached. 


** Patch added: pdftopdf_use_indirect_object_for_document_info_dict_V2.patch
   
http://launchpadlibrarian.net/41747553/pdftopdf_use_indirect_object_for_document_info_dict_V2.patch

-- 
pdftopdf produces non-standard-conform pdf files.
https://bugs.launchpad.net/bugs/544636
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 544636] Re: pdftopdf produces non-standard-conform pdf files.

2010-03-23 Thread Till Kamppeter
The patch works now, thank you.


** Changed in: cups (Ubuntu)
   Status: New = In Progress

-- 
pdftopdf produces non-standard-conform pdf files.
https://bugs.launchpad.net/bugs/544636
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 544636] Re: pdftopdf produces non-standard-conform pdf files.

2010-03-23 Thread Till Kamppeter
Committed to Debian/Ubuntu BZR repository of CUPS. Fix will be in the
next CUPS package of Lucid.

** Changed in: cups (Ubuntu)
   Status: In Progress = Fix Committed

** Changed in: cups (Ubuntu)
 Assignee: (unassigned) = Martin Pitt (pitti)

-- 
pdftopdf produces non-standard-conform pdf files.
https://bugs.launchpad.net/bugs/544636
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 544636] Re: pdftopdf produces non-standard-conform pdf files.

2010-03-23 Thread Martin Pitt
Till, I don't see the commit. Did you perhaps forget to push or so?

** Changed in: pdftk (Ubuntu)
   Status: Confirmed = Invalid

-- 
pdftopdf produces non-standard-conform pdf files.
https://bugs.launchpad.net/bugs/544636
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 544636] Re: pdftopdf produces non-standard-conform pdf files.

2010-03-23 Thread Till Kamppeter
I have done the push now, this bzr push is really my every-time-
forgetter.

-- 
pdftopdf produces non-standard-conform pdf files.
https://bugs.launchpad.net/bugs/544636
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 544636] Re: pdftopdf produces non-standard-conform pdf files.

2010-03-23 Thread Johann Felix Soden
Thanks for accepting the patch!

The bug with non-conform pdf files in pdftk is still not really solved
yet: There should be a clear error message why pdftk fails.


PS: There is a a small mistake in the bzr commit: Duncan Lock found and 
reported this bug. I am responsible for the patch.

-- 
pdftopdf produces non-standard-conform pdf files.
https://bugs.launchpad.net/bugs/544636
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 544636] Re: pdftopdf produces non-standard-conform pdf files.

2010-03-23 Thread Duncan Lock
Thanks for your help guys - really appreciated the first class service!!
:)

Is there any way to get this updated version of CUPS if I'm running Karmic,
except compiling it myself? Is this likely to get backported, or upstreamed,
or whatnot? Is there anything I can do to help this process?

Thanks,
Dunc

On 23 March 2010 15:22, Johann Felix Soden joh...@gmx.de wrote:

 Thanks for accepting the patch!

 The bug with non-conform pdf files in pdftk is still not really solved
 yet: There should be a clear error message why pdftk fails.


 PS: There is a a small mistake in the bzr commit: Duncan Lock found and
 reported this bug. I am responsible for the patch.

 --
 pdftopdf produces non-standard-conform pdf files.
 https://bugs.launchpad.net/bugs/544636
 You received this bug notification because you are a direct subscriber
 of the bug.


-- 
pdftopdf produces non-standard-conform pdf files.
https://bugs.launchpad.net/bugs/544636
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs