Cart Licenses Contact Support Online Creator Login/Register
v 1.9.38
v 1.9.38

Export Matrix questions to PDF

SurveyPDF supports export all types of SurveyJS matrix questions. When exporting, SurveyPDF tries to render the matrix as a table. But if there is no enough free space, then SurveyPDF will render the matrix as a list

You can set preferred render directly to fit your needs more accurately. Pass matrixRenderAs parameter with "list" value to render all matrix questions as list. Omit this parameter or pass "auto" value to allow SurveyPDF automatically choose renders matrix as a table or as a list

const options = {
    matrixRenderAs: 'list'
const surveyPDF = new SurveyPDF.SurveyPDF(json, options);

Also, you can override the render of particular matrix question via setting renderAs property with "list" value. Default value is "auto"

const json = {
    type: 'matrix',
    name: 'matrix_as_list',
    columns: [
        'Column 1'
    rows: [
        'Row 1'
    renderAs: 'list'

See Also
Options in SurveyPDF Constructor: Matrix question render mode


Tell us what you think

Help us serve you better by taking this brief
survey. We are interested to learn more about
your experience of using our libraries.

We'd really appreciate your feedback.

Approximate time to complete: 2 min.

Start the survey