Pdfmake: how to draw a frame with pdfmake?

Created on 28 Apr 2017  路  3Comments  路  Source: bpampuch/pdfmake

I'm using pdfmake and I need to put some data in a frame. I looked on internet but I think the injection does not support frame tag
any help plz !!

waiting for information

Most helpful comment

Tag frame is not supported, but can be done using table.

Simple example:

var dd = {
    content: [
        {
            table: {
                widths: [200, 100],
                body: [
                    [
                        {text: 'TEXT  1', border: [true, true, false, false]}, 
                        {text: 'TEXT  2', border: [false, true, true, false]}
                    ],    
                    [
                        {text: 'TEXT  3', border: [true, false, false, true]}, 
                        {text: 'TEXT  4', border: [false, false, true, true]}
                    ]
                ]
            }
        },
    ]
}

All 3 comments

What should a frame tag do?

something like that. some information in a frame
frame

Tag frame is not supported, but can be done using table.

Simple example:

var dd = {
    content: [
        {
            table: {
                widths: [200, 100],
                body: [
                    [
                        {text: 'TEXT  1', border: [true, true, false, false]}, 
                        {text: 'TEXT  2', border: [false, true, true, false]}
                    ],    
                    [
                        {text: 'TEXT  3', border: [true, false, false, true]}, 
                        {text: 'TEXT  4', border: [false, false, true, true]}
                    ]
                ]
            }
        },
    ]
}
Was this page helpful?
0 / 5 - 0 ratings

Related issues

jokris1 picture jokris1  路  3Comments

qgliu picture qgliu  路  3Comments

jkd003 picture jkd003  路  3Comments

kamilkp picture kamilkp  路  3Comments

dmatesic picture dmatesic  路  3Comments