Git Product home page Git Product logo

iseriespdf's Introduction

This is an LPD server written in c# that processes print files from an iSeries
host and translates them into image formats using GhostScript running on a
Windows host. If using the PDFEMAIL queue, then it emails the PDF file to the
user that owns the print job, assuming the iSeries username matches a
[email protected]. This server does not require any licensed programs on the
iSeries such as Transform Services or Infoprint Server.

iSeries -> PCL -> LPD protocol -> RQS -> GhostPCL -> PDF -> Email

Note: This service accepts any print file by LPD and passes it through a
program.  It could be expanded to cover a wide range of use cases, including
scenarios that don't involve iSeries. 

First you will need to create a remote output queue:

http://www-01.ibm.com/support/docview.wss?uid=nas8N1010090

  crtoutq (Then hit F4)
  Output Queue: pdfsrv
  Library: qusrsys
  (Hit F10 for more)
  Remote system: *INTNETADR
  Remote printer queue: 'PDFEMAIL'
  Connection Type: *IP
  Destination type: *other
  Host print transform: yes
  Manufacturer type and model: *HPII
  Internet Address: '192.168.1.22'
  (Hit Enter to create)
  
  strrmtwtr pfdsrv

You can end with
  endwtr pdfsrv option(*immed)

Edit the config file and add your SMTP server, domain, etc.

This program uses GhostPCL to convert PCL printer files to PDF.
https://www.ghostscript.com/GhostPCL.html
You may download the source from this page:
https://ghostscript.com/download/gpcldnld.html

Copy these two ghostPCL files into your program folder before opening the project.
Or just make sure they are in the executable folder when the server is run.

gpcl6dll64.dll
gpcl6win64.exe

You may need to start it up as administrator since it's a low port. 
Make sure to open firewall ports as needed.

Please note: Some spool files do not have SCS data created correctly. You can
view the remote queue job log to see this:

  dspjob job(pdfsrv)

These jobs will never print via this method because they do not have the data
needed to create the output. When you release the job it connects to the
server, checks the queue and then disconnects. On the iSeries host the status
just immediately goes back to HLD. 

But a new output file created for this remote output queue should always work.
Set the default output queue for users to this output queue and there should be
no issues. 

Here is some info on troubleshooting this issue.

http://www-01.ibm.com/support/docview.wss?uid=nas8N1019550

iseriespdf's People

Contributors

jenkstom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

iseriespdf's Issues

lp Print Options

Hey,
I am testing your program.
I went to know if your program create the PDF file with lp print options ?

Exemple:
lp -o orientation-requested=5 cds.txt
lp -o landscape cds.txt

Thank you

Does not handle invalid file length

Some operating systems - I'm looking at you, Microsoft - do not send valid file lengths. The spec allows file lengths to be zero. Microsoft sends a very large integer. The program should handle either of those cases.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.