Jump to content
  • 0

"Generate Invoices with Caspio PDF" How to Make iFrame Responsive



I have followed this fairly new tutorial by Caspio on YouTube that shows you how to build an invoice PDF. 

The PDF looks and works great - except for one downfall. Ned uses an iFrame of a Tabular Report and embeds this into an HTML Block on his Details page (which is the page for the PDF). He sets "1000" for both width and height values of the iFrame. This works great for small 1 page invoices, but only 1 page. If you have results from the tabular report that are longer than 1 page, those items get cut off.

I have tried following a few different articles online to make the iframe responsive, but it doesn't seem to work for the the PDF workflow. Basically, what I am trying to do, is make the iFrame's height be as big as it needs to be without a set limit. 

Any help is appreciated!

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

@IamNatoyThatLovesYou I believe I have found a solution.

I did some more digging in these forums and found an answer by the late and great @DefinitelyNot31337

Please scroll down to his workflow and try it out on your PDF pages. With minimal tinkering, I was able to get my PDF page to extend onto a 2nd page if necessary.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...