So when I am trying to convert the DOCX file to PDF using the PDF from DOCX smart service. My document is not generating in the way I expect it to be. The same file if I convert online I can see the exact thing and the pdf version is same as docx but through appian I see change in font size and the words being misplaced.
Discussion posts and replies are publicly visible
Use only standard fonts (Arial, Times New Roman, Calibri, etc.)Simplify document formatting (avoid complex tables/text boxes, etc.)If issues persist, Use HTML to PDF conversion instead
I used the Times New Roman text, but still facing the issue. I have the image in the word and a link so are these any reasons for that issue. I need to check in HTML to PDF conversion. Thanks for the response.
Yes, images and hyperlinks are likely causing the issue.Use HTML to PDF conversion instead, It handles images and links properly.
Yeah I tried html conversion , I got a better results than docx, but I have a blocker like I am unable to generate it in 2 pages. I have used page break , force break in html , I can generate it in 2 pages in html but while converting it into the pdf generation through appian, it generates only in single page.
Use CSS for HTML to PDF page breaks.<div style='page-break-after: always; height: 1px;'></div>Haven't tried but let me know if this works for you..
Tried in html it works but when converting it into the appian it forces it into 1 single page. So the appian html to pdf conversion does not convert into 2 pages?
No, Appian HTML to PDF makes multiple pages when you set Height parameter to standard size (842px A4 something like this)
I tried setting the height to 842px, the page size is increasing but not generating in 2 pages.
Use mm units once : Width: 210, Height: 297 (A4 size)<div style="page-break-after: always;"></div>PDF