Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pictures #4

Open
Fruchtgummi opened this issue Jul 14, 2020 · 2 comments
Open

Pictures #4

Fruchtgummi opened this issue Jul 14, 2020 · 2 comments

Comments

@Fruchtgummi
Copy link

Fruchtgummi commented Jul 14, 2020

How I get a pictures from a url to my PDF?

LaTex

\documentclass{article}
\usepackage{graphicx} % includegraphics command is implemented here
\begin{document}

\write18{wget http://www.example.com/path/to/image.png}
\includegraphics{image.png}

\end{document}

I use MD to PDF with xelatex

please help

@xujinzheng
Copy link
Member

you could insert picture with base64 format as follow

### Title

- content

#### Examle Image: 
![](data:image/png;base64,****)

the **** means base64 of image, you could get base64 by command (MacOS):

base64 image.png

@Fruchtgummi
Copy link
Author

ok that's is right... but..

I use Latex-script

my Request:


{
	"fetcher": {
		"name": "data",
		"params": {
			"data": "vl...."
		}
	},
	"converter":{
	   "from": "markdown",
	   "to" : "pdf",
       "pdf_engine": "pdflatex",
	    "standalone": true,
	    "variable":{
          "title":"test",
          "subject":"wg",
          "documentclass":"article",
          "papersize":"a4paper",
          "fontsize":"11pt",
          "companylogo":"base64-img"
	    },
	    "template": "/app/data/marc.template"
	},
	"template": "binary"
}

i send a base64 img on variables and I want latex use to render img.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants