Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > PDF API

Runner.PDF.open

Scroll Prev Next More

 

Runner.PDF.open creates and opens PDF files. Files can be opened in the same browser tab or in a new one.

 

Note: Microsoft Edge and Internet Explorer do not support the file preview feature. Files are downloaded instead.

Syntax

Runner.PDF.open( {}, pageObj, window );

Arguments

params

PDF parameters. Can be empty. Use {} for default settings.

pageObj

RunnerPage object. Available as a variable in all JavaScript events.

window

an optional JavaScript Window object used for opening a PDF file in the current browser tab. If omitted, the file is opened in a new browser tab. To open the file in the current browser tab, pass window.

Return value

No return value

Example

// when a new browser tab is created
Runner.PDF.open( {}, pageObj );
 
//when the file is opened in the current browser tab
Runner.PDF.open( {}, pageObj, window );

See also:

Example: Creating PDF from all selected records except the first one

PDF API: Runner.PDF.download

JavaScript API: RunnerPage object

JavaScript onload events

About PDF API