Re: How to use external css file?

iText mailing list <[email protected]> Thu, 28 Jan 2016 14:07:29 +0100
Newsgroups gmane.comp.java.lib.itext.general
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============3152405437818177364==
Content-Type: multipart/alternative;
	boundary="------------010004080402000400090703"

This is a multi-part message in MIME format.
--------------010004080402000400090703
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit

On 1/28/2016 12:09 PM, Srdjan Dejanovic wrote:
>
> Hi,
>
> I am using iTextSharp.
>
> Can you send me complete example how you generate pdf using external 
> css file?
>

If you look for the key word XML Worker on the official site, you'll 
find a lot of examples: http://itextpdf.com/tags/xml-worker
You can also browse the FAQ: 
http://developers.itextpdf.com/faq/category/parsing-xml-and-xhtml
You can find a lot of examples here: 
http://developers.itextpdf.com/examples/xml-worker

For specific CSS examples, search for CSS: 
http://developers.itextpdf.com/search/node/CSS
See for instance: 
http://developers.itextpdf.com/question/how-add-external-css-while-generating-pdf

Please search the site before asking a question on a mailing-list that 
was discontinued and on which you aren't subscribed.
Most of the examples are written in Java, but it shouldn't be a problem 
for a C# developer to port them to iTextSharp.

--------------010004080402000400090703
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 1/28/2016 12:09 PM, Srdjan Dejanovic
      wrote:<br>
    </div>
    <blockquote
      cite="mid:[email protected]"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
      <style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:Webdings;
	panose-1:5 3 1 2 1 5 9 6 7 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
	{mso-style-priority:99;
	mso-style-link:"Balloon Text Char";
	margin:0in;
	margin-bottom:.0001pt;
	font-size:8.0pt;
	font-family:"Tahoma","sans-serif";}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
span.BalloonTextChar
	{mso-style-name:"Balloon Text Char";
	mso-style-priority:99;
	mso-style-link:"Balloon Text";
	font-family:"Tahoma","sans-serif";}
.MsoChpDefault
	{mso-style-type:export-only;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal">Hi,<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">I am using iTextSharp.<o:p></o:p></p>
        <p class="MsoNormal">Can you send me complete example how you
          generate pdf using external css file?<br>
        </p>
      </div>
    </blockquote>
    <br>
    If you look for the key word XML Worker on the official site, you'll
    find a lot of examples: <a class="moz-txt-link-freetext" href="http://itextpdf.com/tags/xml-worker">http://itextpdf.com/tags/xml-worker</a><br>
    You can also browse the FAQ:
    <a class="moz-txt-link-freetext" href="http://developers.itextpdf.com/faq/category/parsing-xml-and-xhtml">http://developers.itextpdf.com/faq/category/parsing-xml-and-xhtml</a><br>
    You can find a lot of examples here:
    <a class="moz-txt-link-freetext" href="http://developers.itextpdf.com/examples/xml-worker">http://developers.itextpdf.com/examples/xml-worker</a><br>
    <br>
    For specific CSS examples, search for CSS:
    <a class="moz-txt-link-freetext" href="http://developers.itextpdf.com/search/node/CSS">http://developers.itextpdf.com/search/node/CSS</a><br>
    See for instance:
<a class="moz-txt-link-freetext" href="http://developers.itextpdf.com/question/how-add-external-css-while-generating-pdf">http://developers.itextpdf.com/question/how-add-external-css-while-generating-pdf</a><br>
    <br>
    Please search the site before asking a question on a mailing-list
    that was discontinued and on which you aren't subscribed.<br>
    Most of the examples are written in Java, but it shouldn't be a
    problem for a C# developer to port them to iTextSharp.<br>
  </body>
</html>

--------------010004080402000400090703--


--===============3152405437818177364==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
--===============3152405437818177364==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
--===============3152405437818177364==--