Printing - multiple pages on one sheet

The PDF Creator .NET Library enables you to create secure PDF documents on the fly and to view, print and process existing PDF documents. If you have any questions about PDF Creator .Net, please post them here.
Post Reply
Mikko
Posts: 5
Joined: Thu Oct 20 2005

Printing - multiple pages on one sheet

Post by Mikko »

Is it possible to print multiple pages on one sheet directly from PDF Document?

Thanks in advance.
Mikko
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

I didn't really get your question.

You have a pdf file and you want to print data on multiple pages of the pdf file to one paper?

Please provide more information

Thanks.
Mikko
Posts: 5
Joined: Thu Oct 20 2005

Post by Mikko »

Sorry for delay. Haven't had enough time.

Yes I want to print multiple pages from pdf to one paper.

for e.g.

Using 2 pages per sheet option would print 3 page pdf like this:

1. printed paper
---------------------
| PAGE1 | PAGE2 |
---------------------

2. printed paper
---------------------
| PAGE3 | EMPTY |
---------------------

You can control this option from Windows by opening Printers and Faxes. Select printer and right click. Select printing preferences...

There is option Pages per sheet.

Question is how do I control this option from PDFDocument without having to instruct user go to Printers and ...

Thanks in advance
Mikko
Jose
Amyuni Team
Posts: 553
Joined: Tue Oct 01 2002
Contact:

Post by Jose »

Hello,


The current version of the PDF Creator.Net available on our website has a new "feature" which can print multiple pages on single page.

I have included below a code snippet which illustrates this.

private void btnPrint_Click(object sender, System.EventArgs e)
{

System.IO.FileStream fs = new System.IO.FileStream("c:\\temp\\FifteenPages.pdf",
FileMode.Open,
FileAccess.Read,
FileShare.Read);


pdfCreator1.Document.Open (fs, "");

pdfCreator1.Document.AttributeByName("yPagesPerSheet").Value = 2;
pdfCreator1.Document.AttributeByName("xPagesPerSheet").Value = 2;


pdfCreator1.Document.Print ( "", false);
}

Hope this helps?
Post Reply