View Single Post
Old 05-22-2012, 08:49 PM   #1
Sneddles
Member
Sneddles began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Feb 2012
Device: Kindle keyboard
PDF to HTMLZ conversion stylesheet problem

I have noticed on some PDFs that when they are converted to HTMLZ with class used for handling CSS, then the stylesheet does not include the named classes but only contains:
@page{
margin-bottom: 5pt;
marging-top: 5pt
}

This happens for both internal and external stylesheets.

If I use inline for the CSS then the style looks correct.

As an experiment, I tried the same conversion without using the search & replace function and the stylesheet was generated correctly. The stylesheet did not include any @page entry.

I am using Calibre 0.8.52, but the problem has happened with earlier versions.
I'm not sure if it was happening before the enhanced search & replace function was introduced.
Sneddles is offline   Reply With Quote