# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*- # # This file is part of the LibreOffice project. # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. #
# Setting the graphic url
graphic.setPropertyValue("Graphic", loaded_graphic)
# Set properties for the inserted graphic
graphic.setPropertyValue("AnchorType", AT_PARAGRAPH) # Setting the horizontal position
graphic.setPropertyValue("HoriOrientPosition", 5500) # Setting the vertical position
graphic.setPropertyValue("VertOrientPosition", 4200) # Setting the width
graphic.setPropertyValue("Width", 4400) # Setting the height
graphic.setPropertyValue("Height", 4000) except Exception:
print("Couldn't set property 'GraphicURL'")
traceback.print_exc(file=log_file)
log_file.close()
def is_file(value): ifnot isfile(value): raise argparse.ArgumentTypeError(f"File {value} is not an image file.") return value
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.