Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Add cups-pdf to hplip extension, Script needs modification< Next Oldest | Next Newest >
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Jan. 11 2008,13:33 QUOTE

I'd like to add a pdf-writer to the hplip extension as a cups backend. I believe OO will write pdf files, but this would allow all other dsl apps to make pdf files.

Using this script I managed to get the pdf writer to work with hplip but it writes the pdf files to /export/share/pdf or fails because dsl does not recognise the user "guest" that cups/hplip somehow uses and this will not allow the pdf to be written to /home/guest.

Would one of the dsl script gurus mind to modify the script appropriately (i.e. write to /home/dsl/pdf or similar) so I can add it to hplip?
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Jan. 11 2008,16:05 QUOTE

I assume you're talking about user guest with USERMODE=on ?
Code Sample
PRTUSER=$2
This means that the user is passed as the 2nd arg... probably by CUPS - so it is probably configured to use the default user guest.  You can probably either change that default (maybe pass -U dsl to lpadmin), or change the above line to "PRTUSER=dsl" or "PRTUSER=`whoami`".... or change the URI path in the lpadmin invocation "lpadmin -p CUPS-PDF -v pdf-writer:/export/share/pdf/ ...."
Back to top
Profile PM 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: Jan. 11 2008,17:04 QUOTE

Aren't most programs able to do that already? By printing to PS and then using ps2pdf?

--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Jan. 11 2008,17:53 QUOTE

I guess so, but I was thinking this was a neater way to do it...
Back to top
Profile PM 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: Jan. 11 2008,18:30 QUOTE

:D

--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
9 replies since Jan. 11 2008,13:33 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: Add cups-pdf to hplip extension

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code