Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 844913 Details for
Bug 888479
net-print/cups-filters-1.28.15 not print "file.pdf" in landscape format
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
cups-filter-landscape.patch
file_888479.txt (text/plain), 1.66 KB, created by
smail.muk2
on 2022-12-26 06:19:55 UTC
(
hide
)
Description:
cups-filter-landscape.patch
Filename:
MIME Type:
Creator:
smail.muk2
Created:
2022-12-26 06:19:55 UTC
Size:
1.66 KB
patch
obsolete
>diff -Nudr orig-cups-filters-1.28.15/filter/pdftops.c cups-filters-1.28.15/filter/pdftops.c >--- orig-cups-filters-1.28.15/filter/pdftops.c 2022-04-12 02:56:40.000000000 +0700 >+++ cups-filters-1.28.15/filter/pdftops.c 2022-12-26 12:02:43.103737973 +0700 >@@ -338,6 +338,7 @@ > *ptr; /* Pointer into value */ > const char *cups_serverbin; /* CUPS_SERVERBIN environment > variable */ >+ const char *content_type; /* CONTENT_TYPE environment variable */ > int duplex, tumble; /* Duplex settings for PPD-less > printing */ > #if defined(HAVE_SIGACTION) && !defined(HAVE_SIGSET) >@@ -621,6 +622,7 @@ > * acroread filter... > */ > >+ content_type = getenv("CONTENT_TYPE"); > if (renderer == PDFTOPS) > { > pdf_argv[0] = (char *)"pdftops"; >@@ -781,8 +783,9 @@ > * Use the page sizes of the original PDF document, this way documents > * which contain pages of different sizes can be printed correctly > */ >- >- pdf_argv[pdf_argc++] = (char *)"-origpagesizes"; >+ /* Only do this for unprocessed PDF files */ >+ if (content_type && !strstr (content_type, "/vnd.cups-")) >+ pdf_argv[pdf_argc++] = (char *)"-origpagesizes"; > pdf_argv[pdf_argc++] = (char *)"-nocenter"; > } > else >@@ -793,8 +796,9 @@ > * Use the page sizes of the original PDF document, this way documents > * which contain pages of different sizes can be printed correctly > */ >- >- pdf_argv[pdf_argc++] = (char *)"-choosePaperByPDFPageSize"; >+ /* Only do this for unprocessed PDF files */ >+ if (content_type && !strstr (content_type, "/vnd.cups-")) >+ pdf_argv[pdf_argc++] = (char *)"-choosePaperByPDFPageSize"; > } > > /*
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 888479
: 844913