Manager
|
today's guess is cups and QT combined
this explains how cups could create pdfs by use of the ghostpdf.ppd and/or maybe pdfwrite.ps, these files are located in /usr/share/ghostscript/9.15/lib though this is from a Windows app it offers a viable explaination http://www.foxweb.com/document/index.ht ... script.htm
and this explains QT http://het.as.utexas.edu/HET/O_M/Operat ... nting.html
both of this could explain why the package cups-pdf was no longer needed |
Registered Member
|
My goal would be to eliminate printer margins from the "print to file" printer.
I've looked into ghostpdf.ppd but I haven't gone much further. It contains this:
I've tried to paste there the following:
I've rebooted, but nothing has changed... Still big margins. |
Manager
|
|
Registered Member
|
What program does the KDE "print to file" dialog invoke? Ghostscript, I suppose. But I can't find where its settings are hidden. I can successfully change the print margins from the GUI, but they revert do default every time. Could the settings be hardcoded, in your opinion?
|
Manager
|
look in /usr/share/ghostscript/ maybe align.ps
|
Registered Member
|
Apparently, that file should be used to detect the printer hardware margins. Then it would give you a string to add to the gs command every time you want to print with such margins. In other words, it has a different purpose.
I'm still clueless, I'll have a look at the other files in that directory. |
Manager
|
|
Registered Member
|
I've experimented with all of the files, but to no avail.
I'll try to get in touch with them. I'll let you guys know. By the way, very strange that nobody ever cared to edit the default settings, that's the first thing I do on my Windows pdf printer software. |
Registered Member
|
They say that Ghostscript has no default margins:
Also, they say that ghostpdf.ppd is for MS WIndows users. |
Manager
|
you could try using the lp command, the issue seems to be how to set the destination to a file as it requires as best I can tell a defined printer though if you install cups-pdf you will should have such a printer
from http://localhost:631/help/options.html
|
Registered Member
|
Yes, that would be an option. But it's even less convenient than setting the print margins every time.
I think I won't get anywhere without support from KDE devs. How do you think I could get in touch with them? A bug report? |
Manager
|
what if you created your own PDF printer with defined margines
https://www.linuxquestions.org/question ... in-854173/ https://lists.debian.org/debian-user/20 ... 01290.html ps - I really know nothing about this stuff but it is an interesting problem for devs there are irc and mailing lists, I'd suggest mailing list though not sure which |
Registered Member
|
Great idea, I have successfully created a PDF printer using /usr/share/ghostscript/9.10/lib/ghostpdf.ppd
The margins are indeed customizable this way, but... the default save path isn't. You fix one thing and another one breaks. Lol One more advantage of this solution would be that the PDF printer is available to Wine applications, while KDE print-to-file isn't. I'll try IRC and/or mailing lists and I'll let you know. Thanks for your efforts and advice. |
Registered Member
|
I've tried KDE IRC channel, but it's not very populated. I couldn't get any answer.
Do you think that filing a bug would be a good idea? |
Manager
|
think it's a valid bug/wish
found this on bugs.kde.org https://bugs.kde.org/show_bug.cgi?id=261787 "printing a file to PDF does not allow to set/save a path and/or does not remember the last one"
|
Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, Sogou [Bot]