Hi all,
I have looked into converting HTML into PDF, as I have data that are entered througout an app which shall be put in various tables, and then exported and sent as an email with the PDF attached.
I have searched the internet and this community for a solution, but I have not found anything yet that explains my problems. Many similar things, but not very clear solutions. So, I have made a version in HTML. I can my see the html-file looks great in the chrome browser, and I can print the html to PDF in the browser and it comes out exactly like I want it.
I have no problems creating a basic table in html with some styling and it showes up pretty good on the pdf from Powerapps. But my tables are somewhat big. The tables should fit nicely inside the pdf - but my experience is that the tables are overlapping on the created pdf, or the borders are showing double on some cells. Even height gets messed up on random rows. Some html disappears, like <textarea> but I can live with that. Even though I have gone trought the code and also played around with various tables to see if I can see what provokes Powerapps to slip on the pdf, I can not find a good explanation.
I checked out some of the pay-ware versions for converting html to pdf. They look nice, but I created my tables and forms based on a PDF that already exists and need to have that little bit of extra possibility of customzation. I`d like my newly created PDF to look like the original as much as possible.
Can anyone share their experiences with creating complex pdf`s forms from html/css and what type of expressions and how much styling you can get away with? Are there any secrets to what Powerapps "likes", like div`s perhaps?