[tex4ht-commits] [SCM] tex4ht updated: r530 - trunk/lit
michal_h21 at gnu.org.ua
michal_h21 at gnu.org.ua
Wed Mar 13 15:56:23 CET 2019
Author: michal_h21
Date: 2019-03-13 16:56:23 +0200 (Wed, 13 Mar 2019)
New Revision: 530
Modified:
trunk/lit/tex4ht-ooffice.tex
Log:
Working on the PDF support
Modified: trunk/lit/tex4ht-ooffice.tex
===================================================================
--- trunk/lit/tex4ht-ooffice.tex 2019-03-13 11:40:42 UTC (rev 529)
+++ trunk/lit/tex4ht-ooffice.tex 2019-03-13 14:56:23 UTC (rev 530)
@@ -1010,6 +1010,24 @@
\Configure{graphics*}
{jpeg}
{|<save image name|>\Picture[IMG]{\imgBase.jpeg |<graphics dimensions|> }}
+
+\NewConfigure{Ghostscript}{1}
+\NewConfigure{PdfConvert}{2}
+\Configure{Ghostscript}{rungs}
+\Configure{PdfConvert}{png}{"\a:Ghostscript\space -q -dNOPAUSE -dBATCH -sDEVICE=pngalpha -r300 \ifx\Gin at page\@empty\else -dFirstPage='\Gin at page' -dLastPage='\Gin at page'\fi\space -sOutputFile='\Gin at base-\Gin at page.\a:PdfConvert' \Gin at base.pdf"}
+\Configure{graphics*}
+ {pdf}
+ {\ifdefined\Gin at page\else\def\Gin at page{1}\fi%
+ \edef\svg:filename{\Gin at base-\Gin at page.\a:PdfConvert}%
+ % test for existence of the converted file
+ \openin15=\svg:filename\relax
+ \ifeof15
+ \Needs{\b:PdfConvert}%
+ \fi
+ \closein15
+ \def\Gin at ext{.\a:PdfConvert}
+ \expandafter\getImgFile\expandafter{\Gin at base}{\a:PdfConvert}%
+ \Picture[IMG]{\svg:filename |<graphics dimensions|>}}
>>>
\<\><<<
@@ -1018,6 +1036,8 @@
{|<save image name|>\Picture[IMG]{\imgBase.eps |<graphics dimensions|> }}
>>>
+
+
\<save image name\><<<
\expandafter\getImgFile\expandafter{\Gin at base}{\Gin at ext}
>>>
More information about the tex4ht-commits
mailing list