Skip to main content


 

Symptoms


Suppose you are using Save as PDF control on your smartform. It may be necessary for you to adjust page margins in resulting PDF file. PDF control does not allow specifying page margins and the only thing you can do is adjust form padding. Custom form padding in a way can be used for adjusting margins in resulting PDF file but you may have difficulty if you need to specify custom padding size for different sides of the form/page and it will not help you to add margins in page break areas (if resulting PDF consists of more than one page).
 

Diagnoses


The only thing which can be done to adjust page margins for resulting PDF is to use form padding. Custom values for different form sides can be specified for form padding instead of equal padding size for each side of the form. This has additional issue related with the fact that it is not possible to enter custom padding sizes for different sides of the form into respective padding property directly and it requires use of additional text box with custom padding sizes string (e.g. 10px 20px 10px 10px – for top, bottom, right and left respectively). Form padding does not solve issue of page break as padding being added around the form and does not influence page break/split when form being converted into PDF.
 

Resolution

You may use custom form padding values for different sides of the form as a way of controlling page margins in K2 4.6.9. However, as explained above it will not help you to increase margin for page breaks in case your resulting PDF file has more than one page.
There is an existing feature request to allow for entering padding sizes string directly in padding properties without using text box for this. Also there is an existing feature request to implement more efficient way to break form into multiple pages and avoid margins not displaying correctly when using Save as PDF control.




 
Be the first to reply!

Reply