Hi Duncan,

Thanks very much for your reply. I am quite stuck on this!!


On 23 Oct 2006, at 18:02, C. Duncan Hudson wrote:

> We don't print invoices landscape, but we do print labels that way.
> Here's what one of our landscape tex files looks like:
>
>
> \documentclass[oneside]{scrartcl}
> \documentstyle[rotate]{article}
> \usepackage[latin1]{inputenc}
> \usepackage[english]{babel}
> \usepackage{rotating}
> \usepackage{array}
> \usepackage{pstricks,tabularx}
> \usepackage{pst-barcode}
> \usepackage[absolute, overlay]{textpos}
> \usepackage[paperwidth=4in,paperheight=2.25in,margin=0.125]{geometry}
> \usepackage{graphicx}
> \usepackage{hyperref}
> \setlength\parindent{0pt}
> \setlength\arrayrulewidth{0.1mm}

I'd tried only this simple change to the default invoice.:

    \documentclass{scrartcl}
    \usepackage[latin1]{inputenc}
    \usepackage{tabularx}
    %\usepackage 
[letterpaper,top=2cm,bottom=-3cm,left=1.1cm,right=1.5cm]{geometry}
    \usepackage 
[a4paper,landscape,top=2cm,bottom=3cm,left=1.1cm,right=1.5cm]{geometry}
    \usepackage{graphicx}

    \begin{document}

    \pagestyle{myheadings}
    \thispagestyle{empty}
   ...

Having examined your header, I added:
    \usepackage{rotating}


However that has made no difference.

> That should give you an idea of what you need to do, but an even  
> easier
> way of dealing with this is to just create a CUPS queue that only  
> prints
> landscape.

Could you explain how to do this, please?

I have this in /usr/local/sql-ledger/sql-ledger.conf:

# available printers
%printer = ( 'HP Laserjet 4 - landscape' => 'lpr -o landscape -P  
HPLaserJet5M',
              'HP Laserjet 4'            => 'lpr -P HPLaserJet5M',
              'Canon IP3000 on funf'     => 'lpr -P iP3000',
              );

But this does not work for my ps or pdf invoices.

After some experimentation it transpires that `lpr -o landscape`  
works great with plain text, but not with postscript documents - all  
that seems to happen is that a sheet of A4 is printed in portrait  
format, with the image halfway down the sheet and falling half off  
the page. It seems that I have the problem mentioned here: <http:// 
marc.theaimsgroup.com/?l=redhat-list&m=103340134024139&w=2>. The CUPS  
manual says that "-o landscape option will rotate the page 90 degrees  
to print in landscape orientation" <http://www.cups.org/doc-1.1/ 
sum.html#4_1_2> but it does not mention that this does not work with  
postscript documents.

The only things I can think right now are to:
1) do an entire .tex layout in portrait with all the text at 90- 
degrees. I have no idea id this is possible?
2) have a virtual printer (I think this could be done with Bash &  
some pipes?) that rotates a postscript or pdf document through 90  
degrees before printing it.

Any other ideas?

TIA for any help,

Stroller.





-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
sql-ledger-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sql-ledger-users

Reply via email to