# LaTeXML and pdfpages [closed]

I can't find a lot of informations about LaTeXML here but I hope somebody can help me.

In a LaTeX document, I use a `\includepdf` with the option `pages`. I have created a mystyle.sty.ltxml in which I use the following macro :

``````RequirePackage('graphics');
DefMacro('\includepdf[]{}','\includegraphics[#1]{#2}');
``````

When I want to compile with :

``````latexmlpost --dest=mypage.xhtml mydoc.xml, latexmlpost
``````

the script transforms my pdf to a png. But every page is print above the previous, so we can't read the file. (by example, this png was generated from a "3 pages document")

Does someone have a solution ?

-

## closed as off topic by percusse, lockstep, Qrrbrbirlbel, Alan Munn, Joseph Wright♦Oct 7 '12 at 7:24

Questions on TeX - LaTeX Stack Exchange are expected to relate to TeX, LaTeX or related typesetting systems within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here. If this question can be reworded to fit the rules in the help center, please edit the question.