This commit bundles together a wide range of additions and modifications: - A large number of new test CAD files (.dxf, .dwg) and expected output files (.pdf) have been added to the
1004 B
1004 B
1、通过aposecad库,找到导入的dwg,所有布局里的,特定名字的块;获得这部分特定块的坐标(矩形)
PAPER_SIZES_MM = { "A4": {"landscape": (297, 210), "portrait": (210, 297)}, "A3": {"landscape": (420, 297), "portrait": (297, 420)}, "A2": {"landscape": (594, 420), "portrait": (420, 594)}, "A1": {"landscape": (841, 594), "portrait": (594, 841)}, "A0": {"landscape": (1189, 841), "portrait": (841, 1189)}, }
PRINTABLE_BLOCKS = { "A$C2EB80DB8": ("A1", "portrait"), "A$C1CC9093B": ("A1", "landscape"), "A$C6D564680": ("A2", "portrait"), "新块": ("A3", "landscape"), "新块1": ("A4", "portrait"),