解决python中导出的pdf不能编辑问题
解决,python,导出,pdf,不能,编辑,问题
2025-03-20 08:48:58 时间
python默认输出的pdf格式是type3,这种不能在 Adobe Illustrator中编辑文字等信息,需要改成type42.
import matplotlib as mpl
mpl.rcParams['pdf.fonttype'] = 42
或者直接更改matplotlib的默认设置: 找到matplotlib路径下的matplotlibrc文件,将matplotlibrc里pdf.fonttype : 3改成42
pdf.fonttype : 42 # Output Type 3 (Type3) or Type 42 (TrueType)
相关文章
- Python进阶43-drf框架(五)
- python fileinput_python模块fileinput
- python button使用方法_python gui界面设计
- 在树莓派中使用 MicroPython 接入 MQTT
- Python计算中位数_用频率直方图求中位数
- 【过程记录】python环境离线迁移
- Python基础13-模块的使用
- vscode远程开发python_vscode版本
- 造数据神器Faker,一个有趣又实用的Python第三方库
- python 函数、运算符以及运算符优先级
- python怎么把字体调大_python修改字体
- 【python】分苹果
- USB 摄像头 进行python OpenCV 操作的基础设置【以yolo 目标检测为例】
- python pip源更换国内镜像,速度加快10倍
- OpenCV进行人脸识别(Python)
- Python基础23-SSH模块paramiko
- python测试框架unittest如何设置用例优先级_python 的 unittest 测试框架中的测试依赖怎么解决呢…[通俗易懂]
- Easy Games With Python and Pygame(一)- Pygame Quickstart
- Python-drf前戏38.2-前端Vue02
- Win10配置Airsim环境并设置Python通信