[tex4ht-commits] [SCM] tex4ht updated: r433 - trunk/lit
michal_h21 at gnu.org.ua
michal_h21 at gnu.org.ua
Mon Oct 15 15:39:48 CEST 2018
Author: michal_h21
Date: 2018-10-15 16:39:48 +0300 (Mon, 15 Oct 2018)
New Revision: 433
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-html4.tex
Log:
test for presence of an image converted from a pdf file
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2018-10-01 20:06:20 UTC (rev 432)
+++ trunk/lit/ChangeLog 2018-10-15 13:39:48 UTC (rev 433)
@@ -1,3 +1,8 @@
+2018-10-15 Michal Hoftich <michal.h21 at gmail.com>
+
+ * tex4ht-html4.tex (html4.4ht): test for presence of image converted from
+ pdf file.
+
2018-10-01 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-4ht.tex (graphicx.4ht): defined configurations for \rotatebox
Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex 2018-10-01 20:06:20 UTC (rev 432)
+++ trunk/lit/tex4ht-html4.tex 2018-10-15 13:39:48 UTC (rev 433)
@@ -13634,8 +13634,13 @@
\Configure{graphics*}
{pdf}
{\ifdefined\Gin at page\else\def\Gin at page{1}\fi%
- \Needs{\b:PdfConvert}%
\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
{ \Configure{Needs}{File: \svg:filename}\Needs{}}%
\Picture[\a:GraphicsAlt]{{\svg:filename} |<graphics dim|>}}
More information about the tex4ht-commits
mailing list