[Desktop-packages] [Bug 1564249] Re: Cannot print a PDF with AcroForms using fit-to-page

2019-02-02 Thread Till Kamppeter
Yes, the QPDF task is now done, too. Thank for all the hard work on this, Jay. ** Changed in: qpdf (Ubuntu) Status: Triaged => Fix Released -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to cups-filters in Ubuntu.

[Desktop-packages] [Bug 1564249] Re: Cannot print a PDF with AcroForms using fit-to-page

2019-02-02 Thread Jay Berkenbilt
I think this bug can be closed now, right? -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to cups-filters in Ubuntu. https://bugs.launchpad.net/bugs/1564249 Title: Cannot print a PDF with AcroForms using fit-to-page Status in

[Desktop-packages] [Bug 1564249] Re: Cannot print a PDF with AcroForms using fit-to-page

2017-09-10 Thread Launchpad Bug Tracker
This bug was fixed in the package cups-filters - 1.17.4-0ubuntu1 --- cups-filters (1.17.4-0ubuntu1) artful; urgency=medium * New upstream release - pdftopdf: If the input PDF file contains an interactive form, flatten it to static PDF so that further manipulation,

[Desktop-packages] [Bug 1564249] Re: Cannot print a PDF with AcroForms using fit-to-page

2017-09-10 Thread Till Kamppeter
For the time being (cups-filters 1.17.4) I have now applied a solution where pdftopdf detects PDF forms using QPDF (thanks to Tobias Hoffmann, smilingthax) and if there is a form uses and external utility for the flattening, preferrably pdftocairo, if not present, Ghostscript. After the flattening

[Desktop-packages] [Bug 1564249] Re: Cannot print a PDF with AcroForms using fit-to-page

2017-09-10 Thread Till Kamppeter
** Changed in: cups-filters (Ubuntu) Status: Triaged => Fix Committed -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to cups-filters in Ubuntu. https://bugs.launchpad.net/bugs/1564249 Title: Cannot print a PDF with AcroForms

[Desktop-packages] [Bug 1564249] Re: Cannot print a PDF with AcroForms using fit-to-page

2016-08-22 Thread Jay Berkenbilt
I'll have to study it. Sorry, I have been quite starved for time to work on qpdf. I would like to fix this, but I can't commit to a timeframe. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to qpdf in Ubuntu.

[Desktop-packages] [Bug 1564249] Re: Cannot print a PDF with AcroForms using fit-to-page

2016-08-21 Thread Till Kamppeter
Jay, what about implementing PDF form flattening in QPDF? As suggested in comment #13? -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to qpdf in Ubuntu. https://bugs.launchpad.net/bugs/1564249 Title: Cannot print a PDF with AcroForms

[Desktop-packages] [Bug 1564249] Re: Cannot print a PDF with AcroForms using fit-to-page

2016-04-04 Thread Dmitry
The trick with ps2pdf works fine. I am able to convert to a static PDF and then print it with fit-to-page. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to qpdf in Ubuntu. https://bugs.launchpad.net/bugs/1564249 Title: Cannot print a

[Desktop-packages] [Bug 1564249] Re: Cannot print a PDF with AcroForms using fit-to-page

2016-04-01 Thread Till Kamppeter
Jay, would you be able to add PDF form flattening functionality like implemented in https://gist.github.com/jribble/beddf7620536939f88db into QPDF? Or is a real PDF interpreter (Ghostscript, Poppler, MuPDF) needed for this? -- You received this bug notification because you are a member of

[Desktop-packages] [Bug 1564249] Re: Cannot print a PDF with AcroForms using fit-to-page

2016-04-01 Thread Till Kamppeter
Jay, QPDF could be used for identifying whether a file contains forms or not. See https://bugs.linuxfoundation.org/show_bug.cgi?id=1315 nad there comment #9 with the link to https://github.com/smilingthax/pdfformflatten This code identifies PDFs with forms but does not actually flatten them.

[Desktop-packages] [Bug 1564249] Re: Cannot print a PDF with AcroForms using fit-to-page

2016-04-01 Thread Jay Berkenbilt
If I'm reading this correctly, it looks like there's no short-term change to qpdf required. Is that correct? I'm thinking doing this type of flatting in qpdf is probably out of scope, but in any case, I wouldn't have time to work on it any time soon. I haven't studied interactive forms enough to

[Desktop-packages] [Bug 1564249] Re: Cannot print a PDF with AcroForms using fit-to-page

2016-04-01 Thread Till Kamppeter
I meant ps2pdf, as ps2pdf generates PDF. It was originally made for converting PostScript to PDF, but it works also with PDF as input as Ghostscript accepts also PDF as input. This way it converts PDF (non- static) to PDF (static). So use ps2pdf as shown in my comments above. -- You received

[Desktop-packages] [Bug 1564249] Re: Cannot print a PDF with AcroForms using fit-to-page

2016-04-01 Thread Dmitry
I'll try pdf2ps (did you mean that?). I cannot try any of X11 applications since X11 is not installed there and I have no control over that. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to qpdf in Ubuntu.

[Desktop-packages] [Bug 1564249] Re: Cannot print a PDF with AcroForms using fit-to-page

2016-04-01 Thread Till Kamppeter
I have done the tests of my previous comment with the attached file and printing this way works, meaning that both evince and Ghostscript re- generate the PDF file for printing, so that a static file is sent. A point of improvement for cups-filters would be here to let pdftopdf somehow recognize

[Desktop-packages] [Bug 1564249] Re: Cannot print a PDF with AcroForms using fit-to-page

2016-04-01 Thread Till Kamppeter
Dmitry, can you print your filled-form PDF when opening it in a PDF viewer (evince, some KDE viewer, ...) set fit-to-page in the printing options in the print dialog and print? The viewers usually re-generate the PDF in a simpler way with the interactive forms replaced by static PDF content and

[Desktop-packages] [Bug 1564249] Re: Cannot print a PDF with AcroForms using fit-to-page

2016-04-01 Thread Tobias Hoffmann
For example, here some java/PDFBox-based implementation of how to flatten simple forms: https://gist.github.com/jribble/beddf7620536939f88db (IIRC there are more form elements than those 2-3 handled here(?)). Note that QPDF does not have something like the PDAcroForm class (and its friends)

[Desktop-packages] [Bug 1564249] Re: Cannot print a PDF with AcroForms using fit-to-page

2016-04-01 Thread Tobias Hoffmann
See https://bugs.linuxfoundation.org/show_bug.cgi?id=1315 why this cannot work. And QPDF won't be able to do anything about it, either... There might even be PDF-capable printers on the market (i.e. where the rasterization is not done by gs / poppler on the host), where the form content will not

[Desktop-packages] [Bug 1564249] Re: Cannot print a PDF with AcroForms using fit-to-page

2016-03-31 Thread Dmitry
Till Kamppeter (till-kamppeter), I tested in Xenial too (see the head message), and it has the same issue. However I cannot use Xenial since I cannot upgrade from 14.04 for some specific reasons. -- You received this bug notification because you are a member of Desktop Packages, which is

[Desktop-packages] [Bug 1564249] Re: Cannot print a PDF with AcroForms using fit-to-page

2016-03-31 Thread Till Kamppeter
Most probably this is a QPDF problem. QPDF is the PDF processing library used by pdftopdf, the filter which processes fit-to-page. Created an upstream bug report on QPDF: https://github.com/qpdf/qpdf/issues/72 -- You received this bug notification because you are a member of Desktop Packages,

[Desktop-packages] [Bug 1564249] Re: Cannot print a PDF with AcroForms using fit-to-page

2016-03-31 Thread Till Kamppeter
Can you try the newest Ubuntu version (life image on USB or DVD)? Does the problem persist there? ** Changed in: cups (Ubuntu) Status: New => Incomplete ** Package changed: cups (Ubuntu) => cups-filters (Ubuntu) ** Also affects: qpdf (Ubuntu) Importance: Undecided Status: New

[Desktop-packages] [Bug 1564249] Re: Cannot print a PDF with AcroForms using fit-to-page

2016-03-31 Thread Dmitry
** Description changed: Using KUbuntu 14.04. I am trying to print the attached PDF with filled forms (AcroForms) with the following command: lpr -o fit-to-page PDFForm3.pdf But my Samsung ML-1210 prints the document with empty forms. If I omit -o fit-to-page then all the forms