Hi everyone,
I am normally super self-sufficient, and have previously been using Prince successfully... but now I am banging my head trying to figure out some things about the way Prince (via docRaptor.com) is rendering (into PDF) my .html file.
Rather than post the HTML here.. in the interest of a making this post a little neater and cleaner, I posted it here instead:
http://www.yellow-turtle.com/_files2showPrinceForum_asking4help/sample4forum_Avery5167_01.html
Normally I use some dynamic code to serve a different version of the file to regular browsers (as opposed to docRaptor/Prince).. but in this file (URL just above), you will see the HTML/CSS just as it is when I hand it to Prince.
Questions... can anyone tell me *why*..:
1.) Why the CSS only works inline? (It does not recognize the page's stylesheet!? You can verify this fact by noticing the 'color:blue;' CSS rule in the file's stylesheet, on the <body> tag; the text is blue in the browser, but not in the PDF.)
2.) Why do the <div>s with 'id="labelInstance_n"' (which are floated) NOT float if I turn off the inline CSS border on the <div id="motherDiv"...>?
* 3.) Why are the last 2 rows of labels removed from the final PDF? If I take out the 'height:10.95in;' inline CSS rule from the <body> and <div id="motherDiv"...> tags.. then those last 2 rows of labels (labels # 73-76, and labels # 77-80) do not get dropped from the final PDF output by docRaptor/Prince, BUT they get put onto a second page of the PDF ! AFAICT that should not be, because the HTML/CSS is supposed to be outputting data for printing onto a single-page AVERY labels template (Avery template #5167).. which fits just right on an 8.5" x 11" standard sheet of paper, with .5" border on the top and bottom (between the paper edge and the data <div>s.
(* most important question, because I do not have any workaround.)
Thanks so much for any help!
-Govinda
I am normally super self-sufficient, and have previously been using Prince successfully... but now I am banging my head trying to figure out some things about the way Prince (via docRaptor.com) is rendering (into PDF) my .html file.
Rather than post the HTML here.. in the interest of a making this post a little neater and cleaner, I posted it here instead:
http://www.yellow-turtle.com/_files2showPrinceForum_asking4help/sample4forum_Avery5167_01.html
Normally I use some dynamic code to serve a different version of the file to regular browsers (as opposed to docRaptor/Prince).. but in this file (URL just above), you will see the HTML/CSS just as it is when I hand it to Prince.
Questions... can anyone tell me *why*..:
1.) Why the CSS only works inline? (It does not recognize the page's stylesheet!? You can verify this fact by noticing the 'color:blue;' CSS rule in the file's stylesheet, on the <body> tag; the text is blue in the browser, but not in the PDF.)
2.) Why do the <div>s with 'id="labelInstance_n"' (which are floated) NOT float if I turn off the inline CSS border on the <div id="motherDiv"...>?
* 3.) Why are the last 2 rows of labels removed from the final PDF? If I take out the 'height:10.95in;' inline CSS rule from the <body> and <div id="motherDiv"...> tags.. then those last 2 rows of labels (labels # 73-76, and labels # 77-80) do not get dropped from the final PDF output by docRaptor/Prince, BUT they get put onto a second page of the PDF ! AFAICT that should not be, because the HTML/CSS is supposed to be outputting data for printing onto a single-page AVERY labels template (Avery template #5167).. which fits just right on an 8.5" x 11" standard sheet of paper, with .5" border on the top and bottom (between the paper edge and the data <div>s.
(* most important question, because I do not have any workaround.)
Thanks so much for any help!
-Govinda