View previous topic :: View next topic |
Author |
Message |
Joseph_sys Advocate
Joined: 08 Jun 2004 Posts: 2712 Location: Edmonton, AB
|
Posted: Thu Apr 18, 2013 2:19 am Post subject: [SOLVED] Print to File - cups |
|
|
I'm running "cups" in XFCE when I go to "print" in any application I have an options select printer or "Print to File" (pdf ps)
There is an options "Save to Folder" field which is empty on my recently upgraded system; the default should be my home directory
Where is this "Print to File" configuration file? How this entry is generated "Print to File?
Last edited by Joseph_sys on Fri Apr 19, 2013 3:05 pm; edited 1 time in total |
|
Back to top |
|
|
aCOSwt Bodhisattva
Joined: 19 Oct 2007 Posts: 2537 Location: Hilbert space
|
Posted: Thu Apr 18, 2013 6:30 am Post subject: |
|
|
In order to enable a print to pdf, I needed to install net-print/cups-pdf
Which, per default, creates the files in /var/spool/cups-pdf/${USER}
If this is what you did then cups-pdf can be configured (default directory included) via : /etc/cups/cups-pdf.conf _________________
|
|
Back to top |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Thu Apr 18, 2013 7:22 am Post subject: |
|
|
He's talking about the built-in functionality in evince and some other programs. It's nothing to do with the cups-pdf filter. I have no idea how to control that though, it's quite annoying, I have somehow grow accustomed to using tab tab down arrow to quickly select the home folder though |
|
Back to top |
|
|
cwr Veteran
Joined: 17 Dec 2005 Posts: 1969
|
Posted: Thu Apr 18, 2013 7:45 am Post subject: |
|
|
AFAIK this is an improvement to the Gnome/GTK printing dialog window to make it more usable.
It's part of the library, so can't be changed. I met it first in Gedit, and it annoyed me so much
I patched and rebuilt the library to get the old behaviour.
Will |
|
Back to top |
|
|
aCOSwt Bodhisattva
Joined: 19 Oct 2007 Posts: 2537 Location: Hilbert space
|
Posted: Thu Apr 18, 2013 8:45 am Post subject: |
|
|
i92guboj wrote: | He's talking about the built-in functionality in evince and some other programs. It's nothing to do with the cups-pdf filter. |
Sorry Joseph_sys ! _________________
|
|
Back to top |
|
|
Joseph_sys Advocate
Joined: 08 Jun 2004 Posts: 2712 Location: Edmonton, AB
|
Posted: Thu Apr 18, 2013 12:22 pm Post subject: |
|
|
cwr wrote: | AFAIK this is an improvement to the Gnome/GTK printing dialog window to make it more usable.
It's part of the library, so can't be changed. I met it first in Gedit, and it annoyed me so much
I patched and rebuilt the library to get the old behaviour.
Will |
I'm hitting something
Do you remember what library is it? I recently upgraded my system and this function when you go to "Print" from for example Firefox or evince, when print window pop-up there is option: "Print to File"
This option is not working as before. Prior to upgrade I could print from Firefox to PDF to any user sub-directory now I can only print to user home folder. Evince will not print at all to pdf or ps file.
So that library screw me up, but I don't know which one is it? |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Thu Apr 18, 2013 3:31 pm Post subject: |
|
|
Joseph_sys wrote: | I recently upgraded my system and this function when you go to "Print" from for example Firefox or evince, when print window pop-up there is option: "Print to File"
This option is not working as before. Prior to upgrade I could print from Firefox to PDF to any user sub-directory now I can only print to user home folder. Evince will not print at all to pdf or ps file. |
Joseph_sys ... I can't speak for the evince issue but for firefox this works for me with the current stable package (17.0.5), for the dialog you are offered a "save in folder ..." option with "other" opening a navigation window. As far as which library may be involved I can only think of poppler, though this is meerly rendering the output to pdf and so not any dialog or menu option.
best ... khay |
|
Back to top |
|
|
Joseph_sys Advocate
Joined: 08 Jun 2004 Posts: 2712 Location: Edmonton, AB
|
Posted: Thu Apr 18, 2013 3:46 pm Post subject: |
|
|
khayyam wrote: |
Joseph_sys ... I can't speak for the evince issue but for firefox this works for me with the current stable package (17.0.5), for the dialog you are offered a "save in folder ..." option with "other" opening a navigation window. As far as which library may be involved I can only think of poppler, though this is meerly rendering the output to pdf and so not any dialog or menu option.
best ... khay |
What version of poppler are you using?
I was using poppler-0.22.2-r2 upgraded to poppler-0.22.3
It didn't make a difference. |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Thu Apr 18, 2013 4:10 pm Post subject: |
|
|
Joseph_sys wrote: | What version of poppler are you using? I was using poppler-0.22.2-r2 upgraded to poppler-0.22.3. It didn't make a difference. |
Joseph_sys ... 0.22.2-r2 but I don't think it has anything to do with poppler, as I said its just a rendering library.
best ... khay |
|
Back to top |
|
|
Joseph_sys Advocate
Joined: 08 Jun 2004 Posts: 2712 Location: Edmonton, AB
|
Posted: Fri Apr 19, 2013 12:21 am Post subject: |
|
|
khayyam wrote: | Joseph_sys wrote: | What version of poppler are you using? I was using poppler-0.22.2-r2 upgraded to poppler-0.22.3. It didn't make a difference. |
Joseph_sys ... 0.22.2-r2 but I don't think it has anything to do with poppler, as I said its just a rendering library.
best ... khay |
I downgraded poppler to 0.18.4 but it did not make a difference.
I need to find out which application install "Print to File" in Printer pop-up window but nobody seems to know. |
|
Back to top |
|
|
Joseph_sys Advocate
Joined: 08 Jun 2004 Posts: 2712 Location: Edmonton, AB
|
Posted: Fri Apr 19, 2013 2:08 am Post subject: |
|
|
Here is a list of 149 packaged that I emerged one of them is responsible for implementation of that "Print to File" in Print window
Can somebody give me a hint which one it might be?
By the way meld-1.7.0 is buggy don't use it, 1.6.0 works OK
Code: | dev-python/python-exec-0.3.1 to /
app-admin/apache-tools-2.2.24 to /
app-admin/eselect-1.3.4 to /
app-admin/eselect-python-20111108 to /
app-arch/libarchive-3.1.2-r1 to /
app-arch/unrar-4.2.4 to /
app-text/docbook-xsl-stylesheets-1.78.0 to /
app-text/iso-codes-3.40 to /
app-text/poppler-0.22.2-r2 to /
app-text/poppler-data-0.4.6 to /
app-text/rarian-0.8.1-r2 to /
dev-db/sqlite-3.7.15.2 to /
dev-java/icedtea-bin-6.1.12.4 to /
dev-lang/lua-5.1.5 to /
dev-lang/php-5.4.13 to /
dev-lang/python-2.7.3-r3 to /
dev-lang/python-3.2.3-r2 to /
dev-lang/spidermonkey-1.8.5-r4 to /
dev-libs/atk-2.6.0 to /
dev-libs/dbus-glib-0.100.2 to /
dev-libs/libcroco-0.6.8 to /
dev-libs/libIDL-0.8.14 to /
dev-libs/libx86-1.1-r3 to /
dev-libs/libxml2-2.9.0-r2 to /
dev-libs/libxslt-1.1.28-r1 to /
dev-libs/mpc-1.0.1 to /
dev-libs/nettle-2.6 to /
dev-libs/nspr-4.9.5 to /
dev-libs/vala-common-0.18.1 to /
dev-perl/DBI-1.623.0 to /
dev-perl/IO-Socket-SSL-1.840.0 to /
dev-perl/Net-SSLeay-1.520.0 to /
dev-python/dbus-python-1.1.1-r1 to /
dev-python/numpy-1.6.2-r2 to /
dev-python/pycairo-1.10.0-r4 to /
dev-python/pygobject-2.28.6-r53 to /
dev-python/pygtk-2.24.0-r3 to /
dev-util/dialog-1.2.20121230 to /
dev-util/meld-1.7.0 to /
dev-vcs/git-1.8.1.5 to /
gnome-base/gnome-common-3.6.0 to /
gnome-base/gsettings-desktop-schemas-3.6.1 to /
gnome-base/gvfs-1.12.3-r1 to /
gnome-base/librsvg-2.36.4 to /
gnome-base/orbit-2.14.19-r2 to /
media-libs/alsa-lib-1.0.26-r1 to /
media-libs/audiofile-0.3.5 to /
media-libs/libcanberra-0.30-r1 to /
media-sound/alsa-utils-1.0.26-r2 to /
media-video/ffmpeg-0.10.6 to /
net-analyzer/nmap-6.25 to /
net-libs/gnutls-2.12.23 to /
net-misc/asterisk-11.2.2 to /
net-misc/curl-7.29.0-r1 to /
net-misc/rdate-1.4-r4 to /
net-print/cups-1.5.2-r4 to /
perl-core/Archive-Tar-1.900.0 to /
perl-core/CGI-3.630.0 to /
perl-core/Compress-Raw-Bzip2-2.60.0 to /
perl-core/Compress-Raw-Zlib-2.60.0 to /
perl-core/CPAN-Meta-2.120.921 to /
perl-core/CPAN-Meta-Requirements-2.122.0 to /
perl-core/CPAN-Meta-YAML-0.8.0 to /
perl-core/digest-base-1.170.0 to /
perl-core/Digest-MD5-2.520.0 to /
perl-core/Digest-SHA-5.820.0 to /
perl-core/Encode-2.470.0 to /
perl-core/ExtUtils-CBuilder-0.280.205 to /
perl-core/ExtUtils-Install-1.540.0 to /
perl-core/ExtUtils-MakeMaker-6.640.0 to /
perl-core/ExtUtils-Manifest-1.610.0 to /
perl-core/File-Spec-3.400.0 to /
perl-core/IO-Compress-2.60.0 to /
perl-core/IPC-Cmd-0.780.0 to /
perl-core/MIME-Base64-3.130.0 to /
perl-core/Module-Build-0.400.300 to /
perl-core/Module-CoreList-2.800.0 to /
perl-core/Module-Load-0.240.0 to /
perl-core/Module-Load-Conditional-0.540.0 to /
perl-core/Module-Metadata-1.0.11 to /
perl-core/Params-Check-0.360.0 to /
perl-core/Parse-CPAN-Meta-1.440.400 to /
perl-core/Scalar-List-Utils-1.270.0 to /
perl-core/Storable-2.390.0 to /
perl-core/Sys-Syslog-0.320.0 to /
perl-core/Test-Harness-3.260.0 to /
perl-core/Time-Local-1.230.0 to /
perl-core/version-0.990.100 to /
sci-calculators/galculator-2.1 to /
sys-apps/kmod-12-r1 to /
sys-apps/man-pages-3.47 to /
sys-apps/portage-2.1.11.55 to /
sys-apps/sysvinit-2.88-r4 to /
sys-apps/texinfo-4.13-r2 to /
sys-apps/util-linux-2.22.2 to /
sys-devel/autoconf-2.69 to /
sys-devel/automake-1.12.6 to /
sys-devel/gcc-4.5.4 to /
sys-devel/gettext-0.18.2 to /
sys-fs/udisks-1.0.4-r5 to /
sys-kernel/gentoo-sources-3.7.10 to /
sys-kernel/linux-headers-3.7 to /
sys-libs/timezone-data-2012j to /
sys-power/upower-0.9.20-r2 to /
sys-process/procps-3.3.4 to /
virtual/perl-Archive-Tar-1.900.0 to /
virtual/perl-CGI-3.630.0 to /
virtual/perl-Compress-Raw-Bzip2-2.60.0 to /
virtual/perl-Compress-Raw-Zlib-2.60.0 to /
virtual/perl-CPAN-Meta-2.120.921 to /
virtual/perl-CPAN-Meta-Requirements-2.122.0 to /
virtual/perl-CPAN-Meta-YAML-0.8.0 to /
virtual/perl-digest-base-1.170.0-r1 to /
virtual/perl-Digest-MD5-2.520.0 to /
virtual/perl-Digest-SHA-5.820.0 to /
virtual/perl-Encode-2.470.0 to /
virtual/perl-ExtUtils-CBuilder-0.280.205 to /
virtual/perl-ExtUtils-Install-1.540.0 to /
virtual/perl-ExtUtils-MakeMaker-6.640.0 to /
virtual/perl-ExtUtils-Manifest-1.610.0 to /
virtual/perl-File-Spec-3.400.0 to /
virtual/perl-IO-Compress-2.60.0 to /
virtual/perl-IO-Zlib-1.100.0-r2 to /
virtual/perl-IPC-Cmd-0.780.0 to /
virtual/perl-Locale-Maketext-Simple-0.210.0-r2 to /
virtual/perl-MIME-Base64-3.130.0-r2 to /
virtual/perl-Module-Build-0.400.300 to /
virtual/perl-Module-CoreList-2.800.0 to /
virtual/perl-Module-Load-0.240.0 to /
virtual/perl-Module-Load-Conditional-0.540.0 to /
virtual/perl-Module-Metadata-1.0.11 to /
virtual/perl-Package-Constants-0.20.0-r2 to /
virtual/perl-Params-Check-0.360.0 to /
virtual/perl-Parse-CPAN-Meta-1.440.400 to /
virtual/perl-Scalar-List-Utils-1.270.0 to /
virtual/perl-Storable-2.390.0 to /
virtual/perl-Sys-Syslog-0.320.0 to /
virtual/perl-Test-Harness-3.260.0 to /
virtual/perl-Time-Local-1.230.0 to /
virtual/perl-version-0.990.100 to /
virtual/python-argparse-1 to /
www-client/firefox-bin-17.0.4 to /
www-servers/apache-2.2.24 to /
x11-libs/gnome-pty-helper-0.34.2 to /
x11-libs/gtk+-2.24.16 to /
x11-libs/xpyb-1.3.1-r1 to /
x11-proto/xcb-proto-1.8-r1 to /
x11-themes/gnome-icon-theme-3.6.2 to /
x11-themes/sound-theme-freedesktop-0.8 to / |
|
|
Back to top |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Fri Apr 19, 2013 2:21 pm Post subject: |
|
|
As I insinuated, and before that, someone else pointed out, this has nothing to do with cups nor poppler. The print to file thing is something that the gtk+ print dialog does by itself, so, if you want to patch it, you'll be patching gtk. Can't help with that. |
|
Back to top |
|
|
Joseph_sys Advocate
Joined: 08 Jun 2004 Posts: 2712 Location: Edmonton, AB
|
Posted: Fri Apr 19, 2013 3:05 pm Post subject: |
|
|
i92guboj wrote: | As I insinuated, and before that, someone else pointed out, this has nothing to do with cups nor poppler. The print to file thing is something that the gtk+ print dialog does by itself, so, if you want to patch it, you'll be patching gtk. Can't help with that. |
You are right on
The problem is caused by: x11-libs/gtk+-2.24.16
I just downgrade to x11-libs/gtk+-2.24.12 and all my systems are working perfectly.
I'll file a bug on gtk+-2.24.16 if it is not already there. |
|
Back to top |
|
|
cwr Veteran
Joined: 17 Dec 2005 Posts: 1969
|
Posted: Sun Apr 21, 2013 7:40 pm Post subject: |
|
|
If it's what I think it is, it's a feature not a bug. Certainly the change I made was to revert
to a previous version of the library - my notes file shows:
Code: |
Tue Jan 29 11:36:41 GMT 2013
Patched the current gtk+-2.24.12 to restore the default file-saving dialog.
The files
gtkfilechoosersettings.c
gtktypefuncs.c
gtkfilechooserdefault.c
were almost a direct copy from gtk+-2.24.5; gtk+-2.24.6 is "broken".
The configure options were taken from portage's gtk+ emerge log, since
only the single library needed to be changed.
|
Will |
|
Back to top |
|
|
|