Birkaç saatliğine kafamı çarptım ve eminim ki çözüm gayet basit veya mevcut değil.pandoc, html'yi stil sayfasına dönüştürür.
Bir html dosyasını docx'e dönüştürmeye çalışıyorum!
<!DOCTYPE html>
<html>
<head>
<style>
body {
background-color: #d0e4fe;
}
h1 {
color: orange;
text-align: center;
}
p {
font-family: "Times New Roman";
font-size: 20px;
}
</style>
</head>
<body>
<h1>My First CSS Example</h1>
<p>This is a paragraph.</p>
</body>
</html>
Bunu dönüştüremiyorum, ancak stilleri yapıştıramıyor.
pandoc -s myfile.html -o test64.docx
pandoc -s -c myfile.css myfile.html -o test64.docx
Lütfen beni kaydedin.
pandoc -s myfile.html --template=my_template -o test64.docx
Bu çözümü test edilmiş ve basit bir HTML dosyasındaki yazı rengini korumaz çalıştırın. –Denediğin şey hakkında biraz daha bilgi verebilir misin? –
@BlackFrog herhangi bir çözüm buldunuz mu? – SKR