|
38 | 38 | def svg2svg(bytestring=None, *, file_obj=None, url=None, dpi=96, |
39 | 39 | parent_width=None, parent_height=None, scale=1, unsafe=False, |
40 | 40 | background_color=None, negate_colors=False, invert_images=False, |
41 | | - write_to=None, output_width=None, output_height=None): |
| 41 | + write_to=None, output_width=None, output_height=None, viewbox_id=None): |
42 | 42 | return surface.SVGSurface.convert( |
43 | 43 | bytestring=bytestring, file_obj=file_obj, url=url, dpi=dpi, |
44 | 44 | parent_width=parent_width, parent_height=parent_height, scale=scale, |
45 | 45 | background_color=background_color, |
46 | 46 | negate_colors=negate_colors, invert_images=invert_images, |
47 | 47 | unsafe=unsafe, write_to=write_to, output_width=output_width, |
48 | | - output_height=output_height) |
| 48 | + output_height=output_height, viewbox_id=viewbox_id) |
49 | 49 |
|
50 | 50 |
|
51 | 51 | def svg2png(bytestring=None, *, file_obj=None, url=None, dpi=96, |
52 | 52 | parent_width=None, parent_height=None, scale=1, unsafe=False, |
53 | 53 | background_color=None, negate_colors=False, invert_images=False, |
54 | | - write_to=None, output_width=None, output_height=None): |
| 54 | + write_to=None, output_width=None, output_height=None, |
| 55 | + viewbox_id=None): |
55 | 56 | return surface.PNGSurface.convert( |
56 | 57 | bytestring=bytestring, file_obj=file_obj, url=url, dpi=dpi, |
57 | 58 | parent_width=parent_width, parent_height=parent_height, scale=scale, |
58 | 59 | background_color=background_color, negate_colors=negate_colors, |
59 | 60 | invert_images=invert_images, unsafe=unsafe, write_to=write_to, |
60 | | - output_width=output_width, output_height=output_height) |
| 61 | + output_width=output_width, output_height=output_height, |
| 62 | + viewbox_id=viewbox_id) |
61 | 63 |
|
62 | 64 |
|
63 | 65 | def svg2pdf(bytestring=None, *, file_obj=None, url=None, dpi=96, |
64 | 66 | parent_width=None, parent_height=None, scale=1, unsafe=False, |
65 | 67 | background_color=None, negate_colors=False, invert_images=False, |
66 | | - write_to=None, output_width=None, output_height=None): |
| 68 | + write_to=None, output_width=None, output_height=None, |
| 69 | + viewbox_id=None): |
67 | 70 | return surface.PDFSurface.convert( |
68 | 71 | bytestring=bytestring, file_obj=file_obj, url=url, dpi=dpi, |
69 | 72 | parent_width=parent_width, parent_height=parent_height, scale=scale, |
70 | 73 | background_color=background_color, negate_colors=negate_colors, |
71 | 74 | invert_images=invert_images, unsafe=unsafe, write_to=write_to, |
72 | | - output_width=output_width, output_height=output_height) |
| 75 | + output_width=output_width, output_height=output_height, |
| 76 | + viewbox_id=viewbox_id) |
73 | 77 |
|
74 | 78 |
|
75 | 79 | def svg2ps(bytestring=None, *, file_obj=None, url=None, dpi=96, |
76 | 80 | parent_width=None, parent_height=None, scale=1, unsafe=False, |
77 | 81 | background_color=None, negate_colors=False, invert_images=False, |
78 | | - write_to=None, output_width=None, output_height=None): |
| 82 | + write_to=None, output_width=None, output_height=None, |
| 83 | + viewbox_id=None): |
79 | 84 | return surface.PSSurface.convert( |
80 | 85 | bytestring=bytestring, file_obj=file_obj, url=url, dpi=dpi, |
81 | 86 | parent_width=parent_width, parent_height=parent_height, scale=scale, |
82 | 87 | background_color=background_color, negate_colors=negate_colors, |
83 | 88 | invert_images=invert_images, unsafe=unsafe, write_to=write_to, |
84 | | - output_width=output_width, output_height=output_height) |
| 89 | + output_width=output_width, output_height=output_height, |
| 90 | + viewbox_id=viewbox_id) |
85 | 91 |
|
86 | 92 |
|
87 | 93 | def svg2eps(bytestring=None, *, file_obj=None, url=None, dpi=96, |
88 | 94 | parent_width=None, parent_height=None, scale=1, unsafe=False, |
89 | 95 | background_color=None, negate_colors=False, invert_images=False, |
90 | | - write_to=None, output_width=None, output_height=None): |
| 96 | + write_to=None, output_width=None, output_height=None, |
| 97 | + viewbox_id=None): |
91 | 98 | return surface.EPSSurface.convert( |
92 | 99 | bytestring=bytestring, file_obj=file_obj, url=url, dpi=dpi, |
93 | 100 | parent_width=parent_width, parent_height=parent_height, scale=scale, |
94 | 101 | background_color=background_color, negate_colors=negate_colors, |
95 | 102 | invert_images=invert_images, unsafe=unsafe, write_to=write_to, |
96 | | - output_width=output_width, output_height=output_height) |
| 103 | + output_width=output_width, output_height=output_height, |
| 104 | + viewbox_id=viewbox_id) |
97 | 105 |
|
98 | 106 |
|
99 | 107 | if __debug__: |
|
0 commit comments