daffaa08 / jzebra

Automatically exported from code.google.com/p/jzebra
0 stars 0 forks source link

Printing ID card using "XPS card printer" from a PDF file Problem #244

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm trying to print an ID card on XPS card printer using a PDF file with 2 
pages.

It prints but the expected output is 2 sides fully printed card, instead of 
this I got 2 sides printed card but not the full image there is an empty space 
and this space is always empty whether the card layout is 'Landscape' or 
'Portrait'

I'm using 1.8.7 version, On windows 8.1 and 7 Professional.

Original issue reported on code.google.com by khaledmi...@gmail.com on 29 Apr 2015 at 7:06

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I'm using sample.html and the following is the printPDF() function I used:
function printPDF() {
        if (notReady()) { return; }
        // Append our pdf (only one pdf can be appended per print)

        qz.setPaperSize("3.38in", "2.13in");  // ID Card

        qz.setOrientation("landscape");
        qz.appendPDF(getPath() + "misc/Landscape.pdf");

        //qz.setOrientation("Portrait");
        //qz.appendPDF(getPath() + "misc/Portrait.pdf");

        //qz.setCopies(3);
        qz.setCopies(parseInt(document.getElementById("copies").value));

        // Automatically gets called when "qz.appendPDF()" is finished.
        window['qzDoneAppending'] = function() {
            // Tell the applet to print PostScript.
            qz.printPS();

            // Remove reference to this function
            window['qzDoneAppending'] = null;
        };
    }

Original comment by khaledmi...@gmail.com on 29 Apr 2015 at 7:14

GoogleCodeExporter commented 9 years ago
@khaledminasr,

We do not have experience with this hardware.  The cards we have experience 
printing on were the magnetic-stipe credit-card style printers.

To achieve what you are requesting would require some investigation and 
possible driver configuration.

Original comment by tres.fin...@gmail.com on 29 Apr 2015 at 1:24