Bug 26239

Summary: Неправильно печатаются документы Landscape-ориентации
Product: Sisyphus Reporter: Fr. Br. George <george>
Component: cupsAssignee: Fr. Br. George <george>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P3 CC: aen, boyarsh, cas, dd1email, george, iv, ldv, mike, rider, rom_as, viy
Version: unstable   
Hardware: all   
OS: Linux   
URL: http://www.linuxfoundation.org/collaborate/workgroups/openprinting/pdf_as_standard_print_job_format#How_to_switch_a_system_to_use_PDF_as_standard_print_job_format
Bug Depends on:    
Bug Blocks: 23155    
Attachments:
Description Flags
Установка уровня языка принтера по умолчанию на Level from driver none

Description Fr. Br. George 2011-09-05 17:45:48 MSK
Если создать документ в ориентации Landscape, то при печати он выводится с ненормально большими полями. Предположительно печатаемое изображение соразмерно документу в Portrait-ориентации. Запуск gv показывает, что формат бумаги в таком документе не A4 (примерно 842x595) с направлением Landscape, а 595x842 с направлением Portrait. Экспорт в PDF также генерирует такой же файл.

Бага воспроизводится также в chromium, openoffice.org и апстримном libreoffice, и не воспроизводится в abiword и firefox; вешаю сюда, потому что не знаю, куда надо :)
Comment 1 Valery Inozemtsev 2011-09-05 18:06:58 MSK
не воспроизводится
Comment 2 Dmitry V. Levin 2011-09-06 11:41:37 MSK
Воспроизводимость 100%.
Comment 3 Valery Inozemtsev 2011-09-06 11:57:35 MSK
на t6 не воспроизводится, сизифа у меня нет. libreoffice в t6 копировался из сизифа, значит проблема где то в сизифе, а не в libreoffice
Comment 4 Dmitry V. Levin 2011-09-06 12:02:45 MSK
Хорошо, мы проверим на t6. Но проблема есть, поэтому не надо пока закрывать баг.

P.S. Сизифный libreoffice, между прочим, можно установить в hasher chroot. ;)
Comment 5 AEN 2011-09-10 20:39:59 MSK
http://forum.altlinux.org/index.php/topic,11687.msg148007.html#msg148007
"Решил проблему так: файл-печать-общее-свойства-устройство-тип языка принтера значение PDF заменил на PostScript (уровень из драйвера). Но при печати нового документа всё приходиться повторять заново. МФУ samsung SCX-4100"
Comment 6 Fr. Br. George 2011-09-13 14:57:40 MSK
> "Решил проблему так: файл-печать-общее-свойства-устройство-тип языка принтера
> значение PDF заменил на PostScript (уровень из драйвера). Но при печати нового
> документа всё приходиться повторять заново. МФУ samsung SCX-4100"
Подтверждаю, PS помогает.
Comment 7 Andrey Cherepanov 2011-09-26 13:00:10 MSK
*** Bug 26370 has been marked as a duplicate of this bug. ***
Comment 8 Andrey Cherepanov 2011-10-01 15:28:11 MSK
Created attachment 5136 [details]
Установка уровня языка принтера по умолчанию на Level from driver
Comment 9 Andrey Cherepanov 2011-10-07 13:11:47 MSK
В общем проблема оказалась шире. CUPS с 1.5.0 перевёл внутренний формат печати с PostScript на PDF. Соответственно, LibreOffice заколотило PDF как внутренний формат. По инструкции http://www.linuxfoundation.org/collaborate/workgroups/openprinting/pdf_as_standard_print_job_format#How_to_switch_a_system_to_use_PDF_as_standard_print_job_formatположено ещё:
* Update Foomatic to version 4.0.x (этим я займусь, так как foomatic	inger @qa @everybody)
* Patch ready-made PPDs using foomatic-rip to accept PDF as input format
и прочее...

Прошу коллег помочь этому переходу.
Comment 10 Andrey Cherepanov 2011-10-07 17:59:46 MSK
Надо проверить (https://blueprints.launchpad.net/ubuntu/+spec/pdf-as-standard-print-job-format)

- foomatic-rip 4.0 accepts PDF
- foomatic-rip 4.0 internal conversion PDF to PS if PPD has options which embed PS code (or driver is otherwise not PDF-capable)
- foomatic-db-engine 4.0: Add cupsFilter line for PDF to the PPDs, allow PDF-specific command line in XML files
- foomatic-db: Modified driver options so that as many drivers as possible can take directly PDF as input.
- CUPS has PDF filters imagetopdf, texttopdf, pstopdf, pdftopdf, pdftoraster, pdftoijs, cpdftocps
- Adjusted cost factors of the CUPS filters so that PDF-based filter chains get preferred
- Driver packages which are prepared for PDF (usually by cupsFilter line for PDF in the PPDs): hplip, foo2zjs, m2300w, pxljr, Ricoh PPDs (openprinting-ppds-extra), all which get PPDs from foomatic-db
- Drivers which do not need to be changed: min12xxw, splix, gutenprint, cups-included
- KDE/Qt apps send PDF when printing
- Most GNOME/GTK apps send PDF when printing (bug 258421)
- Made CUPS test page work correctly (bug 263049)
Comment 11 viy 2011-10-08 13:00:41 MSK
ок, буду знать. Отключил автокопирование foomatic-db, чтобы не испортить t6.
Comment 12 Gleb F-Malinovskiy 2011-10-12 12:32:19 MSK
(В ответ на комментарий №10)
> - CUPS has PDF filters imagetopdf, texttopdf, pstopdf, pdftopdf, pdftoraster,
> pdftoijs, cpdftocps
Все эти фильтры теперь есть.

> - Adjusted cost factors of the CUPS filters so that PDF-based filter chains get
> preferred
Похоже, что тоже сделано.
Comment 13 Andrey Cherepanov 2011-10-12 17:27:03 MSK
Я вчера проверял, работает. Используйте cups > 1.5.0-alt4
Comment 14 Michael Shigorin 2011-10-13 11:44:41 MSK
Спасибо!  Накануне конференции напоролся на то же, только в A3 -- что самое смешное, в процессе перевода листов с третьей попытки вроде как наткнулся на тот же объезд (PS вместо PDF).
Comment 15 Roman Savochenko 2011-10-13 13:49:33 MSK
(В ответ на комментарий №13)
> Я вчера проверял, работает. Используйте cups > 1.5.0-alt4
А на P6?
Comment 16 AEN 2011-10-13 13:52:48 MSK
(В ответ на комментарий №15)
> (В ответ на комментарий №13)
> > Я вчера проверял, работает. Используйте cups > 1.5.0-alt4
> А на P6?

И на p6 тоже. alt4M* > alt4