Source code for pdftools_toolbox.pdf.forms.document_time_stamp

from __future__ import annotations
import io
from typing import List, Iterator, Tuple, Optional, Any, TYPE_CHECKING, Callable
from ctypes import *
from datetime import datetime
from numbers import Number
from pdftools_toolbox.internal import _lib
from pdftools_toolbox.internal.utils import _string_to_utf16, _utf16_to_string
from pdftools_toolbox.internal.streams import _StreamDescriptor, _NativeStream
from pdftools_toolbox.internal.native_base import _NativeBase
from pdftools_toolbox.internal.native_object import _NativeObject

import pdftools_toolbox.internal
import pdftools_toolbox.pdf.forms.signed_signature_field

[docs] class DocumentTimeStamp(pdftools_toolbox.pdf.forms.signed_signature_field.SignedSignatureField): """ A document time-stamp signature that time-stamps the document This type of signature provides evidence that the document existed at a specific time and protects the document’s integrity. """ @staticmethod def _create_dynamic_type(handle): return DocumentTimeStamp._from_handle(handle) @classmethod def _from_handle(cls, handle): """ Internal factory method for constructing an instance using an internal handle. This method creates an instance of the class by bypassing the public constructor. """ instance = DocumentTimeStamp.__new__(cls) # Bypass __init__ instance._initialize(handle) return instance def _initialize(self, handle): super()._initialize(handle)