[gut] pdf to inskscape

14 views
Skip to first unread message

Patrick Dupre

unread,
Aug 27, 2023, 8:00:04 AM8/27/23
to gut
Bonjour,

J'ai des fichiers pdf generes il y a 4 ans (beamer/latex).
Je peux toujours faire inkscape foo.pdf.
Mais, si je reprends les memes fichiers et les recompile pour
generer un pdf. ils ne sont plus supportes pas inkscape.

** (org.inkscape.Inkscape:6601): ERROR **: 13:20:50.614:
unhandled exception (type std::exception) in signal handler:
what: input string not valid UTF-8

Des idees ?
Malheureusement, je ne vois pas comment generer des fichiers pdf analogues
a ceux d'il y a 4 ans !

Merci.

===========================================================================
Patrick DUPRÉ | | email: pdu...@gmx.com
Laboratoire interdisciplinaire Carnot de Bourgogne
9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE
===========================================================================


Philippe MICHEL

unread,
Aug 27, 2023, 8:11:27 AM8/27/23
to g...@ens.fr
J'ouvre avec Inkscape des fichiers pdf tous frais, générés via luaLaTeX,
sans aucun problème.

Ton problème ressemble à un soucis d'encodage, vérifie que tout est bien
en UTF-8 d'un bout à l’autre de la chaine.

Bien amicalement,

Dr Philippe MICHEL

Patrick Dupre

unread,
Aug 27, 2023, 8:44:47 AM8/27/23
to g...@ens.fr, g...@ens.fr
Merci Michel,

Comment je verifie cela ?
En fait j'utilise lyx pour generer mes beamer
Si je passe en LuaTeX, je semble que je ne puisse plus
utiliser les fonts utopia
Et j'ai une erreur:

beamerouterthemeinfolines.sty))

! LaTeX Error: Encoding scheme `FMS' unknown.

See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...

l.63 ...areMathAlphabet{\mathscr}{FMS}{futm}{m}{n}
%
Your command was ignored.
Type I <command> <return> to replace it with another command,
or <return> to continue without it.


===========================================================================
Patrick DUPRÉ | | email: pdu...@gmx.com
Laboratoire interdisciplinaire Carnot de Bourgogne
9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE
===========================================================================


> Sent: Sunday, August 27, 2023 at 2:11 PM
> From: "Philippe MICHEL" <phil...@docteur-michel.fr>
> To: g...@ens.fr
> Subject: Re: [gut] pdf to inskscape

Patrick Dupre

unread,
Aug 27, 2023, 9:08:02 AM8/27/23
to g...@ens.fr
Avec ce fichier je peu genere le pdf
luatex,
mais inskscape me donne


\documentclass[american,handout,compress,xcolor=dvipsnames,table]{beamer}
\usepackage{amssymb}
\usepackage{fontspec}
\setcounter{secnumdepth}{0}
\setcounter{tocdepth}{1}
\ifx\hypersetup\undefined
\AtBeginDocument{%
\hypersetup{unicode=true,
bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,
breaklinks=false,pdfborder={0 0 1},backref=false,colorlinks=false,pdftitle={Saturated Absorption by Frequency Modulation Spectroscopy, HD and C2H2},
pdfauthor={P. Dupr\'e},
pdfsubject={Poster Dijon 2019}}
}
\else
\hypersetup{unicode=true,
bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,
breaklinks=false,pdfborder={0 0 1},backref=false,colorlinks=false,pdftitle={Saturated Absorption by Frequency Modulation Spectroscopy, HD and C2H2},
pdfauthor={P. Dupr\'e},
pdfsubject={Poster Dijon 2019}}
\fi

\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
% this default might be overridden by plain title style
\newcommand\makebeamertitle{\frame{\maketitle}}%
% (ERT) argument for the TOC
\AtBeginDocument{%
\let\origtableofcontents=\tableofcontents
\def\tableofcontents{\@ifnextchar[{\origtableofcontents}{\gobbletableofcontents}}
\def\gobbletableofcontents#1{\origtableofcontents}
}

\@ifundefined{date}{}{\date{}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
%use handout in custom to get a print version
\usepackage{upgreek}% why OK here?

%\useoutertheme{default}
\usetheme{Madrid}%[compress]
%\usetheme{CambridgeUS}
%\usefonttheme{serif}
%\setbeamersize{text margin left = +20pt, text margin right = +17.5pt}
%\usepackage{microtype}
\usepackage{colortbl}


%\definecolor{sangria}{rgb}{0.57, 0.0, 0.04}
\definecolor{rossocorsa}{rgb}{0.83, 0.0, 0.0}
\usecolortheme[named=rossocorsa]{structure}
%\usetheme{Warsaw}%[compress]
%\setbeamertemplate{footline}[page number]{} % poster only
%\setbeamertemplate{navigation symbols}{} % poster only
% For beamerposter comment the begin of the document (latex)

\usefonttheme{serif}
\newcommand\bmmax{0}% default 4
%\newcommand{\hmmax}{0}% default 3
\usepackage{bm} % said provides in local layout
\usepackage{xcolor}
%\usecolortheme{lily}

%%\usepackage{doublespace}%Does not work with beamer
\usepackage{etex}
\usepackage{pst-all,pstricks-add}
%\usepackage[usenames]{color}
\usepackage{crayola}
%\usetikzlibrary{snakes,calc,positioning,backgrounds}
\usepackage[customcolors]{hf-tikz}
\usepackage{colortbl}
%\usepackage[table]{xcolor}

%\author{Patrick DUPR\'E}
\setlength{\abovecaptionskip}{0.85cm} % for figures and tables
\setlength{\belowcaptionskip}{0.25cm} % for figures and tables
%\setlength{\abovedisplayshortskip=0pt}

%\renewcommand{\arraycolsep}{2.5pt} % Wigner symbols
\setlength{\tabcolsep}{2.5pt}% 6pt

%\setbeamerfont{frametitle}{size=\HUGE, series=\usefont{OT1}{phv}{bc}{n}}

\definecolor{UniBlue}{RGB}{83,121,170}
\definecolor{tractorred}{rgb}{0.99, 0.05, 0.21}
\definecolor{pastelyellow}{rgb}{0.99, 0.99, 0.59}
\setbeamercolor{palette primary}{fg=yellow} % Title
\setbeamercolor{alerted text}{fg=tractorred,bg=}
\setbeamercolor{palette secondary}{fg=pastelyellow} % Short Title
\setbeamercolor{palette tertiary}{fg=pastelyellow} % Author
\setbeamercolor{section number projected}{fg=pastelyellow}
\setbeamercolor{palette quaternary}{fg=yellow} % Date
\setbeamercolor{section number projected}{fg=pastelyellow}
%\setbeamercolor{footnote}{fg=green}

%\setbeamercolor{palette quaternary}{bg=colorBgTop4,fg=white}
\setbeamerfont{title}{series=\bfseries,size=\Huge}
\setbeamerfont{institute}{series=\bfseries,size=\small}
\setbeamercolor{institute}{fg=magenta}
\setbeamerfont{frametitle}{series=\bfseries}
%\setbeamercolor{date}{fg=yellow}
\setbeamerfont{subsection in toc}{size=\footnotesize}
\setbeamercolor{subsection in toc}{fg=UniBlue}
%\setbeamertemplate{frametitle}{size=ht=4.25ex}

%\usepackage{fancybox}
%\fancyput(2.0in,-5in){\Huge\bfseries\rotatebox{45}{\textcolor{yellow}{Do not Dissiminate}}}
\DeclareMathSizes{6} {6} {4} {4} % For superscript in short Title
\beamertemplatenavigationsymbolsempty %remove navigation

%http://stackoverflow.com/questions/2611276/latex-beamer-way-to-change-the-bullet-indentation

\AtBeginDocument{
\def\labelitemii{\(\ast\)}
\def\labelitemiii{\normalfont\bfseries{--}}
}

\makeatother

\usepackage{polyglossia}
\setdefaultlanguage[variant=american]{english}
\begin{document}
\title[SA by FM]{About the }

\makebeamertitle
%

\section{Introduction/Motivations}
\begin{frame}[allowframebreaks]{Introduction}
\begin{itemize}
\item \textbf{Saturation Absorption Spectroscopy} of gaseous species
\end{itemize}
\end{frame}
%

\end{document}
----------------------------------------
** (org.inkscape.Inkscape:23581): WARNING **: 15:01:31.192: Failed to find resource file 'inkex.py'. Looked in:
/home/pdupre/.config/inkscape/extensions/inkex.py
(null)
/usr/share/inkscape/extensions/inkex.py

(org.inkscape.Inkscape:23581): Gtk-WARNING **: 15:01:33.586: Failed to set text from markup due to error parsing markup: Error on line 1 char 43: Invalid UTF-8 encoded text in name — not valid “\xfe\xff”

(org.inkscape.Inkscape:23581): Gtk-WARNING **: 15:01:33.587: Failed to set text from markup due to error parsing markup: Error on line 1 char 43: Invalid UTF-8 encoded text in name — not valid “\xfe\xff”

(org.inkscape.Inkscape:23581): Gtk-WARNING **: 15:01:33.605: Failed to set text from markup due to error parsing markup: Error on line 1 char 43: Invalid UTF-8 encoded text in name — not valid “\xfe\xff”

(org.inkscape.Inkscape:23581): Gtk-WARNING **: 15:01:33.605: Failed to set text from markup due to error parsing markup: Error on line 1 char 43: Invalid UTF-8 encoded text in name — not valid “\xfe\xff”

(org.inkscape.Inkscape:23581): Gtk-WARNING **: 15:01:33.607: Failed to set text from markup due to error parsing markup: Error on line 1 char 43: Invalid UTF-8 encoded text in name — not valid “\xfe\xff”

(org.inkscape.Inkscape:23581): Gtk-WARNING **: 15:01:33.607: Failed to set text from markup due to error parsing markup: Error on line 1 char 43: Invalid UTF-8 encoded text in name — not valid “\xfe\xff”

(org.inkscape.Inkscape:23581): Gtk-WARNING **: 15:01:33.607: Failed to set text from markup due to error parsing markup: Error on line 1 char 43: Invalid UTF-8 encoded text in name — not valid “\xfe\xff”

(org.inkscape.Inkscape:23581): Gtk-WARNING **: 15:01:33.607: Failed to set text from markup due to error parsing markup: Error on line 1 char 43: Invalid UTF-8 encoded text in name — not valid “\xfe\xff”

(org.inkscape.Inkscape:23581): Gtk-WARNING **: 15:01:33.706: Failed to set text from markup due to error parsing markup: Error on line 1 char 43: Invalid UTF-8 encoded text in name — not valid “\xfe\xff”

(org.inkscape.Inkscape:23581): Gtk-WARNING **: 15:01:33.706: Failed to set text from markup due to error parsing markup: Error on line 1 char 43: Invalid UTF-8 encoded text in name — not valid “\xfe\xff”

(org.inkscape.Inkscape:23581): Gtk-WARNING **: 15:01:33.708: Failed to set text from markup due to error parsing markup: Error on line 1 char 43: Invalid UTF-8 encoded text in name — not valid “\xfe\xff”

(org.inkscape.Inkscape:23581): Gtk-WARNING **: 15:01:33.709: Failed to set text from markup due to error parsing markup: Error on line 1 char 43: Invalid UTF-8 encoded text in name — not valid “\xfe\xff”

(org.inkscape.Inkscape:23581): Gtk-WARNING **: 15:01:33.844: Failed to set text from markup due to error parsing markup: Error on line 1 char 43: Invalid UTF-8 encoded text in name — not valid “\xfe\xff”

(org.inkscape.Inkscape:23581): Gtk-WARNING **: 15:01:33.844: Failed to set text from markup due to error parsing markup: Error on line 1 char 43: Invalid UTF-8 encoded text in name — not valid “\xfe\xff”

(org.inkscape.Inkscape:23581): Gtk-WARNING **: 15:01:33.844: Failed to set text from markup due to error parsing markup: Error on line 1 char 43: Invalid UTF-8 encoded text in name — not valid “\xfe\xff”

(org.inkscape.Inkscape:23581): Gtk-WARNING **: 15:01:33.844: Failed to set text from markup due to error parsing markup: Error on line 1 char 43: Invalid UTF-8 encoded text in name — not valid “\xfe\xff”

(org.inkscape.Inkscape:23581): Pango-WARNING **: 15:01:33.886: Invalid UTF-8 string passed to pango_layout_set_text()

(org.inkscape.Inkscape:23581): Pango-WARNING **: 15:01:33.905: Invalid UTF-8 string passed to pango_layout_set_text()

(org.inkscape.Inkscape:23581): Pango-WARNING **: 15:01:33.905: Invalid UTF-8 string passed to pango_layout_set_text()

(org.inkscape.Inkscape:23581): Pango-WARNING **: 15:01:33.905: Invalid UTF-8 string passed to pango_layout_set_text()

(org.inkscape.Inkscape:23581): Pango-WARNING **: 15:01:33.905: Invalid UTF-8 string passed to pango_layout_set_text()

** (org.inkscape.Inkscape:23581): CRITICAL **: 15:01:34.181:
unhandled exception (type Glib::Error) in signal handler:
domain: g_convert_error
code : 1
what : Invalid byte sequence in conversion input


(org.inkscape.Inkscape:23581): Pango-WARNING **: 15:01:34.197: Invalid UTF-8 string passed to pango_layout_set_text()

(org.inkscape.Inkscape:23581): Pango-WARNING **: 15:01:34.197: Invalid UTF-8 string passed to pango_layout_set_text()

** (org.inkscape.Inkscape:23581): ERROR **: 15:01:34.979:
unhandled exception (type std::exception) in signal handler:
what: input string not valid UTF-8



===========================================================================
Patrick DUPRÉ | | email: pdu...@gmx.com
Laboratoire interdisciplinaire Carnot de Bourgogne
9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE
===========================================================================


> Sent: Sunday, August 27, 2023 at 2:11 PM
> From: "Philippe MICHEL" <phil...@docteur-michel.fr>
> To: g...@ens.fr
> Subject: Re: [gut] pdf to inskscape
>

Pétiard François

unread,
Aug 27, 2023, 10:06:39 AM8/27/23
to g...@ens.fr
Bonjour

Voilà ce que j'obtiens :

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Package hyperref Warning: Option `bookmarks' has already been used,
(hyperref)                setting the option has no effect on input line 19.

...

Package hyperref Warning: Option `backref' has already been used,
(hyperref)                setting the option has no effect on input line 19.
...

Package etex Warning: Extended allocation already in use.
(etex)                etex.sty code will not be used.
(etex)                To force etex package to load, add
(etex)                \RequirePackage{etex}
(etex)                at the start of the document.
...

! LaTeX Error: File `crayola.sty' not found.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

et il n'y a pas de fichier crayola.sty sur CTAN...

François

Patrick Dupre

unread,
Aug 27, 2023, 10:09:51 AM8/27/23
to g...@ens.fr, g...@ens.fr
Juste ceci

\documentclass[american]{beamer}

\makeatother

%\usepackage{polyglossia}

\begin{document}
\title[]{About the }

\section{Introduction/Motivations}
\begin{frame}{Introduction}
\begin{itemize}
\item Saturation Absorption Spectroscopy of gaseous species
\end{itemize}
\end{frame}

\end{document}

avec pdflatex
inkscape out.pdf

gives me an error.



> Sent: Sunday, August 27, 2023 at 4:06 PM
> From: "Pétiard François" <petiard....@gmail.com>
> To: g...@ens.fr
> Subject: Re: [gut] pdf to inskscape
>

Pétiard François

unread,
Aug 27, 2023, 10:24:33 AM8/27/23
to g...@ens.fr
Compilation avec pdflatex ou lualatex : erreur avec Inkscape en
importation interne ; en revanche, aucune erreur avec Inkscape en import
avec Cairo (Inkscape version 1.3).

François

Patrick Dupre

unread,
Aug 27, 2023, 10:31:58 AM8/27/23
to g...@ens.fr, g...@ens.fr
>
> Compilation avec pdflatex ou lualatex : erreur avec Inkscape en
> importation interne ; en revanche, aucune erreur avec Inkscape en import
> avec Cairo (Inkscape version 1.3).

Le prbleme est que je ne peux par recuperer tous les slides (50) d'un seul coup
avec Cairo.
La chose bizarre c'est que vendredi, j'ai pu faire tous ce que je voulais
sur un fichier pdf issue de beamer/pdflatex (avec 50 slides), et que depuis c'est impossible !!!

Patrick Dupre

unread,
Aug 27, 2023, 10:38:38 AM8/27/23
to g...@ens.fr, g...@ens.fr
L'autre bizarrerie sur cet exemple c'est aue ca marche avec
latex, dvipdf !!

Philippe MICHEL

unread,
Aug 27, 2023, 10:42:19 AM8/27/23
to g...@ens.fr
J'ai compilé ton exemple avec luaLaTeX puis avec pdfLaTeX. Dans les deux
cas j'ai ouvert le pdf avec inskscape sans problème en utilisant ou non
Cairo.

Dr Philippe MICHEL

Patrick Dupre

unread,
Aug 27, 2023, 10:51:39 AM8/27/23
to g...@ens.fr
Est-ce que tu peux m'envoyer le pdf ?

Pétiard François

unread,
Aug 27, 2023, 11:37:08 AM8/27/23
to g...@ens.fr
Quelle version de Inkscape ?

François

Philippe MICHEL

unread,
Aug 27, 2023, 11:41:00 AM8/27/23
to g...@ens.fr
Inkscape 1.2.2

TeXlive 2022 complètement d'origine

Debian trixie/sid

Dr Philippe MICHEL

Pétiard François

unread,
Aug 27, 2023, 11:46:05 AM8/27/23
to g...@ens.fr
Merci.

Pour moi : Windows 10 pro, MiKTeX à jour.

Avec Inkscape 1.1, pas de problème.

Avec Inkscape 1.3, ça plante.

François

Patrick Dupre

unread,
Aug 27, 2023, 11:52:01 AM8/27/23
to g...@ens.fr, g...@ens.fr
1.3

quark67

unread,
Aug 28, 2023, 6:53:04 PM8/28/23
to g...@ens.fr
Le 27 août 2023 à 16:06, Pétiard François <petiard....@gmail.com> a écrit :

! LaTeX Error: File `crayola.sty' not found.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

et il n'y a pas de fichier crayola.sty sur CTAN…

Fort occupé ailleurs, je réponds tardivement avec ce que j'ai trouvé.

Le document compile parfaitement pour peu que l'on commente le chargement du package crayola, excepté quelques warnings non liés à ce package. L'exemple de l'auteur de la question n'était donc pas minimal, loin de là.

J'ai trouvé un crayola.sty ici : https://github.com/BlakeSchultze/LaTeX-Packages, dans le README.md. Voir le point 8 : my-colorsets.sty : Adds several color sets to the available colors, suivi d'une liste de 6 noms de fichiers .sty, dont crayola.sty. Je n'ai pas installé ce truc, mais je n'ai pas l'impression qu'il définit un package qui se charge sous le nom de crayola.sty. Ça a l'air d'être un ensemble de packages à destination de l'auteur, donc pas très documenté. On trouve dans https://github.com/BlakeSchultze/LaTeX-Packages/blob/master/doc/Examples/color/color_table.pdf à la page 12 un tableau des couleurs Crayola. Rien d'important pour démontrer le problème ici (les pdfs générés par LaTeX et Inkscape). 



Reply all
Reply to author
Forward
0 new messages