You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the impression that pdfmake has a bug when you try to put an image in a column, because it expects the width to be a number for the image, whereas you enter the width of the column in auto, percentage or star, and so the width is for the column and not for the image.
Sorry if this question has already been asked.
Hi everyone, newbie here,
I have the impression that pdfmake has a bug when you try to put an image in a column, because it expects the width to be a number for the image, whereas you enter the width of the column in auto, percentage or star, and so the width is for the column and not for the image.
Sorry if this question has already been asked.
var documentDefinition = { images: { "logo": 'https://placehold.co/200x150.png', }, pageSize: 'A4', pageOrientation: 'landscape', content: [ { image: 'logo', }, { text: 'Testing' }, { columns: [ { width: 'auto', text: 'First column' }, { width: '*', text: 'Second column' }, { width: 100, text: 'Third column' }, { width: '20%', text: 'Fourth column' } ], } ] };
Is working fine, but :
var documentDefinition = { images: { "logo": 'https://placehold.co/200x150.png', }, pageSize: 'A4', pageOrientation: 'landscape', content: [ { image: 'logo', }, { text: 'Testing' }, { columns: [ { width: 'auto', image: 'logo', }, { width: '*', text: 'Second column' }, { width: 100, text: 'Third column' }, { width: '20%', text: 'Fourth column' } ], } ] };
return :
So my question is : How to put an image in a column ? 😄
Thank you 🙏
I'm using it in the browser with the 0.2.12 version
The text was updated successfully, but these errors were encountered: