LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-18-2009, 02:29 PM   #16
chr00ted
LQ Newbie
 
Registered: Feb 2009
Location: Southeast Florida
Distribution: Fedora 10
Posts: 3

Rep: Reputation: 0

The m4 file I'm using is (reports.m4):


\documentclass[letterpaper,10pt]{article}
\usepackage{graphicx}
\usepackage{eso-pic}
\setlength{\textwidth}{18.5cm}

\usepackage{fancyhdr}
\pagestyle{fancy}

\addtolength{\headheight}{\baselineskip}
\usepackage[hmargin=1cm,vmargin=2.1cm]{geometry}


\lhead{
\includegraphics[height=0.5in]{/etc/scripts/logo.png}
}
\chead{\leftmark {\bfseries ACME, Inc.}\\ \rightmark{666 Mockingbird Lane; Arlington, TX 76002}}
\rhead{\leftmark{TX Division}\\ \rightmark{(456) 123-1456}}


\begin{document}

\begin{verbatim}
include(reportfile)
\end{verbatim}

\end{document}



I run with a script that does:
m4 -D reportfile=/tmp/whatever.txt /etc/scripts/reports.m4 > /tmp/whatever.tex
pdflatex /tmp/whatever.tex
 
Old 06-16-2009, 02:23 AM   #17
EricPH
LQ Newbie
 
Registered: May 2009
Posts: 2

Rep: Reputation: 0
hello,

I don't understand exactly what you did (because mainly, I am completly ignorant of m4 and tex).
Does this script allow to print without any manual operation to a CUPS print queue ?
In this case, where do you put it and how is it called in the CUPS process ?

With great gratitude of your future explanation. :-)
 
Old 02-01-2014, 10:21 AM   #18
Gasmit
LQ Newbie
 
Registered: Feb 2014
Location: Malden, Netherlands
Distribution: OpenSuSE
Posts: 2

Rep: Reputation: Disabled
Postprinted letterhead

I did the trick by having letterhead in PDF-files, converting all input to PDF, put it together with pdftk, *and* I did some things to hide all this stuff inside CUPS configuration.

Eventually, the different letterheads are available as so called CUPS printer instances.

Explanation (in Dutch) here http://www.atcomputing.nl/blog/archi...3T14_43_06.txt
 
  


Reply

Tags
cups, pdf


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to wget a webpage, and save as PDF (like cups-pdf) ? frenchn00b Programming 3 11-18-2008 03:48 PM
PDF printing to cups with many output problems! maginotjr Linux - Server 1 03-06-2008 05:44 AM
cups not printing pdf documents javeree Linux - Software 0 12-07-2004 05:55 PM
remote cups printing to a smb/cups print server? justanothergeek Linux - Networking 2 09-15-2004 08:31 AM
Printing option to letterhead johniccp Linux - Newbie 0 04-16-2004 10:24 AM


All times are GMT -5. The time now is 03:15 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration