Click or drag to resize

PdfWebControlConvertImageToPdf Property

Gets or sets a value indicating whether a PdfWebControl instance should convert supported image types to PDF automatically if used with CreateDocument(String, Byte).

Namespace:  RadPdf.Web.UI
Assembly:  RadPdf (in RadPdf.dll) Version: 3.48.0.0 (3.48.0.0)
Syntax
public bool ConvertImageToPdf { get; set; }

Property Value

Type: Boolean
true supported image formats will be converted to PDF and loaded as a new document; otherwise false. The default is true.
Remarks

To have an effect, this property must be set before CreateDocument(String, Byte) is called.

If true and RAD PDF recognizes the input as a supported image format (and not a PDF), RAD PDF will convert the image to a PDF and load it as a new document.

At this time the following iamge formats are supported:
  • BMP
  • JPEG
  • PNG
  • TIFF

If false, RAD PDF will throw an error if the input is not a valid PDF file.

See Also