0

My document is based on PDFLaTeX, if I run the TeX application file through PDFLaTeX, then I don't have any issues, but if I run the same file for HTML conversion through TeX4ht, then the following error comes:

enter image description here

My code is follows:

\documentclass{book}
\usepackage[pdftex]{graphicx}
\begin{document}

\chapter{Test Chapter}

This is for test

\end{document}

Note that I am using MikTeX V2.9 and the conversion command is used as:

htlatex test "xhtml,fn-in" " -cunifht" "-cvalidate -p"

Also note that for the whole project most of the figures are in .pdf format and some of the images are in .jpg and .png format and very few in .eps format, hence I have used epstopdf.sty... Please suggest...

  • 1
    Isn't htlatex working on the dvi file? Not pdf? – Johannes_B Aug 4 '17 at 6:46
  • 2
    Remove option pdftex for graphicx. It doesn't do anything really usefull. – Johannes_B Aug 4 '17 at 6:48
  • Sorry, but some of the figures are in PDF format, I didn't include that... – MadyYuvi Aug 4 '17 at 6:50
  • Please give a minimal working example of your issue. We can't check much without that. Besides this, I'm never naming the driver. Does it work if you remove [pdftex] ? – Keks Dose Aug 4 '17 at 8:55
  • htlatex can work with PDF images, but it needs to be configured for that. – michal.h21 Aug 4 '17 at 9:09
1

I have found solution for my requirement and the link is PDF image files and `htlatex` Special Thanks to Michal....

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.