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