winrt-Windows.Data.Pdf 3.2.1__cp314-cp314-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- winrt/_winrt_windows_data_pdf.cp314-win_amd64.pyd +0 -0
- winrt/_winrt_windows_data_pdf.pyi +128 -0
- winrt/windows/data/pdf/__init__.py +26 -0
- winrt/windows/data/pdf/py.typed +0 -0
- winrt_windows_data_pdf-3.2.1.dist-info/METADATA +28 -0
- winrt_windows_data_pdf-3.2.1.dist-info/RECORD +8 -0
- winrt_windows_data_pdf-3.2.1.dist-info/WHEEL +5 -0
- winrt_windows_data_pdf-3.2.1.dist-info/top_level.txt +1 -0
|
Binary file
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.1
|
|
2
|
+
|
|
3
|
+
import datetime
|
|
4
|
+
import sys
|
|
5
|
+
import types
|
|
6
|
+
import typing
|
|
7
|
+
import uuid as _uuid
|
|
8
|
+
from builtins import property as _property
|
|
9
|
+
|
|
10
|
+
import winrt._winrt
|
|
11
|
+
import winrt.system
|
|
12
|
+
import winrt.windows.foundation as windows_foundation
|
|
13
|
+
import winrt.windows.storage as windows_storage
|
|
14
|
+
import winrt.windows.storage.streams as windows_storage_streams
|
|
15
|
+
import winrt.windows.ui as windows_ui
|
|
16
|
+
|
|
17
|
+
from winrt.windows.data.pdf import PdfPageRotation
|
|
18
|
+
|
|
19
|
+
Self = typing.TypeVar('Self')
|
|
20
|
+
|
|
21
|
+
@typing.final
|
|
22
|
+
class PdfDocument_Static(winrt._winrt.IInspectable_Static):
|
|
23
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Data.Pdf.PdfDocument> Windows.Data.Pdf.PdfDocument::LoadFromFileAsync(Windows.Storage.IStorageFile)
|
|
24
|
+
def load_from_file_async(cls, file: windows_storage.IStorageFile, /) -> windows_foundation.IAsyncOperation[PdfDocument]: ...
|
|
25
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Data.Pdf.PdfDocument> Windows.Data.Pdf.PdfDocument::LoadFromFileAsync(Windows.Storage.IStorageFile,System.String)
|
|
26
|
+
def load_from_file_with_password_async(cls, file: windows_storage.IStorageFile, password: str, /) -> windows_foundation.IAsyncOperation[PdfDocument]: ...
|
|
27
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Data.Pdf.PdfDocument> Windows.Data.Pdf.PdfDocument::LoadFromStreamAsync(Windows.Storage.Streams.IRandomAccessStream)
|
|
28
|
+
def load_from_stream_async(cls, input_stream: windows_storage_streams.IRandomAccessStream, /) -> windows_foundation.IAsyncOperation[PdfDocument]: ...
|
|
29
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Data.Pdf.PdfDocument> Windows.Data.Pdf.PdfDocument::LoadFromStreamAsync(Windows.Storage.Streams.IRandomAccessStream,System.String)
|
|
30
|
+
def load_from_stream_with_password_async(cls, input_stream: windows_storage_streams.IRandomAccessStream, password: str, /) -> windows_foundation.IAsyncOperation[PdfDocument]: ...
|
|
31
|
+
|
|
32
|
+
@typing.final
|
|
33
|
+
class PdfDocument(winrt.system.Object, metaclass=PdfDocument_Static):
|
|
34
|
+
# Windows.Data.Pdf.PdfPage Windows.Data.Pdf.PdfDocument::GetPage(System.UInt32)
|
|
35
|
+
def get_page(self, page_index: winrt.system.UInt32, /) -> PdfPage: ...
|
|
36
|
+
# System.Boolean Windows.Data.Pdf.PdfDocument::get_IsPasswordProtected()
|
|
37
|
+
@_property
|
|
38
|
+
def is_password_protected(self) -> bool: ...
|
|
39
|
+
# System.UInt32 Windows.Data.Pdf.PdfDocument::get_PageCount()
|
|
40
|
+
@_property
|
|
41
|
+
def page_count(self) -> winrt.system.UInt32: ...
|
|
42
|
+
|
|
43
|
+
@typing.final
|
|
44
|
+
class PdfPage(winrt.system.Object, windows_foundation.IClosable):
|
|
45
|
+
def __enter__(self: Self) -> Self: ...
|
|
46
|
+
def __exit__(self, exc_type: typing.Optional[typing.Type[BaseException]], exc_value: typing.Optional[BaseException], traceback: typing.Optional[types.TracebackType]) -> None: ...
|
|
47
|
+
# System.Void Windows.Data.Pdf.PdfPage::Close()
|
|
48
|
+
def close(self) -> None: ...
|
|
49
|
+
# Windows.Foundation.IAsyncAction Windows.Data.Pdf.PdfPage::PreparePageAsync()
|
|
50
|
+
def prepare_page_async(self) -> windows_foundation.IAsyncAction: ...
|
|
51
|
+
# Windows.Foundation.IAsyncAction Windows.Data.Pdf.PdfPage::RenderToStreamAsync(Windows.Storage.Streams.IRandomAccessStream)
|
|
52
|
+
def render_to_stream_async(self, output_stream: windows_storage_streams.IRandomAccessStream, /) -> windows_foundation.IAsyncAction: ...
|
|
53
|
+
# Windows.Foundation.IAsyncAction Windows.Data.Pdf.PdfPage::RenderToStreamAsync(Windows.Storage.Streams.IRandomAccessStream,Windows.Data.Pdf.PdfPageRenderOptions)
|
|
54
|
+
def render_with_options_to_stream_async(self, output_stream: windows_storage_streams.IRandomAccessStream, options: PdfPageRenderOptions, /) -> windows_foundation.IAsyncAction: ...
|
|
55
|
+
# Windows.Data.Pdf.PdfPageDimensions Windows.Data.Pdf.PdfPage::get_Dimensions()
|
|
56
|
+
@_property
|
|
57
|
+
def dimensions(self) -> PdfPageDimensions: ...
|
|
58
|
+
# System.UInt32 Windows.Data.Pdf.PdfPage::get_Index()
|
|
59
|
+
@_property
|
|
60
|
+
def index(self) -> winrt.system.UInt32: ...
|
|
61
|
+
# System.Single Windows.Data.Pdf.PdfPage::get_PreferredZoom()
|
|
62
|
+
@_property
|
|
63
|
+
def preferred_zoom(self) -> winrt.system.Single: ...
|
|
64
|
+
# Windows.Data.Pdf.PdfPageRotation Windows.Data.Pdf.PdfPage::get_Rotation()
|
|
65
|
+
@_property
|
|
66
|
+
def rotation(self) -> PdfPageRotation: ...
|
|
67
|
+
# Windows.Foundation.Size Windows.Data.Pdf.PdfPage::get_Size()
|
|
68
|
+
@_property
|
|
69
|
+
def size(self) -> windows_foundation.Size: ...
|
|
70
|
+
|
|
71
|
+
@typing.final
|
|
72
|
+
class PdfPageDimensions(winrt.system.Object):
|
|
73
|
+
# Windows.Foundation.Rect Windows.Data.Pdf.PdfPageDimensions::get_ArtBox()
|
|
74
|
+
@_property
|
|
75
|
+
def art_box(self) -> windows_foundation.Rect: ...
|
|
76
|
+
# Windows.Foundation.Rect Windows.Data.Pdf.PdfPageDimensions::get_BleedBox()
|
|
77
|
+
@_property
|
|
78
|
+
def bleed_box(self) -> windows_foundation.Rect: ...
|
|
79
|
+
# Windows.Foundation.Rect Windows.Data.Pdf.PdfPageDimensions::get_CropBox()
|
|
80
|
+
@_property
|
|
81
|
+
def crop_box(self) -> windows_foundation.Rect: ...
|
|
82
|
+
# Windows.Foundation.Rect Windows.Data.Pdf.PdfPageDimensions::get_MediaBox()
|
|
83
|
+
@_property
|
|
84
|
+
def media_box(self) -> windows_foundation.Rect: ...
|
|
85
|
+
# Windows.Foundation.Rect Windows.Data.Pdf.PdfPageDimensions::get_TrimBox()
|
|
86
|
+
@_property
|
|
87
|
+
def trim_box(self) -> windows_foundation.Rect: ...
|
|
88
|
+
|
|
89
|
+
@typing.final
|
|
90
|
+
class PdfPageRenderOptions(winrt.system.Object):
|
|
91
|
+
def __new__(cls: typing.Type[Self]) -> Self: ...
|
|
92
|
+
# Windows.Foundation.Rect Windows.Data.Pdf.PdfPageRenderOptions::get_SourceRect()
|
|
93
|
+
@_property
|
|
94
|
+
def source_rect(self) -> windows_foundation.Rect: ...
|
|
95
|
+
# System.Void Windows.Data.Pdf.PdfPageRenderOptions::put_SourceRect(Windows.Foundation.Rect)
|
|
96
|
+
@source_rect.setter
|
|
97
|
+
def source_rect(self, value: typing.Union[windows_foundation.Rect, typing.Tuple[winrt.system.Single, winrt.system.Single, winrt.system.Single, winrt.system.Single]]) -> None: ...
|
|
98
|
+
# System.Boolean Windows.Data.Pdf.PdfPageRenderOptions::get_IsIgnoringHighContrast()
|
|
99
|
+
@_property
|
|
100
|
+
def is_ignoring_high_contrast(self) -> bool: ...
|
|
101
|
+
# System.Void Windows.Data.Pdf.PdfPageRenderOptions::put_IsIgnoringHighContrast(System.Boolean)
|
|
102
|
+
@is_ignoring_high_contrast.setter
|
|
103
|
+
def is_ignoring_high_contrast(self, value: bool) -> None: ...
|
|
104
|
+
# System.UInt32 Windows.Data.Pdf.PdfPageRenderOptions::get_DestinationWidth()
|
|
105
|
+
@_property
|
|
106
|
+
def destination_width(self) -> winrt.system.UInt32: ...
|
|
107
|
+
# System.Void Windows.Data.Pdf.PdfPageRenderOptions::put_DestinationWidth(System.UInt32)
|
|
108
|
+
@destination_width.setter
|
|
109
|
+
def destination_width(self, value: winrt.system.UInt32) -> None: ...
|
|
110
|
+
# System.UInt32 Windows.Data.Pdf.PdfPageRenderOptions::get_DestinationHeight()
|
|
111
|
+
@_property
|
|
112
|
+
def destination_height(self) -> winrt.system.UInt32: ...
|
|
113
|
+
# System.Void Windows.Data.Pdf.PdfPageRenderOptions::put_DestinationHeight(System.UInt32)
|
|
114
|
+
@destination_height.setter
|
|
115
|
+
def destination_height(self, value: winrt.system.UInt32) -> None: ...
|
|
116
|
+
# System.Guid Windows.Data.Pdf.PdfPageRenderOptions::get_BitmapEncoderId()
|
|
117
|
+
@_property
|
|
118
|
+
def bitmap_encoder_id(self) -> _uuid.UUID: ...
|
|
119
|
+
# System.Void Windows.Data.Pdf.PdfPageRenderOptions::put_BitmapEncoderId(System.Guid)
|
|
120
|
+
@bitmap_encoder_id.setter
|
|
121
|
+
def bitmap_encoder_id(self, value: _uuid.UUID) -> None: ...
|
|
122
|
+
# Windows.UI.Color Windows.Data.Pdf.PdfPageRenderOptions::get_BackgroundColor()
|
|
123
|
+
@_property
|
|
124
|
+
def background_color(self) -> windows_ui.Color: ...
|
|
125
|
+
# System.Void Windows.Data.Pdf.PdfPageRenderOptions::put_BackgroundColor(Windows.UI.Color)
|
|
126
|
+
@background_color.setter
|
|
127
|
+
def background_color(self, value: typing.Union[windows_ui.Color, typing.Tuple[winrt.system.UInt8, winrt.system.UInt8, winrt.system.UInt8, winrt.system.UInt8]]) -> None: ...
|
|
128
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.1
|
|
2
|
+
|
|
3
|
+
import enum
|
|
4
|
+
|
|
5
|
+
import winrt.system
|
|
6
|
+
from winrt._winrt_windows_data_pdf import (
|
|
7
|
+
PdfDocument,
|
|
8
|
+
PdfPage,
|
|
9
|
+
PdfPageDimensions,
|
|
10
|
+
PdfPageRenderOptions,
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
__all__ = [
|
|
14
|
+
"PdfPageRotation",
|
|
15
|
+
"PdfDocument",
|
|
16
|
+
"PdfPage",
|
|
17
|
+
"PdfPageDimensions",
|
|
18
|
+
"PdfPageRenderOptions",
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
class PdfPageRotation(enum.IntEnum):
|
|
22
|
+
NORMAL = 0
|
|
23
|
+
ROTATE90 = 1
|
|
24
|
+
ROTATE180 = 2
|
|
25
|
+
ROTATE270 = 3
|
|
26
|
+
|
|
File without changes
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: winrt-Windows.Data.Pdf
|
|
3
|
+
Version: 3.2.1
|
|
4
|
+
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
7
|
+
Project-URL: Repository, https://github.com/pywinrt/pywinrt
|
|
8
|
+
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
9
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime~=3.2.1.0
|
|
16
|
+
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]~=3.2.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Storage[all]~=3.2.1.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]~=3.2.1.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.UI[all]~=3.2.1.0; extra == "all"
|
|
21
|
+
|
|
22
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
23
|
+
|
|
24
|
+
# winrt-Windows.Data.Pdf
|
|
25
|
+
|
|
26
|
+
Windows Runtime (WinRT) APIs for for the `Windows.Data.Pdf` namespace.
|
|
27
|
+
|
|
28
|
+
This package provides the `winrt.windows.data.pdf` module.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
winrt/_winrt_windows_data_pdf.cp314-win_amd64.pyd,sha256=tohqk-xArPvrGK3K9XwQiA-cNSVSIe6aC4akzdMkhis,100352
|
|
2
|
+
winrt/_winrt_windows_data_pdf.pyi,sha256=TdyCEJjvIhSAxwM3JX8x40mIt7mM1IzmFfpX0y_1wqY,7514
|
|
3
|
+
winrt/windows/data/pdf/__init__.py,sha256=NI4SNslCGofHnQfR9Li80A6AP0mTLnXtFnn-1nrWlp8,471
|
|
4
|
+
winrt/windows/data/pdf/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
winrt_windows_data_pdf-3.2.1.dist-info/METADATA,sha256=axiTdpRqKkLknUo12jd8H6H_dNjB7o65mN4hLsMrEcU,1228
|
|
6
|
+
winrt_windows_data_pdf-3.2.1.dist-info/WHEEL,sha256=7k6Wcy588iJYe5lf5K095NLg-uoBTnE-T8eHJ92G4_4,101
|
|
7
|
+
winrt_windows_data_pdf-3.2.1.dist-info/top_level.txt,sha256=BzwQb4dZRt0NxCXi10ARjWsox7Asmtf_lXrw_KR-D_E,6
|
|
8
|
+
winrt_windows_data_pdf-3.2.1.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
winrt
|