I have a simple form that adds the attachment images inline so that they appear for printing. The default PDF doesn't come out looking good at all. I added a button to use the
fd.exportToPDF(fd.field('Title').value);
which is a nice touch because it lets me set the name of the file as it is being exported AND it also includes all of the inline images. Please see attached:
As you will see in the attachment, the PDF is really wide, so when it is printed, the contents are scaled down to fit on a A4 page and become unreadable. There is something about my form that makes the PDF exporter think that it is really wide. What can I do to set the width of the form so that if fits nicely on a A4 page?
I have made good improvement but it still doesn't seem to format the additional pages. You can see how it looks right now in the attachment. Here is my code:
fd.toolbar.buttons.push({
icon: 'Print',
class: 'btn-outline-primary',
text: 'Print',
click: function() {
var opts = {
title : 'Indian Creek Observation Log',
paperSize : 'A4',
landscape : false,
multiPage : true,
margin: {
left : '20mm',
top : '20mm',
right : '20mm',
bottom : '20mm'
}
}
fd.exportToPDF(fd.field('Title').value, opts);
}
});