# Glide and URLbox

**URL:** <https://community.glideapps.com/t/glide-and-urlbox/69234>\
**Category:** Ask for Help\
**Created:** [January 4, 2024, 12:14pm UTC](https://community.glideapps.com/t/glide-and-urlbox/69234 "2024-01-04T12:14:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Si\_Gal](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/si_gal/32/79433_2.png) [@Si\_Gal](https://community.glideapps.com/u/Si_Gal)\
**Post date:** [January 4, 2024, 12:14pm UTC](https://community.glideapps.com/t/glide-and-urlbox/69234/1 "2024-01-04T12:14:36Z")

</div>

Hi,

I am using the URLbox integration. I have built the following table with HTML and CSS:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/0/1087ebc8b434320cf2644087c796a22a3ca69b62.png)

but when I try and to generate the pdf using URLbox I get what looks like an error.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/a/3a4fc7f8c3d408c1c882d2fc9d1f4c4722b0862f.png)

does anyone know what this might be?

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [January 4, 2024, 11:39pm UTC](https://community.glideapps.com/t/glide-and-urlbox/69234/2 "2024-01-04T23:39:44Z")

</div>

Can you show us how you’re configuring your Urlbox action?

---

<div class="post-metadata">

**Author:** ![Si\_Gal](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/si_gal/32/79433_2.png) [@Si\_Gal](https://community.glideapps.com/u/Si_Gal)\
**Post date:** [January 5, 2024, 10:11am UTC](https://community.glideapps.com/t/glide-and-urlbox/69234/3 "2024-01-05T10:11:51Z")

</div>

Hi,

After a ton of troubleshooting, what i’ve found is that I seem to be limited to 64 lines of CSS. Anything I add on line 65, no matter how simple, throws up the error.  
I’m currenyly using a template column but i’ve also tried on a text column and the same thing happens on line 65.

Any thoughts?

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [January 6, 2024, 12:11am UTC](https://community.glideapps.com/t/glide-and-urlbox/69234/4 "2024-01-06T00:11:59Z")

</div>

> [@police\_car\_light HTML2PDF Deprecated \[UPDATE + ALTERNATIVES\]](https://community.glideapps.com/t/html2pdf-deprecated-update-alternatives/69220/):
>
> What’s up Gliders! Unfortunately Replit recently removed their free plan and automatically unpublished my html2pdf app. This means the original URL is no longer working. I don’t want to leave you all stranded, so if you want to continue generating HTML based PDF’s for free, you have 3 options: 1. Host the code yourself (e.g. on Replit, Render, Netlify, etc): \<!DOCTYPE html\> \<html lang="en"\> \<head\> \<meta charset="UTF-8"\> \<meta name="viewport" content="width=device-width, initial-scale=1.0"\>…

I’m not sure why there’s that limit. Can you try this alternative?

---

<div class="post-metadata">

**Author:** ![Si\_Gal](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/si_gal/32/79433_2.png) [@Si\_Gal](https://community.glideapps.com/u/Si_Gal)\
**Post date:** [January 15, 2024, 9:32am UTC](https://community.glideapps.com/t/glide-and-urlbox/69234/5 "2024-01-15T09:32:07Z")

</div>

I got to the bottom of this:

Apologies for not getting back to you sooner. I was able to confirm the current implementation of the Glide/UrlBox integration passes the HTML and CSS to UrlBox via a URL. As such, we’re limited to [~2MB of text](https://chromium.googlesource.com/chromium/src/+/master/docs/security/url_display_guidelines/url_display_guidelines.md#url-length) (depending on browser implementation). In your case, the limit is getting hit somewhere between lines 64 and 65 of the CSS. Remember, this includes the HTML, CSS, and additional parameters used in the API call. On top of that the [URL is url-encoded](https://en.wikipedia.org/wiki/Percent-encoding), which means special characters will be converted to multiple characters.

You’ll need to reduce the complexity of your HTML and CSS in order to successfully use the UrlBox integration.
