Click Here
home features news forums classifieds faqs links search
6071 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
16 crawler(s) on-line.
 103 guest(s) on-line.
 0 member(s) on-line.



You are an anonymous user.
Register Now!
 DiscreetFX:  12 mins ago
 Dragster:  13 mins ago
 Karlos:  21 mins ago
 bhabbott:  57 mins ago
 amig_os:  1 hr 16 mins ago
 OneTimer1:  1 hr 30 mins ago
 mbrantley:  1 hr 33 mins ago
 michalsc:  1 hr 42 mins ago
 zipper:  1 hr 47 mins ago
 Tpod:  2 hrs 23 mins ago

/  Forum Index
   /  Amiga OS4 Software
      /  FTP Print
Register To Post

PosterThread
broadblues 
FTP Print
Posted on 2-Mar-2018 16:27:38
#1 ]
Amiga Developer Team
Joined: 20-Jul-2004
Posts: 4446
From: Portsmouth England

I just uploaded a simple tool to facilitate printing with an hp Laserjet Pro 200 via ftp.

It's specifically scripted to work with the M251n model.

It basicaly sends files to the printer using ftp. It can send Postscript and PDF files directly, and will either preprocess text files with ghostscript to create paged postscrip print or it will pass the file through as plain text, (but adding carriadge returns to an newlines as needed).

This second release can also set some options on the printer, including number of copies (most useful) A5 feed orientation, and for plain text landscape / bold font.

http://os4depot.net/?function=showfile&file=utility/print/ftpprint.lha

The FTP aspect should work with an postscript networked printer, the settings will hopefully work with any printer from the same family, dpending on how much the webinterface varies between model.

_________________
BroadBlues On Blues BroadBlues On Amiga Walker Broad

 Status: Offline
Profile     Report this post  
Anonymous 
Re: FTP Print
Posted on 2-Mar-2018 17:05:55
# ]

0
0

@broadblues

I haven't tested this yet, just read your readme

I wonder, would it be possible to build some kind of printer driver around this, so one simply has to choose this as printer driver in Printer prefs and all the rest would be taken care of inside the program? (convert the file, send the file etc)

 
     Report this post  
broadblues 
Re: FTP Print
Posted on 2-Mar-2018 17:17:17
#3 ]
Amiga Developer Team
Joined: 20-Jul-2004
Posts: 4446
From: Portsmouth England

@Raziel

No, it's perl script. Can't really make driver out of that.

But you could use the Post Script Driver and printofile, then send that file to the printer with this script.

That's and extra step for sure but it would work for non postscript output appliactions.

This script works well for me as all the printing I do is PDFs and Postscript. It's easier to use than a 'driver' in that context as I don't have to load the PDF into a viewer just to print it.

_________________
BroadBlues On Blues BroadBlues On Amiga Walker Broad

 Status: Offline
Profile     Report this post  
Anonymous 
Re: FTP Print
Posted on 2-Mar-2018 20:12:02
# ]

0
0

@broadblues

Hmm, could that "extra step" and the perl script be batched togehter then?

 
     Report this post  
broadblues 
Re: FTP Print
Posted on 2-Mar-2018 20:17:56
#5 ]
Amiga Developer Team
Joined: 20-Jul-2004
Posts: 4446
From: Portsmouth England

@Raziel

Probably depend on how scriptable the given application was.

If the application in question had a PRINT arexx comand (or equiv) then yes, if not then you have to do it by hand.

_________________
BroadBlues On Blues BroadBlues On Amiga Walker Broad

 Status: Offline
Profile     Report this post  
gerograph 
Re: FTP Print
Posted on 4-Mar-2018 10:59:42
#6 ]
Cult Member
Joined: 5-Dec-2007
Posts: 901
From: Moers - Germany

Wasn't there a tool which starts a script once a directory change occured:

Print using a postscript driver to a file in a directory "dh0:spool/temp.ps" -> a dirnotify tools starts the script from broadblues using temp.ps...

This is what I did ages ago with Windows and Samba - I printed into a Windows Samba share from my Amiga, on the Windows site a dirnotify tool started Windows Ghostscript in order to create a pdf. The pdf then was saved to another windows directory. Once the postscript was there the pdf was recognised by dirnotify and copied to printer.

_________________
Geomarketing at
www.geobiz.de
www.gebietsplanung.net
www.geomarketing-consultant.de

 Status: Offline
Profile     Report this post  
jaokim 
Re: FTP Print
Posted on 4-Mar-2018 13:25:23
#7 ]
Regular Member
Joined: 8-Mar-2003
Posts: 278
From: Sweden

@gerograph

I used WaitNotify from aminet for an aRexx script to facilitate a PDF conversion from Wordworth.
http://os4depot.net/index.php?function=showfile&file=office/wordprocessing/printaspdf.lha

_________________

 Status: Offline
Profile     Report this post  
Plexus 
Re: FTP Print
Posted on 5-Mar-2018 6:42:34
#8 ]
Regular Member
Joined: 29-Sep-2003
Posts: 289
From: SWEDEN (Sverige)

@all
Why not make life more easy. Just have aftp on amigaos and ftpclient on android and easy download pic, pdf or other that you want print to your android mobil.
It works very nicely here with a printer that support wifi.
In my case HP DESKJET 3638

Print from android😀

Last edited by Plexus on 05-Mar-2018 at 06:52 AM.

_________________
AmigaOne X5000, AmigaOS 4.1 Final Edition Update 2 special super 2 cores prepared super edition v75 christmas speciale uniqe quadro prepared AmigaOS... TWO MORE YEARS IS NOTHING IF YOU BEEN WAITING SINCE 1994..

 Status: Offline
Profile     Report this post  
broadblues 
Re: FTP Print
Posted on 5-Mar-2018 12:14:42
#9 ]
Amiga Developer Team
Joined: 20-Jul-2004
Posts: 4446
From: Portsmouth England

@Plexus

Well in the case my personal usage that's not easier. FTPing the document direct to the printer is simple even without the script.

The script takes care of the fact you can only send one document per sesiion, so handles login and logout, removes the need to start up a client with GUI like aftp or pftp or type few extra lines at the console with ftp.

My printer also doesnlt do wifi so I couldn't print from my phone if I wanted to

_________________
BroadBlues On Blues BroadBlues On Amiga Walker Broad

 Status: Offline
Profile     Report this post  
Chris_Y 
Re: FTP Print
Posted on 5-Mar-2018 14:32:06
#10 ]
Elite Member
Joined: 21-Jun-2003
Posts: 3203
From: Beds, UK

@broadblues

Could you use FTPMount instead or would that fall foul of the "one file per session" rule?
Then you could use the PostScript driver and printtofile.device, but save the file to ftp:printer?

_________________
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar is Tabitha by Eric W Schwartz

 Status: Offline
Profile     Report this post  
broadblues 
Re: FTP Print
Posted on 5-Mar-2018 14:45:45
#11 ]
Amiga Developer Team
Joined: 20-Jul-2004
Posts: 4446
From: Portsmouth England

@Chris_Y

I think that would break the one per session rule. I'd guess you'd have towait for timeout before prining again , though I haven't tried it with FTPMount: Thouygh I've been working on fixing a few bugs in that recently so I ought to test it.

_________________
BroadBlues On Blues BroadBlues On Amiga Walker Broad

 Status: Offline
Profile     Report this post  
broadblues 
Re: FTP Print
Posted on 5-Mar-2018 15:49:54
#12 ]
Amiga Developer Team
Joined: 20-Jul-2004
Posts: 4446
From: Portsmouth England

@broadblues

Wel with a very quick test FTPMount doesn;t want to conect to the printer at all. No sure why.

_________________
BroadBlues On Blues BroadBlues On Amiga Walker Broad

 Status: Offline
Profile     Report this post  
paolone 
Re: FTP Print
Posted on 6-Mar-2018 15:51:19
#13 ]
Super Member
Joined: 24-Sep-2007
Posts: 1143
From: Unknown

@broadblues

Quote:


My printer also doesnlt do wifi so I couldn't print from my phone if I wanted to



Both your phone and your printer should get a IP address from your router, hence you should be able to FTP your document from the phone to the printer as well.

By the way, I like your approach and I was wondering if your perl script would run on AROS as well, once some changes had been made to ghostscript-related paths.

 Status: Offline
Profile     Report this post  
broadblues 
Re: FTP Print
Posted on 6-Mar-2018 16:07:33
#14 ]
Amiga Developer Team
Joined: 20-Jul-2004
Posts: 4446
From: Portsmouth England

@paolone

Quote:

Quote:


Quote:


My printer also doesnlt do wifi so I couldn't print from my phone if I wanted to



Both your phone and your printer should get a IP address from your router, hence you should be able to FTP your document from the phone to the printer as well.


Indeed I realised shortly after I posted. Still it seams sening stuff to my phone only to forward to the printer is an extra step that makes life more difficult, doing anyting on my phone other than settings diary events and sending text and makeing phone calls always feels like keyhole surgery with gloves on...

Quote:

By the way, I like your approach and I was wondering if your perl script would run on AROS as well, once some changes had been made to ghostscript-related paths.


I'd think so, subject to the version of perl you have and modules required being available.

I build a few extra ones into the standard AmigaOS4 distribution so as to confident that they are available.

_________________
BroadBlues On Blues BroadBlues On Amiga Walker Broad

 Status: Offline
Profile     Report this post  

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle