Skip to main content
Version: API v2 Preview

PDFObjectBase

Kind: class
Module/package: types
SDK: pdfdancer-client-python 2.0.0

Base class for selectable PDF object references (paths, text lines, etc.) providing shared behavior such as position, deletion, and movement.

Declaration

PDFObjectBase(client: "'PDFDancer'", internal_id: 'str', object_type: 'ObjectType', position: 'Position')

Members

__init__

__init__(self, client: "'PDFDancer'", internal_id: 'str', object_type: 'ObjectType', position: 'Position')

Initialize self. See help(type(self)) for accurate signature.

clear_clipping

clear_clipping(self) -> 'bool'

Detach any active clipping path from this object.

delete

delete(self) -> 'bool'

Delete this object from the PDF document.

move_to

move_to(self, x: 'float', y: 'float') -> 'bool'

Move this object to a new position.

object_ref

object_ref(self) -> 'ObjectRef'

page_number

page_number: 'int'

Page index where this object resides.

View source at af2a1171a1b9