Bug 232382 - setting custom page size is impossible
Summary: setting custom page size is impossible
Status: RESOLVED UPSTREAM
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-PrintCreator (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-27 19:18 UTC by Anders Lund
Modified: 2017-07-03 18:43 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 1.3.0


Attachments
proof (35.62 KB, image/jpeg)
2010-03-28 18:10 UTC, Anders Lund
Details
now in english (32.02 KB, image/jpeg)
2010-03-28 19:50 UTC, Anders Lund
Details
custom is disabled if i choose a HP printer (70.01 KB, image/jpeg)
2010-03-28 20:06 UTC, Angelo Naselli
Details
Custom is enabled if i choose PDF printer (88.71 KB, image/jpeg)
2010-03-28 20:07 UTC, Angelo Naselli
Details
default print dialog has the correct media list (38.75 KB, image/jpeg)
2010-03-28 21:39 UTC, Anders Lund
Details
as you can see it works here (91.40 KB, image/jpeg)
2010-03-28 23:34 UTC, Angelo Naselli
Details
kipi wizard page settings (31.66 KB, image/jpeg)
2010-03-29 00:26 UTC, Anders Lund
Details
print wizard printer properties (45.82 KB, image/jpeg)
2010-03-29 00:26 UTC, Anders Lund
Details
It's ok here (218.69 KB, image/jpeg)
2010-03-29 00:36 UTC, Angelo Naselli
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anders Lund 2010-03-27 19:18:06 UTC
Version:           unknown (using 4.4.1 (KDE 4.4.1), Chakra)
Compiler:          gcc
OS:                Linux (x86_64) release 2.6.32-ARCH

When trying to print on a 10x15cm photo paper, i experience that when selecting "custom" page size, the spin boxes to set the size are not enabled, making this task impossible to achieve.
Comment 1 caulier.gilles 2010-03-27 19:49:23 UTC
Which kipi-plugins version you use ?

Gilles Caulier
Comment 2 Anders Lund 2010-03-27 20:54:17 UTC
I use kipi-plugins 1.1.0, which is the newest version available in the arch 
repositories.
Comment 3 Anders Lund 2010-03-27 21:25:56 UTC
The page properties dialog looks like the one from the standard print dialog, 
but when using the standard print dialog this is working.
Comment 4 Angelo Naselli 2010-03-28 15:32:15 UTC
do you mean using printimages plugin?
I believe we can't do anything if so, that depends on printer driver as far as i know. Try chosing PDF printer custom setup should be allowed, and working.
Comment 5 Angelo Naselli 2010-03-28 15:33:10 UTC
Why should needinfo status close the bug?
Comment 6 Angelo Naselli 2010-03-28 15:36:00 UTC
BTW 10x15 is already in for hp printers I use :/
Comment 7 Anders Lund 2010-03-28 18:07:51 UTC
The printer settings in the standard print dialog allows me to select "photo paper with tear off tab", which is a 10x15cm paper + the tear off tab. This is not available in the kipi print wizard, but that depends on the size being set to work correctly.

In any case that being available does not save the bug.
Comment 8 Anders Lund 2010-03-28 18:10:49 UTC
Created attachment 42313 [details]
proof

As it shows in this screenshot, the page size for a custom page can not be set.
Comment 9 Angelo Naselli 2010-03-28 19:20:00 UTC
Could please take the picture running from konsole the following command:
LC_ALL=C digikam 
or
LC_ALL=C gwenview
?
thanks
Comment 10 Anders Lund 2010-03-28 19:28:26 UTC
No need for a screenshot, with LC_ALL=C the dialog works. Do you base 
descissions on an absolute value of a translated string? :0
Comment 11 Angelo Naselli 2010-03-28 19:36:53 UTC
Yes, i can't understand your language ;)
Comment 12 Anders Lund 2010-03-28 19:47:58 UTC
"Tilpasset" is the translation of "Custom" :)
Comment 13 Anders Lund 2010-03-28 19:50:27 UTC
Created attachment 42315 [details]
now in english

In english, the dialog is not broken :o
Comment 14 Angelo Naselli 2010-03-28 20:04:25 UTC
Ok it is probably... you've taken the wrong one (it's A4 :p)
Comment 15 Angelo Naselli 2010-03-28 20:04:51 UTC
no need more by now
thanks.
Comment 16 Angelo Naselli 2010-03-28 20:06:13 UTC
Created attachment 42316 [details]
custom is disabled if i choose a HP printer
Comment 17 Angelo Naselli 2010-03-28 20:07:06 UTC
Created attachment 42317 [details]
Custom is enabled if i choose PDF printer
Comment 18 Angelo Naselli 2010-03-28 20:08:18 UTC
As you can see it's a driver problem. I can't enable it by now.
Can you please test it with PDF/PS printer set and tell me if it is present?
Comment 19 Anders Lund 2010-03-28 20:18:42 UTC
Yes, with pdf printer custom page size can be set.
But it is broken, since the correct list of page sizes for the hp printer is 
not available when i select it.


And btw, printers have MAX sizes. Custom should always be enabled, but limited 
to the printers max size.
Comment 20 Anders Lund 2010-03-28 20:19:34 UTC
Can it be a problem that my printer is not connected always when I set up the 
task? Is so, that is a bug of its own!
Comment 21 Angelo Naselli 2010-03-28 21:12:37 UTC
Sorry i can't do much on it. I believe it's qt/printer driver issue, or the way
in which they interact.
If you want to try opening a bug against QT/QPrinter API...

I've tried a pure qt application (qtcreator) and opened a text file 
then tried to print it on a custom page. No way to enable page layout.
Comment 22 Anders Lund 2010-03-28 21:22:24 UTC
It absolutely does not work for me.

Printing images with KDE is a PITA, and there is no working way of printing 
one image full bleed to a 10x15cm photo paper using either the kipi printing 
wizard or the default printing dialog.

When using the default printing dialog, it is possible to select a custom page 
size btw, including setting that size: those spinboxes are enabled.
Comment 23 Anders Lund 2010-03-28 21:36:11 UTC
You better say WONTFIX, considering that it in fact does not work, but you do not want to fix it (even if the reason is that the problem is upstream)
Comment 24 Anders Lund 2010-03-28 21:39:18 UTC
Created attachment 42320 [details]
default print dialog has the correct media list

As you can see, using the default print dialog the page settings shows the correct media list, including "Photo with tear off tab", the media i want to use.
Comment 25 Angelo Naselli 2010-03-28 23:34:13 UTC
first of all i don't seem to be offensive, so i'd expect the same. 
Said that i'm the first who want this plugin the best print interface for photos under kde, since i'm using it first.

I've read again all your thread and i suspect you're using a HP printer as i do.
Custom page cannot be set (i do hope it is at the moment, but i have a test 
program and i can see that every QT 4.x). 
I used to save page layout to get it again when you use pi or pa plugin again. And again that does not work very well for HP driver, i use to print 10x15cm photo (e.g. Photo/4x6 inch index card for driver, full bleed enable-another print option that has to be forced from driver- and no margins), when i open again print(assistant/images) i need to select that choice again. After that it works here.
On Comment #22 what does not work exactly?
On comment #23 Upstream is better? As said as soon as i can do anything else i'll do.
On Comment #24 spinbox is not enabled

To get custom page layout for HP (at least mine) you have to choose PDF printer
and print to pdf, than if your printer support that page print from pdf, i'm not sure it does though.
Comment 26 Angelo Naselli 2010-03-28 23:34:59 UTC
Created attachment 42324 [details]
as you can see it works here
Comment 27 Anders Lund 2010-03-28 23:59:39 UTC
Yes, I use a hp printer, with the default hpijs driver.

re #22: Using the default printing dialog i get the correct media type 
selection.

Using the kipi print assistant/wizard I do not get the correct media type 
selection.

Attempting to print on a 10x15cm photo paper using the kipi wizard, I wanted 
to use a custom page size, but that is, as you say, not possible with my hp 
printer.

Therefore it is a bad bug in the kipi wizard that the correct media selection 
is not available: I can not print a 10x15cm image full bleed with the wizard, 
as far as i can figure out.

Using the default KDE print dialog I can select the correct size of media, but 
I have not been able to print a full bleed image on it. Using the "fit to 
page" option does make odd margins, while using scale is just broken, it cuts 
of sides and squeezes the image vertically.

re #23, the bug described in this report exists, also for you. Blame it on 
CUPS, the HP driver or Qt: it exists. You can select a custom page size, but 
not define it. Broken. If the custom page size can not be defined, it should 
not be an option. IMO it should be an option, and definable.

re #24: The screenshot is there to prove that as opposed to the kipi wizard 
page settings, the printer properties of the default KDE print dialog, using 
the same widget (or exactly similar) is able to display the correct media 
list. The spinboxes should only be enabled for "custom" media.
Comment 28 Angelo Naselli 2010-03-29 00:10:00 UTC
>re #22: Using the default printing dialog i get the correct media type 
>selection.
I can't really see that difference here. What are you exactly using to get default print dialog?
Comment 29 Anders Lund 2010-03-29 00:22:27 UTC
Angelo Naselli skrev:
> I can't really see that difference here. What are you exactly using to get
> default print dialog?

In any application but digikam, I press CTRL + P.

The kipi wizard has a "page settings" button that shows the page settings page 
of the printer settings. When using that dialog, the media list is not 
correct.
Comment 30 Anders Lund 2010-03-29 00:26:17 UTC
Created attachment 42329 [details]
kipi wizard page settings
Comment 31 Anders Lund 2010-03-29 00:26:59 UTC
Created attachment 42330 [details]
print wizard printer properties
Comment 32 Angelo Naselli 2010-03-29 00:36:18 UTC
Created attachment 42331 [details]
It's ok here

Just a try. Are you sure to have choosen the printer first?
It's a bit late now can we talk about it via IRC (freenode kde-imaging) tomorrow evening?
Comment 33 Anders Lund 2010-03-29 05:29:13 UTC
The printer is preselected, it does not matter if i manually select it. I can 
visit your irc channel tonight.
Comment 34 Angelo Naselli 2010-03-29 11:57:36 UTC
another try, how many installed printers do you have?
Comment 35 Angelo Naselli 2010-03-29 12:23:58 UTC
Just to add a note in my TODO file into printimages directory (under svn)
i wrote down some odd behaviors i'm monitoring:
<quote>
Found QT odd behaviors
- QPageSetupDialog::open does not set QPrinter correctly (Unix?) -> used exec
- QPrinter Custom page size (HP CUPS settings) is restored as custom 0,0
- QPrintDialog(Qprinter*) does not care QPrinter margins if OutputFormat
  is set as PdfFormat or PostScriptFormat
- QPrinterInfo::availablePrinters() seems to be usefull for PageSizes
  only for default in case of printers :(
</quote>
Cheers,
  Angelo
Comment 36 Anders Lund 2010-03-29 17:26:52 UTC
I have one printer only.

Thanks for your patience and interrest, just let me know if i can help with 
more information :)