Welcome! Log In Create A New Profile

Advanced

Limits on Header HTML?

Posted by spivurno 
Limits on Header HTML?
January 26, 2012 05:28PM
Is there any limits to what HTML can be used with the setHeaderHTML() method? Here is an example of the code I am trying to use:

http://grab.by/bHv8

However, it turns up blank. I've verified that the URLs to the images I am linking to are correct. Any thoughts?
Re: Limits on Header HTML?
January 27, 2012 02:49PM
This should work.

Make sure that there is enough space for the header; use e.g.
$client->setVerticalMargin("1in");

If it still does not work, please post the full header html code (with $template_url expanded) and we will look into it.
Re: Limits on Header HTML?
January 27, 2012 06:26PM
Hi there!

I had taken the vertical margin into account; however, I tried increasing the margin size more to fully test this out, even at 2 and 3in it is still not displaying. Here is the expanded HTML:

http://pastie.org/3266391

Thanks for your help!
Re: Limits on Header HTML?
January 29, 2012 03:13PM
Hi,

for some (yet unknown) reason loading the images from dl.dropbox.com fails. When the images are served from somewhere else the header shows up correctly:
$client->setHeaderHtml('<div id="header" style="background-image: url(http://s3.pdfcrowd.com/public/misc/header.svg); height: 105px; overflow:hidden;">
  <div id="globe" style="float: right;">
    <img src="http://s3.pdfcrowd.com/public/misc/globe.svg" />
  </div>
</div>');

We will investigate this further but for now it seems the workaround is to move the images referred from header/footer code from dropbox to somewhere else.



Edited 1 time(s). Last edit at 01/29/2012 03:15PM by support.
Re: Limits on Header HTML?
February 01, 2012 09:18AM
Thank you very much. That worked like a charm. :)
Sorry, only registered users may post in this forum.

Click here to login