PDF document configuration. Pass it as the second argument to the SurveyPDF constructor:
const surveyPdf = new SurveyPDF.SurveyPDF(surveyJson, pdfDocOptions);
applyImageFitproperty
Specifies whether to apply the imageFit property to exported Image questions.
If you enable the applyImageFit property, the quality of images may be lower because they pass through several conversions. If applyImageFit is disabled, exported images fill the entire container and do not preserve their aspect ratio, but their quality remains the same because they are exported as is.
Removes watermarks from the exported document.
IMPORTANT: You can enable this property only if you have a SurveyJS PDF Export commercial license. It is illegal to enable this property without a license.
Specifies how to render HTML questions into PDF.
Accepted values:
"standard" - Render HTML questions as selectable text.
"image" - Render HTML questions as images.
"auto" (default) - Select between the "standard" and "image" modes automatically based on the HTML content.
You can override this property for an individual HTML question. Set the question's renderAs property to "standard" or "image" in the survey JSON definition.
This site uses cookies to make your browsing experience more convenient and personal. Cookies store useful information on your computer to help us improve the efficiency and relevance of our site for you. In some cases, they are essential to making the site work properly. By accessing this site, you consent to the use of cookies.
For more information, refer to DevSoft Baltic’ privacy policy and cookie policy.