Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 31 Oct 2014, 00:27
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
PDF printer for puppy
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 6 of 7 Posts_count   Goto page: Previous 1, 2, 3, 4, 5, 6, 7 Next
Author Message
headfound


Joined: 24 Jun 2006
Posts: 346
Location: England

PostPosted: Thu 01 Nov 2007, 18:52    Post_subject:  

fantastic work! I installed my printer first time just now which was amazing, then couldn't print a pdf. But i installed your latest and it worked perfectly! Thanks.
_________________
Download a better Computer Smile
Puppy Linux Song
altern8life
Back to top
View user's profile Send_private_message Visit_website 
disciple

Joined: 20 May 2006
Posts: 6449
Location: Auckland, New Zealand

PostPosted: Fri 19 Sep 2008, 18:26    Post_subject:  

Does anybody know why if you change the printer settings to print in black and white, it still comes out in colour? Sad
_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send_private_message 
jcoder24


Joined: 06 May 2005
Posts: 601
Location: Barbados

PostPosted: Sat 27 Sep 2008, 21:49    Post_subject:  

That's because the pdf-writer backend doesn't look at the arguments but rather uses the deafults. I've started to look at fixing that oversight.

Thanks for pointing it out.
Back to top
View user's profile Send_private_message 
disciple

Joined: 20 May 2006
Posts: 6449
Location: Auckland, New Zealand

PostPosted: Sun 28 Sep 2008, 22:31    Post_subject:  

But if I go into the CUPS settings and set the printer to print in grayscale, then print something with lpr -P Cups-PDF, then I thought it should print in grayscale... am I wrong?
It doesn't anyway.

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send_private_message 
Dingo


Joined: 11 Dec 2007
Posts: 1422
Location: somewhere at the end of rainbow...

PostPosted: Mon 29 Sep 2008, 10:07    Post_subject:  

disciple wrote:
But if I go into the CUPS settings and set the printer to print in grayscale, then print something with lpr -P Cups-PDF, then I thought it should print in grayscale... am I wrong?
It doesn't anyway.

let me reply in verse... Cool

a pretty workaround
few days ago found.
A ghostscript you need
and these instructions feed
type in console this code
for pdf grey mode:

(needs ghostscript 8.61 or upper - Muppy-Mini have bult-in)

Code:
gs -sOutputFile=output.pdf -sDEVICE=pdfwrite -sColorConversionStrategy=Gray -dProcessColorModel=/DeviceGray -dCompatibilityLevel=1.4 input.pdf < /dev/null

_________________
replace .co.cc with .info to get access to stuff I posted in forum
dropbox 2GB free
OpenOffice for Puppy Linux
Back to top
View user's profile Send_private_message Visit_website 
disciple

Joined: 20 May 2006
Posts: 6449
Location: Auckland, New Zealand

PostPosted: Thu 21 May 2009, 02:48    Post_subject:  

Someone in another thread pointed out that this is creating pdfs with text that isn't selectable (in viewers that respect the security settings). I tried specifying the pdf security settings by changing the gs command in ps2pdf, but it doesn't seem to work. Any ideas anyone?
_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send_private_message 
disciple

Joined: 20 May 2006
Posts: 6449
Location: Auckland, New Zealand

PostPosted: Wed 16 Sep 2009, 07:49    Post_subject: CUPS-PDF bugs
Sub_title: and wished for gui
 

If I ever get the time I'd like to sort out the problems with CUPS-PDF, and with creating PDF's in general in puppy. To that end, lets compile a list of issues:

1. CUPS-PDF doesn't obey any settings that you choose when printing - e.g. grayscale as I mentioned. It doesn't even seem to obey page choices! Shocked
I think because a lot of programs have limited options when printing it would also be good if the dialogue that asks where to save the pdf also has all the different driver options, and picks up any options you put in when you printed it... this is obviously a bit more complicated though.
2. As I mentioned above, CUPS-PDF tends to produce documents with strange permissions - e.g. you can select text, but it isn't searchable. Last time I looked at this I thought something was wrong with ghostscript in Puppy that is causing this. N.B. because I've messed around with my ghostscript I'm now not certain what the original behaviour is - someone said it produces pdfs that aren't searchable and you can't select the text either... I guess they are probably right.
3. Currently if I print to CUPS-PDF from gtklp the print job just vaporises.... no idea what's going on.
4. CUPS-PDF doesn't work when using a remote display (e.g. when running in Colinux Smile ). I think this could be fixed just by reading the DISPLAY variable???
5. Forgot no. 5 but I think it was related to no. 3 or 4.
6. Anyone know anything else?

BTW A related interest I have is creating a gui to help people print booklets or whatever, like some Windows printer drivers have - putting the pages in the right order depending on the print layout, printing half the pages and then telling the user to take the printed pages, rotate them or flip them over or whatever, and put them back in to print the other side... not sure that I'll ever have time to do this - I still haven't got back to working on another program I'm supposed to be doing Sad

N.B. a couple of people have said things like this "The old CUPS-PDF printer backend needs recoding in order to work with the new CUPS security features."
I don't know anything about CUPS security features, but this is not the issue I am talking about with pdf security level, as that is a problem with the old CUPS version too.

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send_private_message 
disciple

Joined: 20 May 2006
Posts: 6449
Location: Auckland, New Zealand

PostPosted: Fri 25 Sep 2009, 02:45    Post_subject: openoffice printing bug  

Oh, right. My problem with not being able to specify to print pages in a different order (they always come out in numerical order) is an openoffice bug. It's another one of these really basic bugs in OOo that have been around for years and years and years. Vote for it at http://www.openoffice.org/issues/show_bug.cgi?id=11831

I think the trouble with OOo must be that even though everyone uses it they don't have anywhere near enough developers.

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send_private_message 
disciple

Joined: 20 May 2006
Posts: 6449
Location: Auckland, New Zealand

PostPosted: Sat 26 Sep 2009, 06:52    Post_subject: Possible alternative to CUPS-PDF  

To anyone who is interested:
- we should possibly consider using this project, for the sake of not having to maintain our own unique Puppy system: http://code.google.com/p/i-v-p-cups/downloads/list
We would have to write another filter to use ps2pdf instead of pdftk or whatever it was they use.
I think zenity is basically compatible with xdialog... if it isn't, there'd be no point in pursuing this idea - last time I looked zenity plus dependencies was a bit big for Puppy.
Personally I'm not keen on the idea of having a daemon for it either.

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send_private_message 
disciple

Joined: 20 May 2006
Posts: 6449
Location: Auckland, New Zealand

PostPosted: Sat 26 Sep 2009, 07:12    Post_subject: Gtkpsproc - gui for manual duplex, n-up and booklet printing  

I thought I'd have one last google for a program that provided an easy way to manually print duplex when you don't have a duplex printer, and I found http://www.rastersoft.com/gtkpsproc.html

It is a great start. For setting it up as a CUPS printer it has a horrible Gnome/Python daemon, but there must be a simpler way to do that. Apart from that it has these issues:
- [really minor] The "close" button in the "Information" window doesn't work. You can close it with the window manager, but then can't open it again until next time you run gtkpsproc.
- [minor] For some reason when you use the built-in "print to file" option it warns about the printer not being configured.
- [very disappointing] The built-in "Print to file" gives you a choice between ps and pdf, but always produces ps.
- [minor] it doesn't automatically append an extension when you use the "print to file option".
- the built-in "print to file" option doesn't give you a choice of paper size.
- [minor] the built-in "print to file" option doesn't remember where you last saved a file.

It requires these from psutils, which are all pretty small:
ps2ps
psnup
psbook
libpaper

While playing with it I found that half the time the ps2pdf in puppy outputs on letter paper rather than A4, which seems to be a disturbingly common problem if you google it. (Actually, I'm not certain if ps2pdf or psnup is at fault, but I suspect the former). Anyway, if I print to file using gtkpsproc and want to convert to pdf (which Puppy's gsview substitute script does to display ps files in epdfview) I have to use this option with ps2pdf to stop the stupid thing outputting to letter paper, with one side of the page cut off:
Code:
-sPAPERSIZE=a4

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send_private_message 
disciple

Joined: 20 May 2006
Posts: 6449
Location: Auckland, New Zealand

PostPosted: Sat 26 Sep 2009, 07:40    Post_subject: Gtkpsproc - gui for manual duplex, n-up and booklet printing  

Oops, missed one important issue, although it should be easy to fix:
it writes its temporary files inside the save file Sad

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send_private_message 
Aitch


Joined: 04 Apr 2007
Posts: 6825
Location: Chatham, Kent, UK

PostPosted: Sat 26 Sep 2009, 11:36    Post_subject:  

ttuuxxx has posted libcups-gnomeprint-2.18.5-i386.pet

here

http://www.murga-linux.com/puppy/viewtopic.php?t=42553&start=1845

it may be unrelated, but seems to sort some of the printing problems

Aitch Smile
Back to top
View user's profile Send_private_message 
disciple

Joined: 20 May 2006
Posts: 6449
Location: Auckland, New Zealand

PostPosted: Sat 26 Sep 2009, 22:25    Post_subject:  

I had the impression it fixed problems in Ttuuxxx'2 2.20 or something like that, not Puppy in general.
_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send_private_message 
disciple

Joined: 20 May 2006
Posts: 6449
Location: Auckland, New Zealand

PostPosted: Thu 04 Nov 2010, 21:28    Post_subject: Re: CUPS-PDF bugs
Sub_title: and wished for gui
 

disciple wrote:
2. As I mentioned above, CUPS-PDF tends to produce documents with strange permissions - e.g. you can select text, but it isn't searchable. Last time I looked at this I thought something was wrong with ghostscript in Puppy that is causing this. N.B. because I've messed around with my ghostscript I'm now not certain what the original behaviour is - someone said it produces pdfs that aren't searchable and you can't select the text either... I guess they are probably right.

Sit Heel Speak asked me if I have made any progress on this, and I thought I should probably post here in case anyone else is interested.

First I'd like to clarify the problem. CUPS-PDF creates pdfs that display correctly in all viewers that I've tested, but:
- the text is neither searchable nor selectable in epdfview
- the text is not searchable in Adobe Reader 9.x (Windows or Linux). It is selectable but copying it just produces nonsense like this (normally shows up as squares in a text editor)  


- the text IS searchable AND copies correctly in Foxit Reader (Windows and Linux versions) (Yay!)
- the utility that comes with xpdf for converting pdf to text doesn't recognise the text.
- Gsview doesn't recognise the text
- if the pdf is printed again to PDF (on Windows), using the PDFill pdf printer, or the Adobe PDF printer, the new pdf has the same characteristics.
Interestingly, I've noticed that PDFs exported by some other free software (e.g. QGIS) have the same or similar characteristics.

Here's some of my reply to SHS:
disciple (PM to SHS) wrote:
So, my theory is that CUPS-PDF is generating PDFs with an unusual font encoding.
...
If the theory is correct, this is a bug in both epdfview and Adobe Reader... but we should be able to work around it if we can figure out how to generate PDFs with a less unusual encoding.
The theory is reinforced by pages like http://www.rhinocerus.net/forum/lang-postscript/130685-font-encoding-pdf-fulltext-search.html
But Puppy has a more recent ghostscipt than the one reported to work there... so why are our pdfs faulty? Maybe this is the answer http://www.rhinocerus.net/forum/lang-postscript/130685-font-encoding-pdf-fulltext-search.html

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!

Edited_time_total
Back to top
View user's profile Send_private_message 
Sit Heel Speak


Joined: 30 Mar 2006
Posts: 2595
Location: downwind

PostPosted: Fri 05 Nov 2010, 02:02    Post_subject:  

Heh ...working on it... Wink
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 6 of 7 Posts_count   Goto page: Previous 1, 2, 3, 4, 5, 6, 7 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0934s ][ Queries: 13 (0.0059s) ][ GZIP on ]