ActivePDF
Shopping Cart My Account Help Contact Us
Request a Call
Search
Products Solutions Support Downloads Corporate
Submit an Issue
Knowledge Base
Server Product Support
Examples & How-Tos
Support Options
Support Policies
Annual Subscription
Extensions
Documentation
Resource Links
   
 
 
 
 

HomeSupportKnowledge Base
 
activePDF KB #11755 - Orientation = 2 doesn't output in Landscape
activePDF WebGrabber Documentation
WebGrabber
Table of Contents | Print View | Download as PDF Previous | Next

activePDF KB #11755 - Orientation = 2 doesn't output in Landscape
Orientation = 2 doesn't output in Landscape
 
Description
 
Programmatically setting Orientation = 2 does not assure that the output will be generated in the expected landscape and orientation of the page.

Details
 
The following covers the default and optional settings of the Orientation and AutoRotate and their behavior. Using Server 3.8.0 Default is Orientation = 1 (Landscape False) Default is AutoRotate True The expected behavior given the combination of settings are:
  • Default Output will be printed in Portrait, unless 60% of the output is in landscape in which case the pages will be rotated (page displayed with lines printed left to right)
  • With Orientation = 2, Output will be printed in landscape with the pages rotated (page displayed with lines printed left to right)
  • With Orientation = 2 and AutoRotate = False, the Output will be printed in landscape and the page will be not be rotated (printing will be from bottom to top)

NOTE: The programmatic setting will last for the duration of the print job and will revert back to defaults for the next job.

If the output doesn't conform to this behavior, there is the possibility that the Server is reusing virtual printers which have not been properly initialized. Take the following steps to assure proper behavior by restart the Print Spooler:

  1. Run services.msc /s,
  2. Select Print Spooler and
  3. Select Restart
  4. Exit Services

This will refresh the spooler, restart activePDF Server/DocConverter/WebGrabber, and delete any previously created virtual printers. In the following sample code, you can comment in/out the lines for Orientation and Autorotate for different results. The output file will be in the default output directory for Server with the long unique file name (Used the timestamp on the file to locate the file of interest.) The following is the sample code:
Set server = CreateObject("APServer.Object")

server.Orientation=2
server.Autorotate=true

server.Startprinting

server.Test("testing landscape with Orientation & Autorotate")
var=server.Wait(30)

server.stopprinting
msgbox "Success"
Set server = nothing
 
Keywords
 
Orientation, Landscape, AutoRotate, Printing, programmatic, parameters
 

Table of Contents | Print View | Download as PDF Previous | Next
 
Knowledge Base Article Feedback*
*KB article feedback ONLY (submit support issues here)
Quality of this article?
  Poor Excellent 
1 2 3 4 5 6 7 8 9 10
Is this article helpful? Yes       No       Maybe
Comments (Optional)
Email Address (Optional)
Please enter the word "PDF"
(without quotes)
 
The information in this article is for the use of activePDF Customers and Evaluation Users Only. No part of this document may be transmitted or reproduced without the express written consent of activePDF.

Copyright © 2005, activePDF, Inc. All Rights Reserved
2003 activePDF Site Map Feedback Privacy Policy Legal