Home/ Reference/ Import / Export

doc.ExportBitmap(...)

Bitmap export with a ten-argument signature (width, height, dpi, antialias, dither, transparency, color profile, crop-to-page). Wrap it in a function you reuse.

Signature

doc.ExportBitmap(...)

Notes

Bitmap export with a ten-argument signature (width, height, dpi, antialias, dither, transparency, color profile, crop-to-page). Wrap it in a function you reuse.

Python example (runnable)

Requires pywin32. The example assumes app / doc / page / layer are already connected. See Connection & Init
Python
out = "D:/output/final.jpg"

# order: path, filter, width(px), height(px), X dpi, Y dpi,
#       antialias, dither, transparent, profile, crop to page
doc.ExportBitmap(out, 0, 2000, 1414, 300, 300, 2, 1, 0, 1, 1)
print("Bitmap exported: ", out)

About this section: Import / Export

Import / Export — import, export, save and print.

Other entries in this section