Printing to PDF - Advanced usage


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Printing to PDF - Advanced usage
# 1  
Old 05-21-2009
Printing to PDF - Advanced usage

Hello,

Just a rather long query regarding printing to PDF.

I have installed the Cups-PDF printing system which enables me to send a normal text file and create a PDF of it. I then use the pdftk to merge that file with a template.

My question is, that I have a database system that will need to send different output to this PDF conversion and then - depending on what it is - merge it with a specific template, then email it out to an email address.

So I guess what I am asking is that is there a set-up somewhere currently that would allow me to send a print job to a PDF conversion program which if I send some different parameters - such as:

lp -dcupspdf -typeINV -etesting@example.com

That way when i send the print job it does the conversion, and it also know that it is a type INV so it merges it with whatever template INV is defined to. Then finally it emails out that PDF to the said email address.

Hope this makes sense and any advice is greatly aprieciated.
# 2  
Old 05-22-2009
I guess what I am asking simply, is can I send arguments to Cups-PDF (Or a variation of) so that I can then run a script at the post processing stage, with those original arguments sent and passed along?
# 3  
Old 05-22-2009
I suggest that a better place to ask this question is in the CUPS user or developers forums at CUPS.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

PDF Script to extract PDF Links MOD in Need

In here we have a script to extract all pdf links from a single page.. any idea's in how make this read instead of a page a list of pages.. and extract all pdf links ? #!/bin/bash # NAME: pdflinkextractor # AUTHOR: Glutanimate (http://askubuntu.com/users/81372/), 2013 #... (1 Reply)
Discussion started by: danielldf
1 Replies

2. Solaris

Printing pdf problem using pasta.cfg

hi folks I have issue in printing pdf while using ERP application, it's using pasta utility to print pdf. If i print from command line its successful while when ERP user give print command the printer doesnot print anything rather it gives error which is as follows ESP Ghostscript 815.01:... (12 Replies)
Discussion started by: smazshah
12 Replies

3. Shell Programming and Scripting

[Solved] Pdf Printing in Solaris

HI All I need help related to Pdf printing in Solaris.as I print pdf file in solaris it print garbage.how can I print pdf correctly. need help asap. Regards (21 Replies)
Discussion started by: smazshah
21 Replies

4. Windows & DOS: Issues & Discussions

Linux to Windows Printing: PDF starts printing from middle of page.

We are using Red Hat. We have a issue like this: We want to print from Linux, to a printer attached to a Windows machine. What we want to print is a PDF. It prints, but the printing starts from the middle of the page. In the report, there is no space at the top but still printing starts from the... (5 Replies)
Discussion started by: rohan69
5 Replies

5. AIX

How to monitor the IBM AIX server for I/O usage,memory usage,CPU usage,network..?

How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies

6. HP-UX

how can I find cpu usage memory usage swap usage and logical volume usage

how can I find cpu usage memory usage swap usage and I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times my final destination is monitor process logical volume usage above X % and number of Logical voluage above can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies

7. UNIX for Dummies Questions & Answers

PDF Printing....

:confused: We have a Sco Open Unix 5.0.5 Server that I am trying to configure to allow for PDF creation. Currently the server is just using lpr to print to laser printers located throughout the facility. The goal is to be able to also print to pdf documents. There is no option for... (2 Replies)
Discussion started by: pabloescobar
2 Replies

8. UNIX for Dummies Questions & Answers

printing in postscript or convert from pdf?

hi - go easy on me, i'm new to UNIX... i need to resample huge pdf files and make them smaller. distiller won't resize existing pdf files. i thought i could print the pdf to a postscript file and then resample that. would that work? if so, how? is this the best way forward or should... (1 Reply)
Discussion started by: jono2000
1 Replies

9. UNIX for Dummies Questions & Answers

printing PDF files

Hi all: I'm trying to resolve a print issue in HPUX. Background: An ascii report file was being produced by a program. It was being sent to the printer via internal commands, to wit: let #send_status = 0 let $send_cmd = 'lp -d lp03 /ps/tmp/edsprint/eds*.N.LIS' call... (4 Replies)
Discussion started by: abNORMal
4 Replies

10. UNIX Desktop Questions & Answers

trap - advanced usage

Alright gang, I've done pretty exhaustive search on effective uses of the 'trap' command - and have found that everybody out there uses the same example... trap "rm -f $tmp; exit" 0 1 2 15 ...and that doesn't do a whole lot for me. I'm looking to ignore all 1's and trap, notify, and exit... (4 Replies)
Discussion started by: Ursa_Major
4 Replies
Login or Register to Ask a Question