Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

HTML to PDF Inline approach : Issues while refering external CSS file

$
0
0

Hi Aspose team,

 

We are using Aspose.pdf for converting html to pdf. In our html we are referring multiple CSS files. We are using pdf.HtmlInfo.ExternalResourcesBasePath = http://abc:123 to provide base path url for external CSS file and we are referring below mentioned CSS files through <link> tag in html page.

href='/_layouts/15/1033/styles/Themable/corev15.css?rev=ox%2BqLd6WTqhn6d%2FMqf2BMw%3D%3D'

href='/sites/DPATL/Style%20Library/en-US/Themable/Core%20Styles/controls15.css'

Now the problem here is we have added one class in above corev15.css file
  .caption img {
    height: auto;
    width: auto;
    -webkit-border-radius: 20px;
    border-radius: 20px; }

Baiscally this class provides rounded edges for images, but we are unable to find rounded edges in PDF file that is getting generated.(Rest all classes in that CSS file are getting applied) :(
And it is also observed that controls.css file is not getting applied at all in pdf.


Can you team guide us with solution on this issue..? In our code we are also passing network credentials to access images.

 

Thanks in advance.


 

 

 

 

 

 

 


Viewing all articles
Browse latest Browse all 3131

Trending Articles