[Bug 1920730] Re: gstoraster: Ghostscript runs to long while converting djvu files to Xerox`s 3210 format

2021-05-14 Thread Till Kamppeter
Upstream bug report:

https://github.com/OpenPrinting/cups-filters/issues/354

Upstream pull request:

https://github.com/OpenPrinting/cups-filters/pull/371

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1920730

Title:
  gstoraster: Ghostscript runs to long while converting djvu files to
  Xerox`s 3210  format

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups-filters/+bug/1920730/+subscriptions

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

[Bug 1920730] Re: gstoraster: Ghostscript runs to long while converting djvu files to Xerox`s 3210 format

2021-05-14 Thread Till Kamppeter
Fixed upstream.

Valentyna, thank you for the sample file and the proposed patch. I have
modified the patch to simplify it and to make it working also without
PPD files.

Suraj also thanks to you for taking it upstream and posting your pull
request.


** Changed in: cups-filters (Ubuntu)
   Status: Incomplete => In Progress

** Bug watch added: github.com/OpenPrinting/cups-filters/issues #354
   https://github.com/OpenPrinting/cups-filters/issues/354

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1920730

Title:
  gstoraster: Ghostscript runs to long while converting djvu files to
  Xerox`s 3210  format

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups-filters/+bug/1920730/+subscriptions

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

[Bug 1920730] Re: gstoraster: Ghostscript runs to long while converting djvu files to Xerox`s 3210 format

2021-05-14 Thread Till Kamppeter
Thank you very much for the sample file.

I have printed it into a PDF file from evince to be able to do further
tests manually on the command line.

This way I have done some tests and found out that adding
"-dDEVICEWIDTHPOINTS=XXX -dDEVICEHEIGHTPOINTS=YYY" with any non-zero
values for width and height works (giving the correct page count), small
values make it even faster. So for now the best command line is

gs -q -dNOPAUSE -dBATCH -sDEVICE=bbox -dDEVICEWIDTHPOINTS=1
-dDEVICEHEIGHTPOINTS=1 sample2.pdf 2>&1 | grep -c HiResBoundingBox

and this command line is independent of the PPD file.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1920730

Title:
  gstoraster: Ghostscript runs to long while converting djvu files to
  Xerox`s 3210  format

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups-filters/+bug/1920730/+subscriptions

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

[Bug 1920730] Re: gstoraster: Ghostscript runs to long while converting djvu files to Xerox`s 3210 format

2021-05-14 Thread Valentyna
Example file to test.

** Attachment added: "sample2.djvu"
   
https://bugs.launchpad.net/ubuntu/+source/cups-filters/+bug/1920730/+attachment/5497392/+files/sample2.djvu

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1920730

Title:
  gstoraster: Ghostscript runs to long while converting djvu files to
  Xerox`s 3210  format

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups-filters/+bug/1920730/+subscriptions

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

[Bug 1920730] Re: gstoraster: Ghostscript runs to long while converting djvu files to Xerox`s 3210 format

2021-05-14 Thread Valentyna
I open evince (simple document viewer on Ubuntu), than I press Ctrl+P and 
Print. My djvu file has 158 pages. Gstoraster converts it to 3210 format more 
than 15 minutes. It does not matter which djvu file to print.
My patch still solves the problem, execution is very fast.
I try to put "-dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792" and it also 
works, but I don`t want to "hardcode" this values. I want to take this values 
dynamically."if (ppd)" is still present in your code, I just put it as you did.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1920730

Title:
  gstoraster: Ghostscript runs to long while converting djvu files to
  Xerox`s 3210  format

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups-filters/+bug/1920730/+subscriptions

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

[Bug 1920730] Re: gstoraster: Ghostscript runs to long while converting djvu files to Xerox`s 3210 format

2021-05-13 Thread Till Kamppeter
Valentyna, and anyone else affected, could you attach a sample djvu file
and also instructions how you print the djvu file, so that we can
reproduce the problem and perhaps improve the patch somewhat? This is
especially important as we want to carry on the CUPS filters when CUPS
will not use PPD files any more.

As the Ghostscript call you are modifying does not more than counting
the pages (there is another one for the actual rasterization) could you
also try to modify the patch by not calling cupsRasterInterpretPPD() for
extracting the default page size from the PPD and instead, simply insert
arbitrary height and width, like "-dDEVICEWIDTHPOINTS=612
-dDEVICEHEIGHTPOINTS=792"? This would allow you to remove the "if (ppd)"
and so your fix would also work for using the filter without PPD.

Could you try this out? Do you still get fast execution and correct page
counts (= filter outputs all pages)?

** Changed in: cups-filters (Ubuntu)
   Status: Confirmed => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1920730

Title:
  gstoraster: Ghostscript runs to long while converting djvu files to
  Xerox`s 3210  format

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups-filters/+bug/1920730/+subscriptions

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

[Bug 1920730] Re: gstoraster: Ghostscript runs to long while converting djvu files to Xerox`s 3210 format

2021-03-22 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: cups-filters (Ubuntu)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1920730

Title:
  gstoraster: Ghostscript runs to long while converting djvu files to
  Xerox`s 3210  format

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups-filters/+bug/1920730/+subscriptions

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