How can I make the PDF be recognized as a different Paper Type on a Commercial Printer?

recently started a project to move reports to be generated as PDFs. I generate many reports into many PDFs. At the end of the Process, I use PDFSharp to combine the results into a single PDF. This has all worked fine.

However, the Printer has 6 different trays. It pulls certain paper for different paper types (Letter, A4, ect...).

My combined PDF and single document PDFs all print on plain white paper. I need invoices to print on perforated paper sources, but I have no way to tell the printer that this paper type is different.

The printer is a KODAK NEXPRESS SX Platform.

http://graphics.kodak.com/US/en/product/printers_presses/comm_sheet/digital_color/nexpress/sx/support/drivers/default.htm

How can I make the PDF be recognized as a different Paper Type?

Any advice would be appreciated.
farminsureAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bob LearnedCommented:
I believe that you need to set the PdfPage.Size property, as shown here:

PDFsharp Sample: Page Sizes
http://www.pdfsharp.net/wiki/PageSizes-sample.ashx?AspxAutoDetectCookieSupport=1

// Create a new PDF document
PdfDocument document = new PdfDocument();
 
// Create a font
XFont font = new XFont("Times", 25, XFontStyle.Bold);

PageSize[] pageSizes = (PageSize[])Enum.GetValues(typeof(PageSize));
foreach (PageSize pageSize in pageSizes)
{
if (pageSize == PageSize.Undefined)
continue;
 
// One page in Portrait...
PdfPage page = document.AddPage();
page.Size = pageSize;
XGraphics gfx = XGraphics.FromPdfPage(page);
gfx.DrawString(pageSize.ToString(), font, XBrushes.DarkRed,
new XRect(0, 0, page.Width, page.Height),
XStringFormats.Center);

// ... and one in Landscape orientation.
page = document.AddPage();
page.Size = pageSize;
page.Orientation = PageOrientation.Landscape;
gfx = XGraphics.FromPdfPage(page);
gfx.DrawString(pageSize + " (landscape)", font,
XBrushes.DarkRed, new XRect(0, 0, page.Width, page.Height),
XStringFormats.Center);
}
 
// Save the document...
const string filename = "PageSizes_tempfile.pdf";
document.Save(filename);
// ...and start a viewer
Process.Start(filename);

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
DansDadUKCommented:
>> ... different paper types (Letter, A4, ect...) ...

I don't know the answer, but (perhaps backing up the reply from Bob Learned) would like to point out that values such as A4 and Letter are Paper Sizes - typical  Paper Types are Plain and Letterhead.
0
hdhondtCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Printers and Scanners

From novice to tech pro — start learning today.