|
Used for viewing a document in the viewer. A string pointing to an existing PDF or an URL that can dynamically generate a PDF document for viewing. Examples[http://www.activetree.com/silent_print_pdf_from_browser/demo/sample_pdf/sample1.pdf]
[file:/c:/demo/sample_pdf/sample1.pdf]
[http://www.activetree.com/silent_print_report_from_browser/PdfJSPDemo2.jsp]
If the PDF is generated dynamically from a server program may require parameters. This is how one can add the parameters and values using the standard URL systax.
|
[doc1-][doc-2][doc-3]...[doc-N]DOC_LIST examples for PDF files
[file:/c:/test/pdfs/sample1.pdf][http://www.activetree.com/silent_print_pdf_from_browser/demo/sample_pdf/sample4.pdf][http://www.activetree.com/demo/sjreport/PdfJSPDemo2.jsp][http://www.activetree.com/demo/sjreport/ReportGenerationDemo1.jsp] [file:/c:/test/pdfs/sample1.pdf][http://www.activetree.com/demo/sjreport/PdfJSPDemo1.jsp] DOC_LIST examples for PDF byte[] content
For byte[] contents this argument has to be an object of
|
|
Only applicable for those password protected documents. You may or may not pass a value for this parameter.
If the document is NOT a password protected a value passed for it will be ignored.
NOTE: While processing multiple documents using DOC_LIST only one password may be set. Password for each document if different, you may set one document to the DOC_LIST and therefore process one document at a time. |
|
The document URL (or the URL dynamically producing the document) might be password protected in the web server. Web server therefore requires a access USER NAME and PASSWORD (Note: this is different from document PASSWORD).
Following parameters are used for accessing the password protected URL:
|
|
|
|
Job name is controlled using |
|
This is controlled by
Default value is set to |
|
This is a boolean "true" or "false" flag used to indicate whether or not to automatically rotate and center
the document page content to the media printable area. A media printable area may not be of exact match with
the document page size. Even if the size of the media is same the orientation may be different. This flag
therefore ensures you to automatically re-orient and center the content to the media printable area if this flag
is set to "true". This flag works with the
Default value is set to |
|
This parameter is used for setting a media size of format If margins are required around the pages it will be of this format |
|
|
|
There are no flag to print to a default printer. Not setting this parameter results documents to be printed
to the default printer. However, if you want to print to a named printer
set |
|
|
|
Whether or not to do a substring match for finding a printer during printer search based on printer name.
In this example |
|
This parameter is used for setting the printout quality. Possible values are
|
|
This parameter is used for this purpose. Possible values are
|
|
This parameter is used for validating the paper size with the printer.
A printer might be configured to keep certain amount of margins around the page. PDF content if printed ignoring
this margins it might produce the content near the boundary of the paper is cut off. Set this flag to |
|
|
|
This parameter takes boolean |
|
Use boolean |
|
This can be set to |
|
NOTE: This parameter typically used for browser based applications. This parameter iftrue shows a dialog displaying any kind of printing
error if any, false otherwise. Error dialog is shown only if there are printing errors. Default value
is true. This example set this flag to false so no dialogs are shown. (See DEBUG
parameter later in this tutorial to trace the printing debug messages).
|
|
NOTE: This parameter typically used for browser based applications. It is used for silent printing from browser based applications and may be ignored when used for standalone applications. This parameter iftrue it shows messages in the browser window while job is being processed.
Messages such as PDFs to print, total number of pages, printer it is printing to etc. are displayed when printing is in progress.
Default value is true. When you run without this parameter it will display messages in the browser window. Set this to
false if do not want to see any messages in the browser window.
|
|
This parameter if |
|
NOTE: This parameter typically used for browser based applications. SERVER_CALL_BACK_URL - A HREF value (i.e. URL) may be provided for this parameter that will be called at run time. All parameters is going to be made available to the server URL for knowing the document and allow access to it by way of providing all security and other information it might need for its opening. Callback program may simply deny access to this program by not providing the access information or simply setting an empty DOCUMENT or DOC_LIST content to the attribute map it replies back for client. Examples:
|
|
NOTE: This parameter typically used for browser based applications. An web URL may be set using this parameter for showing a page after completion of the job.Examples:
|
|
NOTE: This parameter typically used for browser based applications. Possible values are "_blank", "self" and a named window; e.g. "myWindow" Examples (show success page in new window; "_blank"):
|
|
NOTE: This parameter typically used for browser based applications. Similar to the ON_SUCCESS_SHOW_PAGE parameter except that this parameter is used for showing a page if job failed.Examples:
|
|
NOTE: This parameter typically used for browser based applications. This target value used with ON_FAILURE_SHOW_PAGE disussed above. Examples (show failure page in new window; "_blank"):
|
|
NOTE: This parameter typically used for browser based applications. When silent printiong from browser it may be necessary to preview the document pages before submitting the job for printing or conversion. This parameter is set totrue for showing the pages in the viewer.
This parameter is used along with VIEWER_PAGE and VIEWER_CONTROLS parameters. |
|
NOTE: This parameter typically used for browser based applications. IfIS_SHOW_PRINT_PREVIEW is set to true VIEWER_PAGE is
used for identifying the document viewer URL so that the document may be opened
in the viewer.
|
|
NOTE: This parameter typically used for browser based applications. This parameter has direct relationship with theVIEWER_PAGE
parameter. If VIEWER_PAGE is set along with IS_SHOW_PRINT_PREVIEW to true
this parameter tells what are preview controls may be shown in the viewer for user to comfortably
browse the pages.
Examples:
|
Copyright © 2008 Activetree, Inc. All rights reserved.
Web: http://www.activetree.com
Email: sales@activetree.com
Tel: +1 408 716 8414 Fax: +1 408 716 8450