Forgot password?
 Create new account
View 132|Reply 0

Metapost生成的pdf不合法

[Copy link]

3147

Threads

8493

Posts

610K

Credits

Credits
66163
QQ

Show all posts

hbghlyj Posted at 2023-2-16 05:41:37 |Read mode
使用
  1. prologues := 3;
  2. outputtemplate := "%j%c.pdf";
  3. beginfig(1);
  4. endfig;
  5. end.
Copy the Code
自动生成的pdf不合法, 如 $type 1.pdf (16.49 KB, Downloads: 29)
用pdf.js或PDFium无法打开. 但用SumatraPDF可以打开.
TeX.SE的解决方案: 生成eps再使用epstopdf转换为pdf.
but usually I prefer to convert the EPS to PDF using epstopdf rather than rely on the automatic conversion

手机版Mobile version|Leisure Math Forum

2025-4-20 22:16 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list