Debenu Quick PDF logo


Form fields, Color


Sets the background color of the specified form field. Similar to the SetFormFieldBorderColor function, but a tint of a separation color added with the AddSeparationColor function is used. The PDF specification does not support separation color spaces for form fields, so the results may not always work, especially if the form field is later edited in Acrobat. This feature has been added for situations where the form field will be flattened.



function TDebenuPDFLibrary1511.SetFormFieldBackgroundColorSep(Index: Integer; 
  ColorName: WideString; Tint: Double): Integer;


Function DebenuPDFLibrary1511.PDFLibrary::SetFormFieldBackgroundColorSep(
  Index As Long, ColorName As String, Tint As Double) As Long


int DPLSetFormFieldBackgroundColorSep(int InstanceID, int Index,
  wchar_t * ColorName, double Tint)


Index The index of the form field
ColorName The name of the separation color that was used with the AddSeparationColor function
Tint The amount of color to use. 0 indicates no color (white), 1 indicates maximum color.

Return values

0 The form field could not be found, or the separation color name could not be found
1 The background color of the specified form field was set successfully

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport