Legacy Knowledge Base
IMPORTANT:

This knowledgebase contains information related to activePDF products versions 4.0 and earlier, including End of Life and discontinued products. Effective 5/12/11, this system will no longer be maintained but will remain available for customer reference.

If you are looking for information pertaining to current products, please refer to the activePDF Support Portal.

10026: Preserve background colors during conversion
 
ProductVersionService Pack
WebGrabber
3.5.2
SP4
SP5
SP6
SP7
 
Description
 
The steps for preserving background colors depend on the rendering engine specified by the EngineToUse property.
 
Details
 

Native Engine


activePDF WebGrabber includes the PrintBackgroundColors property, which instructs the Native Engine to print zero, table cell, or all background colors. The following VBScript code example demonstrates the PrintBackgroundColors property:
' Define Variables
    ' EngineToUse (1=IE, 0=Native)
    varEngine = 0

    ' URL format: "http://www.activepdf.com" or "file://folder/file.htm"
    varURL = "http://www.activepdf.com/support/knowledgebase/view.cfm?kb=10026"
    
    ' Timeout for various calls
    varTimeout = 60

' Set activePDF Server properties
APS.OutputDirectory varPath
APS.PDFTimeout = varTimeout

' Must call before DoPrint to pass server settings to WG
WG.Prt2DiskSettings = APS.ToString()

' Set WebGrabber properties
WG.EngineToUse = varEngine
WG.URL = varURL
WG.TimeOut = varTimeout
WG.PrinterTimeout = varTimeout
WG.PrintBackgroundColors = 1
WG.TopBottomMargin = 150
WG.LeftRightMargin = 150

NOTE: The Native Engine prints all images.


IE Engine


Internet Explorer includes the Print background colors and images option that must be set for the WGIELogin user. Set the option using the following steps:

NOTE: By default, Print background colors and images is not selected. Setting this option will affect all print jobs sent from the WGIELogin user.


  1. Log in as the WGIELogin user.
  2. Start Internet Explorer.
  3. Click Tools, point to Internet Options, and then click the Advanced Tab.
  4. Scroll down to the Printing options and then click to select Print background colors and images.
  5. Click OK.
  6. Restart your machine.

 
 
Related Articles
 
10545 - EngineToUse
10550 - PrintBackgroundColors
 
 
Keywords
 
how,to,colors,color,arent,aren't,are,not,cannot,can,not,keep,printing,saving,save,cells, back, ground, retain,color ,table,retain,images,convert,background,888,problem
Copyright © 2001-2011 activePDF, Inc.