AbcPdf - a document that does not use CSS

This may be a technical support issue, but I wonder if other developers have come across it:

I use Abcpdf in my ASP.NET code to create PDF from HTML. It works fine, but one user creates PDF files that do not have CSS (the latest version of IE8, Adobe Acrobat is the same as everyone else). Since this is the only user complaining, I am sure that this is a local setting, but I can’t understand what would prevent the loading of css - setting up the browser? Configure Acrobat?

Does anyone have any suggestions?

+5
source share
6 answers

Perhaps a problem with different versions of Acrobat Reader? I would look at that.

, AbcPdf PDF , (, AddImageUrl ..).

WebSuperGoo ( AbcPdf) . , .

+3

, media = "print" CSS! , , WebSuperGoo, . , , , , , EngineType.Gecko media = "print", , EngineType.MSHtml, media = "screen".....

, , - !

+3

, CSS URL, , HTML

,

<style type="text/css" href="/styles/somecss.css" rel="stylesheet" />

<style type="text/css" href="http://myserver.com/styles/somecss.css" rel="stylesheet" />

, SSL , , PDF, ABCPdf

+1

9

doc.HtmlOptions.PageLoadMethod = 
     PageLoadMethodType.WebBrowserNavigate;
+1

:

theDoc.HtmlOptions.DoMarkup = true;

HTML .

0

10 ABCpdf, , , .

"C:\MyProject\Resources\Styles.css" "http:\www.MyDomain.com\Resources\Styles.css" .

6 .

WebSuperGoo support:

( №: 6.17)

HTML .

External stylesheets and images are often referenced via relative URLs. Since HTML does not hold, it is not possible to resolve these relative links.

So, you need to provide links to styles and images as absolute links. Or you can use the HTML BASE element to indicate the appropriate base location. Or you can save your HTML to a file in the appropriate place, and then use AddImageUrl.

0
source

All Articles