Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - custom printing options
  FAQ FAQ  Forum Search   Register Register  Login Login

custom printing options

 Post Reply Post Reply
Author
Message
priya View Drop Down
Beginner
Beginner


Joined: 22 Apr 14
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote priya Quote  Post ReplyReply Direct Link To This Post Topic: custom printing options
    Posted: 06 May 14 at 9:57AM
Hi,
I need to set custom print options for printing.
I can see that I can do this using SetupCustomPrinter function.
But I can't find any documentation saying what values to be set for what option.
Where should I look?
I need the full set of values.
A quick reply appreciated.
 
Thanks,
Priya
 
Back to Top
mLipok View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 Apr 14
Location: Poland, Zabrze
Status: Offline
Points: 453
Post Options Post Options   Thanks (0) Thanks(0)   Quote mLipok Quote  Post ReplyReply Direct Link To This Post Posted: 06 May 14 at 8:29PM
did you read this:

http://www.debenu.com/docs/pdf_library_reference/SetupCustomPrinter.php

edit:
and check 
Debenu Quick PDF Library 10.14 Dashboard (3.10)

in "Rendering and printing" there is "Custom PDF printing" example.

there is this one example:


// Welcome to Debenu Quick PDF Library Engine
// ------------------------------- 
// Use 'QP' to access the Debenu Quick PDF Library object
// Use MsgBox(string text) to display a popup dialog
// Use Preview.OpenFromFile(string filename) to load a PDF in the Preview PDF tab
// Use DisplayPDFReader(string filename) to display a PDF in the default PDF reader
// Use GetOutputFolder() to access the default output folder
// Use GetInputFolder() to access the default input folder
// -------------------------------

/* Create a custom printer and specify your own settings  */

// Load a sample file from the input folder

QP.LoadFromFile(GetInputFolder() + "JavaScript.pdf", ""); 

// Create the custom printer

CustomPrinter = QP.NewCustomPrinter("Microsoft XPS Document Writer");

// Setup the settings for the customer printer

// Medium quality

QP.SetupCustomPrinter(CustomPrinter, 5, 2); 

// Monochrome

QP.SetupCustomPrinter(CustomPrinter, 6, 1); 

// Horizontal Duplex

QP.SetupCustomPrinter(CustomPrinter, 7, 3);

// Configure print options

iPrintOptions = QP.PrintOptions(0, 0, "Printing Sample");

// Print the current document to the default printing 
// using the options as configured above

QP.PrintDocument(CustomPrinter, 1, 1, iPrintOptions);



Edited by mLipok - 06 May 14 at 8:39PM
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store