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.

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

Any advice would be appreciated.
Who is Participating?

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

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

// 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)
// 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),

// ... 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),
// Save the document...
const string filename = "PageSizes_tempfile.pdf";
// ...and start a viewer

Open in new window


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
>> ... 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.
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
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.