Skip to main content


 

Symptoms


How to convert a form to a PDF and then upload to SharePoint. Converted PDFs have cut-off elements.
 

Diagnoses


Elements breaking in a PDF conversion is a known issue with a workaround to manually break up pages that I have included below.
 

Resolution

- Here is some documentation on how to create a PDF from a URL:
http://help.k2.com/onlinehelp/k2smartforms/UserGuide/current/default.htm_HowTo_CreatePDFFileUsingPDFConverterInAdvancedSmartObject.htm

You can then save the output PDF to a document library or list via workflow events.

- "PDF should include hyperlink of supporting documents attached in the form." I would create a view in your form that contains these hyperlinks.

- Workaround to add your own page breaks:
---
The SaveAsPdf control injects
at the end of each tab and

 
at the start of each tab content to allow the tabs on a form to start rendering on different pages.

The documentation mentions support for alternatives (we have not verified that these are working correctly)
Automatic and custom page breaks
ExpertPdf automatically inserts page breaks when needed, paying attention not to break lines of text or images. Custom page breaks can be added using simple page-break-before and page-break-after css styles.
http://www.html-to-pdf.net/html-to-pdf-converter.aspx

Below is an example of using the page-break-inside:avoid style. The table contains a large number of rows, each row containing an image in the left and a text in the right and we don’t want a row to span on two pages.









 

img1.jpg

My text 1

img2.jpg

My text 2


http://www.expertpdf.net/expertpdf-html-to-pdf-converter-page-breaks/

 




 
Be the first to reply!

Reply