winrt-Windows.Data.Pdf 2.2.0__tar.gz → 3.0.0__tar.gz
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_windows_data_pdf-2.2.0 → winrt_windows_data_pdf-3.0.0}/PKG-INFO +7 -7
- winrt_windows_data_pdf-3.0.0/all-requirements.txt +6 -0
- {winrt_windows_data_pdf-2.2.0 → winrt_windows_data_pdf-3.0.0}/py.Windows.Data.Pdf.cpp +256 -88
- {winrt_windows_data_pdf-2.2.0 → winrt_windows_data_pdf-3.0.0}/pyproject.toml +2 -2
- winrt_windows_data_pdf-3.0.0/pywinrt-version.txt +1 -0
- {winrt_windows_data_pdf-2.2.0 → winrt_windows_data_pdf-3.0.0}/requirements.txt +2 -2
- {winrt_windows_data_pdf-2.2.0 → winrt_windows_data_pdf-3.0.0}/setup.py +1 -1
- winrt_windows_data_pdf-3.0.0/winrt/_winrt_windows_data_pdf.pyi +128 -0
- {winrt_windows_data_pdf-2.2.0 → winrt_windows_data_pdf-3.0.0}/winrt/windows/data/pdf/__init__.py +7 -6
- {winrt_windows_data_pdf-2.2.0 → winrt_windows_data_pdf-3.0.0}/winrt_Windows.Data.Pdf.egg-info/PKG-INFO +7 -7
- winrt_windows_data_pdf-3.0.0/winrt_Windows.Data.Pdf.egg-info/requires.txt +7 -0
- winrt_windows_data_pdf-2.2.0/all-requirements.txt +0 -6
- winrt_windows_data_pdf-2.2.0/pywinrt-version.txt +0 -1
- winrt_windows_data_pdf-2.2.0/winrt/_winrt_windows_data_pdf.pyi +0 -109
- winrt_windows_data_pdf-2.2.0/winrt_Windows.Data.Pdf.egg-info/requires.txt +0 -7
- {winrt_windows_data_pdf-2.2.0 → winrt_windows_data_pdf-3.0.0}/README.md +0 -0
- {winrt_windows_data_pdf-2.2.0 → winrt_windows_data_pdf-3.0.0}/setup.cfg +0 -0
- {winrt_windows_data_pdf-2.2.0 → winrt_windows_data_pdf-3.0.0}/winrt/windows/data/pdf/py.typed +0 -0
- {winrt_windows_data_pdf-2.2.0 → winrt_windows_data_pdf-3.0.0}/winrt_Windows.Data.Pdf.egg-info/SOURCES.txt +0 -0
- {winrt_windows_data_pdf-2.2.0 → winrt_windows_data_pdf-3.0.0}/winrt_Windows.Data.Pdf.egg-info/dependency_links.txt +0 -0
- {winrt_windows_data_pdf-2.2.0 → winrt_windows_data_pdf-3.0.0}/winrt_Windows.Data.Pdf.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Data.Pdf
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -10,14 +10,14 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python:
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==
|
|
15
|
+
Requires-Dist: winrt-runtime==3.0.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==
|
|
18
|
-
Requires-Dist: winrt-Windows.Storage[all]==
|
|
19
|
-
Requires-Dist: winrt-Windows.Storage.Streams[all]==
|
|
20
|
-
Requires-Dist: winrt-Windows.UI[all]==
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Storage[all]==3.0.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==3.0.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.UI[all]==3.0.0; extra == "all"
|
|
21
21
|
|
|
22
22
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
23
23
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.Data.Pdf.h"
|
|
4
4
|
|
|
@@ -23,7 +23,7 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
23
23
|
|
|
24
24
|
static PyObject* PdfDocument_GetPage(py::wrapper::Windows::Data::Pdf::PdfDocument* self, PyObject* args) noexcept
|
|
25
25
|
{
|
|
26
|
-
auto arg_count =
|
|
26
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
27
27
|
|
|
28
28
|
if (arg_count == 1)
|
|
29
29
|
{
|
|
@@ -44,7 +44,11 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
44
44
|
|
|
45
45
|
auto param0 = py::convert_to<uint32_t>(args, 0);
|
|
46
46
|
|
|
47
|
-
return py::convert(
|
|
47
|
+
return py::convert([&]()
|
|
48
|
+
{
|
|
49
|
+
auto _gil = release_gil();
|
|
50
|
+
return self->obj.GetPage(param0);
|
|
51
|
+
}());
|
|
48
52
|
}
|
|
49
53
|
catch (...)
|
|
50
54
|
{
|
|
@@ -61,7 +65,7 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
61
65
|
|
|
62
66
|
static PyObject* PdfDocument_LoadFromFileAsync(PyObject* /*unused*/, PyObject* args) noexcept
|
|
63
67
|
{
|
|
64
|
-
auto arg_count =
|
|
68
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
65
69
|
|
|
66
70
|
if (arg_count == 1)
|
|
67
71
|
{
|
|
@@ -82,7 +86,11 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
82
86
|
|
|
83
87
|
auto param0 = py::convert_to<winrt::Windows::Storage::IStorageFile>(args, 0);
|
|
84
88
|
|
|
85
|
-
return py::convert(
|
|
89
|
+
return py::convert([&]()
|
|
90
|
+
{
|
|
91
|
+
auto _gil = release_gil();
|
|
92
|
+
return winrt::Windows::Data::Pdf::PdfDocument::LoadFromFileAsync(param0);
|
|
93
|
+
}());
|
|
86
94
|
}
|
|
87
95
|
catch (...)
|
|
88
96
|
{
|
|
@@ -90,7 +98,18 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
90
98
|
return nullptr;
|
|
91
99
|
}
|
|
92
100
|
}
|
|
93
|
-
else
|
|
101
|
+
else
|
|
102
|
+
{
|
|
103
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
104
|
+
return nullptr;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
static PyObject* PdfDocument_LoadFromFileWithPasswordAsync(PyObject* /*unused*/, PyObject* args) noexcept
|
|
109
|
+
{
|
|
110
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
111
|
+
|
|
112
|
+
if (arg_count == 2)
|
|
94
113
|
{
|
|
95
114
|
try
|
|
96
115
|
{
|
|
@@ -110,7 +129,11 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
110
129
|
auto param0 = py::convert_to<winrt::Windows::Storage::IStorageFile>(args, 0);
|
|
111
130
|
auto param1 = py::convert_to<winrt::hstring>(args, 1);
|
|
112
131
|
|
|
113
|
-
return py::convert(
|
|
132
|
+
return py::convert([&]()
|
|
133
|
+
{
|
|
134
|
+
auto _gil = release_gil();
|
|
135
|
+
return winrt::Windows::Data::Pdf::PdfDocument::LoadFromFileAsync(param0, param1);
|
|
136
|
+
}());
|
|
114
137
|
}
|
|
115
138
|
catch (...)
|
|
116
139
|
{
|
|
@@ -127,7 +150,7 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
127
150
|
|
|
128
151
|
static PyObject* PdfDocument_LoadFromStreamAsync(PyObject* /*unused*/, PyObject* args) noexcept
|
|
129
152
|
{
|
|
130
|
-
auto arg_count =
|
|
153
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
131
154
|
|
|
132
155
|
if (arg_count == 1)
|
|
133
156
|
{
|
|
@@ -148,7 +171,11 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
148
171
|
|
|
149
172
|
auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IRandomAccessStream>(args, 0);
|
|
150
173
|
|
|
151
|
-
return py::convert(
|
|
174
|
+
return py::convert([&]()
|
|
175
|
+
{
|
|
176
|
+
auto _gil = release_gil();
|
|
177
|
+
return winrt::Windows::Data::Pdf::PdfDocument::LoadFromStreamAsync(param0);
|
|
178
|
+
}());
|
|
152
179
|
}
|
|
153
180
|
catch (...)
|
|
154
181
|
{
|
|
@@ -156,7 +183,18 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
156
183
|
return nullptr;
|
|
157
184
|
}
|
|
158
185
|
}
|
|
159
|
-
else
|
|
186
|
+
else
|
|
187
|
+
{
|
|
188
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
189
|
+
return nullptr;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
static PyObject* PdfDocument_LoadFromStreamWithPasswordAsync(PyObject* /*unused*/, PyObject* args) noexcept
|
|
194
|
+
{
|
|
195
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
196
|
+
|
|
197
|
+
if (arg_count == 2)
|
|
160
198
|
{
|
|
161
199
|
try
|
|
162
200
|
{
|
|
@@ -176,7 +214,11 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
176
214
|
auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IRandomAccessStream>(args, 0);
|
|
177
215
|
auto param1 = py::convert_to<winrt::hstring>(args, 1);
|
|
178
216
|
|
|
179
|
-
return py::convert(
|
|
217
|
+
return py::convert([&]()
|
|
218
|
+
{
|
|
219
|
+
auto _gil = release_gil();
|
|
220
|
+
return winrt::Windows::Data::Pdf::PdfDocument::LoadFromStreamAsync(param0, param1);
|
|
221
|
+
}());
|
|
180
222
|
}
|
|
181
223
|
catch (...)
|
|
182
224
|
{
|
|
@@ -208,7 +250,11 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
208
250
|
return nullptr;
|
|
209
251
|
}
|
|
210
252
|
|
|
211
|
-
return py::convert(
|
|
253
|
+
return py::convert([&]()
|
|
254
|
+
{
|
|
255
|
+
auto _gil = release_gil();
|
|
256
|
+
return self->obj.IsPasswordProtected();
|
|
257
|
+
}());
|
|
212
258
|
}
|
|
213
259
|
catch (...)
|
|
214
260
|
{
|
|
@@ -234,7 +280,11 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
234
280
|
return nullptr;
|
|
235
281
|
}
|
|
236
282
|
|
|
237
|
-
return py::convert(
|
|
283
|
+
return py::convert([&]()
|
|
284
|
+
{
|
|
285
|
+
auto _gil = release_gil();
|
|
286
|
+
return self->obj.PageCount();
|
|
287
|
+
}());
|
|
238
288
|
}
|
|
239
289
|
catch (...)
|
|
240
290
|
{
|
|
@@ -271,22 +321,19 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
271
321
|
{ "get_page", reinterpret_cast<PyCFunction>(PdfDocument_GetPage), METH_VARARGS, nullptr },
|
|
272
322
|
{ "_assign_array_", _assign_array_PdfDocument, METH_O | METH_STATIC, nullptr },
|
|
273
323
|
{ "_from", reinterpret_cast<PyCFunction>(_from_PdfDocument), METH_O | METH_STATIC, nullptr },
|
|
274
|
-
{ }
|
|
275
|
-
};
|
|
324
|
+
{ }};
|
|
276
325
|
|
|
277
326
|
static PyGetSetDef _getset_PdfDocument[] = {
|
|
278
327
|
{ "is_password_protected", reinterpret_cast<getter>(PdfDocument_get_IsPasswordProtected), nullptr, nullptr, nullptr },
|
|
279
328
|
{ "page_count", reinterpret_cast<getter>(PdfDocument_get_PageCount), nullptr, nullptr, nullptr },
|
|
280
|
-
{ }
|
|
281
|
-
};
|
|
329
|
+
{ }};
|
|
282
330
|
|
|
283
331
|
static PyType_Slot _type_slots_PdfDocument[] = {
|
|
284
332
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PdfDocument) },
|
|
285
333
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PdfDocument) },
|
|
286
334
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PdfDocument) },
|
|
287
335
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PdfDocument) },
|
|
288
|
-
{ }
|
|
289
|
-
};
|
|
336
|
+
{ }};
|
|
290
337
|
|
|
291
338
|
static PyType_Spec type_spec_PdfDocument = {
|
|
292
339
|
"winrt._winrt_windows_data_pdf.PdfDocument",
|
|
@@ -296,14 +343,14 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
296
343
|
_type_slots_PdfDocument};
|
|
297
344
|
|
|
298
345
|
static PyGetSetDef getset_PdfDocument_Static[] = {
|
|
299
|
-
{ }
|
|
300
|
-
};
|
|
346
|
+
{ }};
|
|
301
347
|
|
|
302
348
|
static PyMethodDef methods_PdfDocument_Static[] = {
|
|
303
349
|
{ "load_from_file_async", reinterpret_cast<PyCFunction>(PdfDocument_LoadFromFileAsync), METH_VARARGS, nullptr },
|
|
350
|
+
{ "load_from_file_with_password_async", reinterpret_cast<PyCFunction>(PdfDocument_LoadFromFileWithPasswordAsync), METH_VARARGS, nullptr },
|
|
304
351
|
{ "load_from_stream_async", reinterpret_cast<PyCFunction>(PdfDocument_LoadFromStreamAsync), METH_VARARGS, nullptr },
|
|
305
|
-
{ }
|
|
306
|
-
|
|
352
|
+
{ "load_from_stream_with_password_async", reinterpret_cast<PyCFunction>(PdfDocument_LoadFromStreamWithPasswordAsync), METH_VARARGS, nullptr },
|
|
353
|
+
{ }};
|
|
307
354
|
|
|
308
355
|
static PyType_Slot type_slots_PdfDocument_Static[] =
|
|
309
356
|
{
|
|
@@ -313,14 +360,12 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
313
360
|
{ }
|
|
314
361
|
};
|
|
315
362
|
|
|
316
|
-
static PyType_Spec type_spec_PdfDocument_Static =
|
|
317
|
-
{
|
|
363
|
+
static PyType_Spec type_spec_PdfDocument_Static = {
|
|
318
364
|
"winrt._winrt_windows_data_pdf.PdfDocument_Static",
|
|
319
365
|
static_cast<int>(PyType_Type.tp_basicsize),
|
|
320
366
|
static_cast<int>(PyType_Type.tp_itemsize),
|
|
321
367
|
Py_TPFLAGS_DEFAULT,
|
|
322
|
-
type_slots_PdfDocument_Static
|
|
323
|
-
};
|
|
368
|
+
type_slots_PdfDocument_Static};
|
|
324
369
|
|
|
325
370
|
// ----- PdfPage class --------------------
|
|
326
371
|
|
|
@@ -341,7 +386,7 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
341
386
|
|
|
342
387
|
static PyObject* PdfPage_Close(py::wrapper::Windows::Data::Pdf::PdfPage* self, PyObject* args) noexcept
|
|
343
388
|
{
|
|
344
|
-
auto arg_count =
|
|
389
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
345
390
|
|
|
346
391
|
if (arg_count == 0)
|
|
347
392
|
{
|
|
@@ -360,7 +405,11 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
360
405
|
return nullptr;
|
|
361
406
|
}
|
|
362
407
|
|
|
363
|
-
|
|
408
|
+
{
|
|
409
|
+
auto _gil = release_gil();
|
|
410
|
+
self->obj.Close();
|
|
411
|
+
}
|
|
412
|
+
|
|
364
413
|
Py_RETURN_NONE;
|
|
365
414
|
}
|
|
366
415
|
catch (...)
|
|
@@ -378,7 +427,7 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
378
427
|
|
|
379
428
|
static PyObject* PdfPage_PreparePageAsync(py::wrapper::Windows::Data::Pdf::PdfPage* self, PyObject* args) noexcept
|
|
380
429
|
{
|
|
381
|
-
auto arg_count =
|
|
430
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
382
431
|
|
|
383
432
|
if (arg_count == 0)
|
|
384
433
|
{
|
|
@@ -397,7 +446,11 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
397
446
|
return nullptr;
|
|
398
447
|
}
|
|
399
448
|
|
|
400
|
-
return py::convert(
|
|
449
|
+
return py::convert([&]()
|
|
450
|
+
{
|
|
451
|
+
auto _gil = release_gil();
|
|
452
|
+
return self->obj.PreparePageAsync();
|
|
453
|
+
}());
|
|
401
454
|
}
|
|
402
455
|
catch (...)
|
|
403
456
|
{
|
|
@@ -414,7 +467,7 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
414
467
|
|
|
415
468
|
static PyObject* PdfPage_RenderToStreamAsync(py::wrapper::Windows::Data::Pdf::PdfPage* self, PyObject* args) noexcept
|
|
416
469
|
{
|
|
417
|
-
auto arg_count =
|
|
470
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
418
471
|
|
|
419
472
|
if (arg_count == 1)
|
|
420
473
|
{
|
|
@@ -435,7 +488,11 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
435
488
|
|
|
436
489
|
auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IRandomAccessStream>(args, 0);
|
|
437
490
|
|
|
438
|
-
return py::convert(
|
|
491
|
+
return py::convert([&]()
|
|
492
|
+
{
|
|
493
|
+
auto _gil = release_gil();
|
|
494
|
+
return self->obj.RenderToStreamAsync(param0);
|
|
495
|
+
}());
|
|
439
496
|
}
|
|
440
497
|
catch (...)
|
|
441
498
|
{
|
|
@@ -443,7 +500,18 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
443
500
|
return nullptr;
|
|
444
501
|
}
|
|
445
502
|
}
|
|
446
|
-
else
|
|
503
|
+
else
|
|
504
|
+
{
|
|
505
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
506
|
+
return nullptr;
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
static PyObject* PdfPage_RenderWithOptionsToStreamAsync(py::wrapper::Windows::Data::Pdf::PdfPage* self, PyObject* args) noexcept
|
|
511
|
+
{
|
|
512
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
513
|
+
|
|
514
|
+
if (arg_count == 2)
|
|
447
515
|
{
|
|
448
516
|
try
|
|
449
517
|
{
|
|
@@ -463,7 +531,11 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
463
531
|
auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IRandomAccessStream>(args, 0);
|
|
464
532
|
auto param1 = py::convert_to<winrt::Windows::Data::Pdf::PdfPageRenderOptions>(args, 1);
|
|
465
533
|
|
|
466
|
-
return py::convert(
|
|
534
|
+
return py::convert([&]()
|
|
535
|
+
{
|
|
536
|
+
auto _gil = release_gil();
|
|
537
|
+
return self->obj.RenderToStreamAsync(param0, param1);
|
|
538
|
+
}());
|
|
467
539
|
}
|
|
468
540
|
catch (...)
|
|
469
541
|
{
|
|
@@ -495,7 +567,11 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
495
567
|
return nullptr;
|
|
496
568
|
}
|
|
497
569
|
|
|
498
|
-
return py::convert(
|
|
570
|
+
return py::convert([&]()
|
|
571
|
+
{
|
|
572
|
+
auto _gil = release_gil();
|
|
573
|
+
return self->obj.Dimensions();
|
|
574
|
+
}());
|
|
499
575
|
}
|
|
500
576
|
catch (...)
|
|
501
577
|
{
|
|
@@ -521,7 +597,11 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
521
597
|
return nullptr;
|
|
522
598
|
}
|
|
523
599
|
|
|
524
|
-
return py::convert(
|
|
600
|
+
return py::convert([&]()
|
|
601
|
+
{
|
|
602
|
+
auto _gil = release_gil();
|
|
603
|
+
return self->obj.Index();
|
|
604
|
+
}());
|
|
525
605
|
}
|
|
526
606
|
catch (...)
|
|
527
607
|
{
|
|
@@ -547,7 +627,11 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
547
627
|
return nullptr;
|
|
548
628
|
}
|
|
549
629
|
|
|
550
|
-
return py::convert(
|
|
630
|
+
return py::convert([&]()
|
|
631
|
+
{
|
|
632
|
+
auto _gil = release_gil();
|
|
633
|
+
return self->obj.PreferredZoom();
|
|
634
|
+
}());
|
|
551
635
|
}
|
|
552
636
|
catch (...)
|
|
553
637
|
{
|
|
@@ -573,7 +657,11 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
573
657
|
return nullptr;
|
|
574
658
|
}
|
|
575
659
|
|
|
576
|
-
return py::convert(
|
|
660
|
+
return py::convert([&]()
|
|
661
|
+
{
|
|
662
|
+
auto _gil = release_gil();
|
|
663
|
+
return self->obj.Rotation();
|
|
664
|
+
}());
|
|
577
665
|
}
|
|
578
666
|
catch (...)
|
|
579
667
|
{
|
|
@@ -599,7 +687,11 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
599
687
|
return nullptr;
|
|
600
688
|
}
|
|
601
689
|
|
|
602
|
-
return py::convert(
|
|
690
|
+
return py::convert([&]()
|
|
691
|
+
{
|
|
692
|
+
auto _gil = release_gil();
|
|
693
|
+
return self->obj.Size();
|
|
694
|
+
}());
|
|
603
695
|
}
|
|
604
696
|
catch (...)
|
|
605
697
|
{
|
|
@@ -641,7 +733,11 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
641
733
|
{
|
|
642
734
|
try
|
|
643
735
|
{
|
|
644
|
-
|
|
736
|
+
{
|
|
737
|
+
auto _gil = py::release_gil();
|
|
738
|
+
self->obj.Close();
|
|
739
|
+
}
|
|
740
|
+
|
|
645
741
|
Py_RETURN_FALSE;
|
|
646
742
|
}
|
|
647
743
|
catch (...)
|
|
@@ -655,12 +751,12 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
655
751
|
{ "close", reinterpret_cast<PyCFunction>(PdfPage_Close), METH_VARARGS, nullptr },
|
|
656
752
|
{ "prepare_page_async", reinterpret_cast<PyCFunction>(PdfPage_PreparePageAsync), METH_VARARGS, nullptr },
|
|
657
753
|
{ "render_to_stream_async", reinterpret_cast<PyCFunction>(PdfPage_RenderToStreamAsync), METH_VARARGS, nullptr },
|
|
754
|
+
{ "render_with_options_to_stream_async", reinterpret_cast<PyCFunction>(PdfPage_RenderWithOptionsToStreamAsync), METH_VARARGS, nullptr },
|
|
658
755
|
{ "_assign_array_", _assign_array_PdfPage, METH_O | METH_STATIC, nullptr },
|
|
659
756
|
{ "_from", reinterpret_cast<PyCFunction>(_from_PdfPage), METH_O | METH_STATIC, nullptr },
|
|
660
757
|
{ "__enter__", reinterpret_cast<PyCFunction>(_enter_PdfPage), METH_NOARGS, nullptr },
|
|
661
758
|
{ "__exit__", reinterpret_cast<PyCFunction>(_exit_PdfPage), METH_VARARGS, nullptr },
|
|
662
|
-
{ }
|
|
663
|
-
};
|
|
759
|
+
{ }};
|
|
664
760
|
|
|
665
761
|
static PyGetSetDef _getset_PdfPage[] = {
|
|
666
762
|
{ "dimensions", reinterpret_cast<getter>(PdfPage_get_Dimensions), nullptr, nullptr, nullptr },
|
|
@@ -668,16 +764,14 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
668
764
|
{ "preferred_zoom", reinterpret_cast<getter>(PdfPage_get_PreferredZoom), nullptr, nullptr, nullptr },
|
|
669
765
|
{ "rotation", reinterpret_cast<getter>(PdfPage_get_Rotation), nullptr, nullptr, nullptr },
|
|
670
766
|
{ "size", reinterpret_cast<getter>(PdfPage_get_Size), nullptr, nullptr, nullptr },
|
|
671
|
-
{ }
|
|
672
|
-
};
|
|
767
|
+
{ }};
|
|
673
768
|
|
|
674
769
|
static PyType_Slot _type_slots_PdfPage[] = {
|
|
675
770
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PdfPage) },
|
|
676
771
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PdfPage) },
|
|
677
772
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PdfPage) },
|
|
678
773
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PdfPage) },
|
|
679
|
-
{ }
|
|
680
|
-
};
|
|
774
|
+
{ }};
|
|
681
775
|
|
|
682
776
|
static PyType_Spec type_spec_PdfPage = {
|
|
683
777
|
"winrt._winrt_windows_data_pdf.PdfPage",
|
|
@@ -720,7 +814,11 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
720
814
|
return nullptr;
|
|
721
815
|
}
|
|
722
816
|
|
|
723
|
-
return py::convert(
|
|
817
|
+
return py::convert([&]()
|
|
818
|
+
{
|
|
819
|
+
auto _gil = release_gil();
|
|
820
|
+
return self->obj.ArtBox();
|
|
821
|
+
}());
|
|
724
822
|
}
|
|
725
823
|
catch (...)
|
|
726
824
|
{
|
|
@@ -746,7 +844,11 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
746
844
|
return nullptr;
|
|
747
845
|
}
|
|
748
846
|
|
|
749
|
-
return py::convert(
|
|
847
|
+
return py::convert([&]()
|
|
848
|
+
{
|
|
849
|
+
auto _gil = release_gil();
|
|
850
|
+
return self->obj.BleedBox();
|
|
851
|
+
}());
|
|
750
852
|
}
|
|
751
853
|
catch (...)
|
|
752
854
|
{
|
|
@@ -772,7 +874,11 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
772
874
|
return nullptr;
|
|
773
875
|
}
|
|
774
876
|
|
|
775
|
-
return py::convert(
|
|
877
|
+
return py::convert([&]()
|
|
878
|
+
{
|
|
879
|
+
auto _gil = release_gil();
|
|
880
|
+
return self->obj.CropBox();
|
|
881
|
+
}());
|
|
776
882
|
}
|
|
777
883
|
catch (...)
|
|
778
884
|
{
|
|
@@ -798,7 +904,11 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
798
904
|
return nullptr;
|
|
799
905
|
}
|
|
800
906
|
|
|
801
|
-
return py::convert(
|
|
907
|
+
return py::convert([&]()
|
|
908
|
+
{
|
|
909
|
+
auto _gil = release_gil();
|
|
910
|
+
return self->obj.MediaBox();
|
|
911
|
+
}());
|
|
802
912
|
}
|
|
803
913
|
catch (...)
|
|
804
914
|
{
|
|
@@ -824,7 +934,11 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
824
934
|
return nullptr;
|
|
825
935
|
}
|
|
826
936
|
|
|
827
|
-
return py::convert(
|
|
937
|
+
return py::convert([&]()
|
|
938
|
+
{
|
|
939
|
+
auto _gil = release_gil();
|
|
940
|
+
return self->obj.TrimBox();
|
|
941
|
+
}());
|
|
828
942
|
}
|
|
829
943
|
catch (...)
|
|
830
944
|
{
|
|
@@ -860,8 +974,7 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
860
974
|
static PyMethodDef _methods_PdfPageDimensions[] = {
|
|
861
975
|
{ "_assign_array_", _assign_array_PdfPageDimensions, METH_O | METH_STATIC, nullptr },
|
|
862
976
|
{ "_from", reinterpret_cast<PyCFunction>(_from_PdfPageDimensions), METH_O | METH_STATIC, nullptr },
|
|
863
|
-
{ }
|
|
864
|
-
};
|
|
977
|
+
{ }};
|
|
865
978
|
|
|
866
979
|
static PyGetSetDef _getset_PdfPageDimensions[] = {
|
|
867
980
|
{ "art_box", reinterpret_cast<getter>(PdfPageDimensions_get_ArtBox), nullptr, nullptr, nullptr },
|
|
@@ -869,16 +982,14 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
869
982
|
{ "crop_box", reinterpret_cast<getter>(PdfPageDimensions_get_CropBox), nullptr, nullptr, nullptr },
|
|
870
983
|
{ "media_box", reinterpret_cast<getter>(PdfPageDimensions_get_MediaBox), nullptr, nullptr, nullptr },
|
|
871
984
|
{ "trim_box", reinterpret_cast<getter>(PdfPageDimensions_get_TrimBox), nullptr, nullptr, nullptr },
|
|
872
|
-
{ }
|
|
873
|
-
};
|
|
985
|
+
{ }};
|
|
874
986
|
|
|
875
987
|
static PyType_Slot _type_slots_PdfPageDimensions[] = {
|
|
876
988
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PdfPageDimensions) },
|
|
877
989
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PdfPageDimensions) },
|
|
878
990
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PdfPageDimensions) },
|
|
879
991
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PdfPageDimensions) },
|
|
880
|
-
{ }
|
|
881
|
-
};
|
|
992
|
+
{ }};
|
|
882
993
|
|
|
883
994
|
static PyType_Spec type_spec_PdfPageDimensions = {
|
|
884
995
|
"winrt._winrt_windows_data_pdf.PdfPageDimensions",
|
|
@@ -891,13 +1002,13 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
891
1002
|
|
|
892
1003
|
static PyObject* _new_PdfPageRenderOptions(PyTypeObject* type, PyObject* args, PyObject* kwds) noexcept
|
|
893
1004
|
{
|
|
894
|
-
if (kwds
|
|
1005
|
+
if (kwds)
|
|
895
1006
|
{
|
|
896
1007
|
py::set_invalid_kwd_args_error();
|
|
897
1008
|
return nullptr;
|
|
898
1009
|
}
|
|
899
1010
|
|
|
900
|
-
auto arg_count =
|
|
1011
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
901
1012
|
if (arg_count == 0)
|
|
902
1013
|
{
|
|
903
1014
|
try
|
|
@@ -943,7 +1054,11 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
943
1054
|
return nullptr;
|
|
944
1055
|
}
|
|
945
1056
|
|
|
946
|
-
return py::convert(
|
|
1057
|
+
return py::convert([&]()
|
|
1058
|
+
{
|
|
1059
|
+
auto _gil = release_gil();
|
|
1060
|
+
return self->obj.SourceRect();
|
|
1061
|
+
}());
|
|
947
1062
|
}
|
|
948
1063
|
catch (...)
|
|
949
1064
|
{
|
|
@@ -954,7 +1069,7 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
954
1069
|
|
|
955
1070
|
static int PdfPageRenderOptions_put_SourceRect(py::wrapper::Windows::Data::Pdf::PdfPageRenderOptions* self, PyObject* arg, void* /*unused*/) noexcept
|
|
956
1071
|
{
|
|
957
|
-
if (arg
|
|
1072
|
+
if (!arg)
|
|
958
1073
|
{
|
|
959
1074
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
960
1075
|
return -1;
|
|
@@ -977,7 +1092,11 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
977
1092
|
|
|
978
1093
|
auto param0 = py::convert_to<winrt::Windows::Foundation::Rect>(arg);
|
|
979
1094
|
|
|
980
|
-
|
|
1095
|
+
{
|
|
1096
|
+
auto _gil = release_gil();
|
|
1097
|
+
self->obj.SourceRect(param0);
|
|
1098
|
+
}
|
|
1099
|
+
|
|
981
1100
|
return 0;
|
|
982
1101
|
}
|
|
983
1102
|
catch (...)
|
|
@@ -1004,7 +1123,11 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
1004
1123
|
return nullptr;
|
|
1005
1124
|
}
|
|
1006
1125
|
|
|
1007
|
-
return py::convert(
|
|
1126
|
+
return py::convert([&]()
|
|
1127
|
+
{
|
|
1128
|
+
auto _gil = release_gil();
|
|
1129
|
+
return self->obj.IsIgnoringHighContrast();
|
|
1130
|
+
}());
|
|
1008
1131
|
}
|
|
1009
1132
|
catch (...)
|
|
1010
1133
|
{
|
|
@@ -1015,7 +1138,7 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
1015
1138
|
|
|
1016
1139
|
static int PdfPageRenderOptions_put_IsIgnoringHighContrast(py::wrapper::Windows::Data::Pdf::PdfPageRenderOptions* self, PyObject* arg, void* /*unused*/) noexcept
|
|
1017
1140
|
{
|
|
1018
|
-
if (arg
|
|
1141
|
+
if (!arg)
|
|
1019
1142
|
{
|
|
1020
1143
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
1021
1144
|
return -1;
|
|
@@ -1038,7 +1161,11 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
1038
1161
|
|
|
1039
1162
|
auto param0 = py::convert_to<bool>(arg);
|
|
1040
1163
|
|
|
1041
|
-
|
|
1164
|
+
{
|
|
1165
|
+
auto _gil = release_gil();
|
|
1166
|
+
self->obj.IsIgnoringHighContrast(param0);
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1042
1169
|
return 0;
|
|
1043
1170
|
}
|
|
1044
1171
|
catch (...)
|
|
@@ -1065,7 +1192,11 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
1065
1192
|
return nullptr;
|
|
1066
1193
|
}
|
|
1067
1194
|
|
|
1068
|
-
return py::convert(
|
|
1195
|
+
return py::convert([&]()
|
|
1196
|
+
{
|
|
1197
|
+
auto _gil = release_gil();
|
|
1198
|
+
return self->obj.DestinationWidth();
|
|
1199
|
+
}());
|
|
1069
1200
|
}
|
|
1070
1201
|
catch (...)
|
|
1071
1202
|
{
|
|
@@ -1076,7 +1207,7 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
1076
1207
|
|
|
1077
1208
|
static int PdfPageRenderOptions_put_DestinationWidth(py::wrapper::Windows::Data::Pdf::PdfPageRenderOptions* self, PyObject* arg, void* /*unused*/) noexcept
|
|
1078
1209
|
{
|
|
1079
|
-
if (arg
|
|
1210
|
+
if (!arg)
|
|
1080
1211
|
{
|
|
1081
1212
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
1082
1213
|
return -1;
|
|
@@ -1099,7 +1230,11 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
1099
1230
|
|
|
1100
1231
|
auto param0 = py::convert_to<uint32_t>(arg);
|
|
1101
1232
|
|
|
1102
|
-
|
|
1233
|
+
{
|
|
1234
|
+
auto _gil = release_gil();
|
|
1235
|
+
self->obj.DestinationWidth(param0);
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1103
1238
|
return 0;
|
|
1104
1239
|
}
|
|
1105
1240
|
catch (...)
|
|
@@ -1126,7 +1261,11 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
1126
1261
|
return nullptr;
|
|
1127
1262
|
}
|
|
1128
1263
|
|
|
1129
|
-
return py::convert(
|
|
1264
|
+
return py::convert([&]()
|
|
1265
|
+
{
|
|
1266
|
+
auto _gil = release_gil();
|
|
1267
|
+
return self->obj.DestinationHeight();
|
|
1268
|
+
}());
|
|
1130
1269
|
}
|
|
1131
1270
|
catch (...)
|
|
1132
1271
|
{
|
|
@@ -1137,7 +1276,7 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
1137
1276
|
|
|
1138
1277
|
static int PdfPageRenderOptions_put_DestinationHeight(py::wrapper::Windows::Data::Pdf::PdfPageRenderOptions* self, PyObject* arg, void* /*unused*/) noexcept
|
|
1139
1278
|
{
|
|
1140
|
-
if (arg
|
|
1279
|
+
if (!arg)
|
|
1141
1280
|
{
|
|
1142
1281
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
1143
1282
|
return -1;
|
|
@@ -1160,7 +1299,11 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
1160
1299
|
|
|
1161
1300
|
auto param0 = py::convert_to<uint32_t>(arg);
|
|
1162
1301
|
|
|
1163
|
-
|
|
1302
|
+
{
|
|
1303
|
+
auto _gil = release_gil();
|
|
1304
|
+
self->obj.DestinationHeight(param0);
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1164
1307
|
return 0;
|
|
1165
1308
|
}
|
|
1166
1309
|
catch (...)
|
|
@@ -1187,7 +1330,11 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
1187
1330
|
return nullptr;
|
|
1188
1331
|
}
|
|
1189
1332
|
|
|
1190
|
-
return py::convert(
|
|
1333
|
+
return py::convert([&]()
|
|
1334
|
+
{
|
|
1335
|
+
auto _gil = release_gil();
|
|
1336
|
+
return self->obj.BitmapEncoderId();
|
|
1337
|
+
}());
|
|
1191
1338
|
}
|
|
1192
1339
|
catch (...)
|
|
1193
1340
|
{
|
|
@@ -1198,7 +1345,7 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
1198
1345
|
|
|
1199
1346
|
static int PdfPageRenderOptions_put_BitmapEncoderId(py::wrapper::Windows::Data::Pdf::PdfPageRenderOptions* self, PyObject* arg, void* /*unused*/) noexcept
|
|
1200
1347
|
{
|
|
1201
|
-
if (arg
|
|
1348
|
+
if (!arg)
|
|
1202
1349
|
{
|
|
1203
1350
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
1204
1351
|
return -1;
|
|
@@ -1221,7 +1368,11 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
1221
1368
|
|
|
1222
1369
|
auto param0 = py::convert_to<winrt::guid>(arg);
|
|
1223
1370
|
|
|
1224
|
-
|
|
1371
|
+
{
|
|
1372
|
+
auto _gil = release_gil();
|
|
1373
|
+
self->obj.BitmapEncoderId(param0);
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1225
1376
|
return 0;
|
|
1226
1377
|
}
|
|
1227
1378
|
catch (...)
|
|
@@ -1248,7 +1399,11 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
1248
1399
|
return nullptr;
|
|
1249
1400
|
}
|
|
1250
1401
|
|
|
1251
|
-
return py::convert(
|
|
1402
|
+
return py::convert([&]()
|
|
1403
|
+
{
|
|
1404
|
+
auto _gil = release_gil();
|
|
1405
|
+
return self->obj.BackgroundColor();
|
|
1406
|
+
}());
|
|
1252
1407
|
}
|
|
1253
1408
|
catch (...)
|
|
1254
1409
|
{
|
|
@@ -1259,7 +1414,7 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
1259
1414
|
|
|
1260
1415
|
static int PdfPageRenderOptions_put_BackgroundColor(py::wrapper::Windows::Data::Pdf::PdfPageRenderOptions* self, PyObject* arg, void* /*unused*/) noexcept
|
|
1261
1416
|
{
|
|
1262
|
-
if (arg
|
|
1417
|
+
if (!arg)
|
|
1263
1418
|
{
|
|
1264
1419
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
1265
1420
|
return -1;
|
|
@@ -1282,7 +1437,11 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
1282
1437
|
|
|
1283
1438
|
auto param0 = py::convert_to<winrt::Windows::UI::Color>(arg);
|
|
1284
1439
|
|
|
1285
|
-
|
|
1440
|
+
{
|
|
1441
|
+
auto _gil = release_gil();
|
|
1442
|
+
self->obj.BackgroundColor(param0);
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1286
1445
|
return 0;
|
|
1287
1446
|
}
|
|
1288
1447
|
catch (...)
|
|
@@ -1319,8 +1478,7 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
1319
1478
|
static PyMethodDef _methods_PdfPageRenderOptions[] = {
|
|
1320
1479
|
{ "_assign_array_", _assign_array_PdfPageRenderOptions, METH_O | METH_STATIC, nullptr },
|
|
1321
1480
|
{ "_from", reinterpret_cast<PyCFunction>(_from_PdfPageRenderOptions), METH_O | METH_STATIC, nullptr },
|
|
1322
|
-
{ }
|
|
1323
|
-
};
|
|
1481
|
+
{ }};
|
|
1324
1482
|
|
|
1325
1483
|
static PyGetSetDef _getset_PdfPageRenderOptions[] = {
|
|
1326
1484
|
{ "source_rect", reinterpret_cast<getter>(PdfPageRenderOptions_get_SourceRect), reinterpret_cast<setter>(PdfPageRenderOptions_put_SourceRect), nullptr, nullptr },
|
|
@@ -1329,16 +1487,14 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
1329
1487
|
{ "destination_height", reinterpret_cast<getter>(PdfPageRenderOptions_get_DestinationHeight), reinterpret_cast<setter>(PdfPageRenderOptions_put_DestinationHeight), nullptr, nullptr },
|
|
1330
1488
|
{ "bitmap_encoder_id", reinterpret_cast<getter>(PdfPageRenderOptions_get_BitmapEncoderId), reinterpret_cast<setter>(PdfPageRenderOptions_put_BitmapEncoderId), nullptr, nullptr },
|
|
1331
1489
|
{ "background_color", reinterpret_cast<getter>(PdfPageRenderOptions_get_BackgroundColor), reinterpret_cast<setter>(PdfPageRenderOptions_put_BackgroundColor), nullptr, nullptr },
|
|
1332
|
-
{ }
|
|
1333
|
-
};
|
|
1490
|
+
{ }};
|
|
1334
1491
|
|
|
1335
1492
|
static PyType_Slot _type_slots_PdfPageRenderOptions[] = {
|
|
1336
1493
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PdfPageRenderOptions) },
|
|
1337
1494
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PdfPageRenderOptions) },
|
|
1338
1495
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PdfPageRenderOptions) },
|
|
1339
1496
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PdfPageRenderOptions) },
|
|
1340
|
-
{ }
|
|
1341
|
-
};
|
|
1497
|
+
{ }};
|
|
1342
1498
|
|
|
1343
1499
|
static PyType_Spec type_spec_PdfPageRenderOptions = {
|
|
1344
1500
|
"winrt._winrt_windows_data_pdf.PdfPageRenderOptions",
|
|
@@ -1379,6 +1535,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_data_pdf(void) noexcept
|
|
|
1379
1535
|
return nullptr;
|
|
1380
1536
|
}
|
|
1381
1537
|
|
|
1538
|
+
auto inspectable_meta_type = py::get_inspectable_meta_type();
|
|
1539
|
+
if (!inspectable_meta_type)
|
|
1540
|
+
{
|
|
1541
|
+
return nullptr;
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1382
1544
|
auto object_type = py::get_object_type();
|
|
1383
1545
|
if (!object_type)
|
|
1384
1546
|
{
|
|
@@ -1392,7 +1554,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_data_pdf(void) noexcept
|
|
|
1392
1554
|
return nullptr;
|
|
1393
1555
|
}
|
|
1394
1556
|
|
|
1395
|
-
py::pyobj_handle
|
|
1557
|
+
py::pyobj_handle PdfDocument_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
|
|
1558
|
+
if (!PdfDocument_Static_bases)
|
|
1559
|
+
{
|
|
1560
|
+
return nullptr;
|
|
1561
|
+
}
|
|
1562
|
+
|
|
1563
|
+
py::pyobj_handle type_PdfDocument_Static{PyType_FromSpecWithBases(&type_spec_PdfDocument_Static, PdfDocument_Static_bases.get())};
|
|
1396
1564
|
if (!type_PdfDocument_Static)
|
|
1397
1565
|
{
|
|
1398
1566
|
return nullptr;
|
|
@@ -1404,19 +1572,19 @@ PyMODINIT_FUNC PyInit__winrt_windows_data_pdf(void) noexcept
|
|
|
1404
1572
|
return nullptr;
|
|
1405
1573
|
}
|
|
1406
1574
|
|
|
1407
|
-
py::pytype_handle PdfPage_type{py::register_python_type(module.get(), &type_spec_PdfPage, object_bases.get(),
|
|
1575
|
+
py::pytype_handle PdfPage_type{py::register_python_type(module.get(), &type_spec_PdfPage, object_bases.get(), inspectable_meta_type)};
|
|
1408
1576
|
if (!PdfPage_type)
|
|
1409
1577
|
{
|
|
1410
1578
|
return nullptr;
|
|
1411
1579
|
}
|
|
1412
1580
|
|
|
1413
|
-
py::pytype_handle PdfPageDimensions_type{py::register_python_type(module.get(), &type_spec_PdfPageDimensions, object_bases.get(),
|
|
1581
|
+
py::pytype_handle PdfPageDimensions_type{py::register_python_type(module.get(), &type_spec_PdfPageDimensions, object_bases.get(), inspectable_meta_type)};
|
|
1414
1582
|
if (!PdfPageDimensions_type)
|
|
1415
1583
|
{
|
|
1416
1584
|
return nullptr;
|
|
1417
1585
|
}
|
|
1418
1586
|
|
|
1419
|
-
py::pytype_handle PdfPageRenderOptions_type{py::register_python_type(module.get(), &type_spec_PdfPageRenderOptions, object_bases.get(),
|
|
1587
|
+
py::pytype_handle PdfPageRenderOptions_type{py::register_python_type(module.get(), &type_spec_PdfPageRenderOptions, object_bases.get(), inspectable_meta_type)};
|
|
1420
1588
|
if (!PdfPageRenderOptions_type)
|
|
1421
1589
|
{
|
|
1422
1590
|
return nullptr;
|
|
@@ -16,7 +16,7 @@ classifiers = [
|
|
|
16
16
|
"Intended Audience :: Developers",
|
|
17
17
|
]
|
|
18
18
|
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
-
requires-python = ">=3.9
|
|
19
|
+
requires-python = ">=3.9"
|
|
20
20
|
|
|
21
21
|
[project.urls]
|
|
22
22
|
# Homepage = "https://github.com/pywinrt/pywinrt"
|
|
@@ -34,7 +34,7 @@ optional-dependencies.all = { file = "all-requirements.txt" }
|
|
|
34
34
|
|
|
35
35
|
[tool.cibuildwheel]
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
37
|
-
environment = { PYTHONPATH="
|
|
37
|
+
environment = { PYTHONPATH="../../winrt-sdk/src" }
|
|
38
38
|
# don't install winrt-sdk from PyPI
|
|
39
39
|
build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
40
40
|
before-build = "uv pip install setuptools"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.0.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==
|
|
3
|
+
winrt-runtime==3.0.0
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
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
|
+
|
{winrt_windows_data_pdf-2.2.0 → winrt_windows_data_pdf-3.0.0}/winrt/windows/data/pdf/__init__.py
RENAMED
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
2
|
|
|
3
3
|
import enum
|
|
4
4
|
|
|
5
5
|
import winrt.system
|
|
6
|
-
from winrt import
|
|
6
|
+
from winrt._winrt_windows_data_pdf import (
|
|
7
|
+
PdfDocument,
|
|
8
|
+
PdfPage,
|
|
9
|
+
PdfPageDimensions,
|
|
10
|
+
PdfPageRenderOptions,
|
|
11
|
+
)
|
|
7
12
|
|
|
8
13
|
__all__ = [
|
|
9
14
|
"PdfPageRotation",
|
|
@@ -19,7 +24,3 @@ class PdfPageRotation(enum.IntEnum):
|
|
|
19
24
|
ROTATE180 = 2
|
|
20
25
|
ROTATE270 = 3
|
|
21
26
|
|
|
22
|
-
PdfDocument = _winrt_windows_data_pdf.PdfDocument
|
|
23
|
-
PdfPage = _winrt_windows_data_pdf.PdfPage
|
|
24
|
-
PdfPageDimensions = _winrt_windows_data_pdf.PdfPageDimensions
|
|
25
|
-
PdfPageRenderOptions = _winrt_windows_data_pdf.PdfPageRenderOptions
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Data.Pdf
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -10,14 +10,14 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python:
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==
|
|
15
|
+
Requires-Dist: winrt-runtime==3.0.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==
|
|
18
|
-
Requires-Dist: winrt-Windows.Storage[all]==
|
|
19
|
-
Requires-Dist: winrt-Windows.Storage.Streams[all]==
|
|
20
|
-
Requires-Dist: winrt-Windows.UI[all]==
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Storage[all]==3.0.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==3.0.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.UI[all]==3.0.0; extra == "all"
|
|
21
21
|
|
|
22
22
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
23
23
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.2.0
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
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(type):
|
|
23
|
-
@typing.overload
|
|
24
|
-
def load_from_file_async(cls, file: typing.Optional[windows_storage.IStorageFile], /) -> windows_foundation.IAsyncOperation[PdfDocument]: ...
|
|
25
|
-
@typing.overload
|
|
26
|
-
def load_from_file_async(cls, file: typing.Optional[windows_storage.IStorageFile], password: str, /) -> windows_foundation.IAsyncOperation[PdfDocument]: ...
|
|
27
|
-
@typing.overload
|
|
28
|
-
def load_from_stream_async(cls, input_stream: typing.Optional[windows_storage_streams.IRandomAccessStream], /) -> windows_foundation.IAsyncOperation[PdfDocument]: ...
|
|
29
|
-
@typing.overload
|
|
30
|
-
def load_from_stream_async(cls, input_stream: typing.Optional[windows_storage_streams.IRandomAccessStream], password: str, /) -> windows_foundation.IAsyncOperation[PdfDocument]: ...
|
|
31
|
-
|
|
32
|
-
@typing.final
|
|
33
|
-
class PdfDocument(winrt.system.Object, metaclass=PdfDocument_Static):
|
|
34
|
-
@staticmethod
|
|
35
|
-
def _from(obj: winrt.system.Object, /) -> PdfDocument: ...
|
|
36
|
-
def get_page(self, page_index: winrt.system.UInt32, /) -> typing.Optional[PdfPage]: ...
|
|
37
|
-
@_property
|
|
38
|
-
def is_password_protected(self) -> bool: ...
|
|
39
|
-
@_property
|
|
40
|
-
def page_count(self) -> winrt.system.UInt32: ...
|
|
41
|
-
|
|
42
|
-
@typing.final
|
|
43
|
-
class PdfPage(winrt.system.Object):
|
|
44
|
-
def __enter__(self: Self) -> Self: ...
|
|
45
|
-
def __exit__(self, *args) -> None: ...
|
|
46
|
-
@staticmethod
|
|
47
|
-
def _from(obj: winrt.system.Object, /) -> PdfPage: ...
|
|
48
|
-
def close(self) -> None: ...
|
|
49
|
-
def prepare_page_async(self) -> windows_foundation.IAsyncAction: ...
|
|
50
|
-
@typing.overload
|
|
51
|
-
def render_to_stream_async(self, output_stream: typing.Optional[windows_storage_streams.IRandomAccessStream], /) -> windows_foundation.IAsyncAction: ...
|
|
52
|
-
@typing.overload
|
|
53
|
-
def render_to_stream_async(self, output_stream: typing.Optional[windows_storage_streams.IRandomAccessStream], options: typing.Optional[PdfPageRenderOptions], /) -> windows_foundation.IAsyncAction: ...
|
|
54
|
-
@_property
|
|
55
|
-
def dimensions(self) -> typing.Optional[PdfPageDimensions]: ...
|
|
56
|
-
@_property
|
|
57
|
-
def index(self) -> winrt.system.UInt32: ...
|
|
58
|
-
@_property
|
|
59
|
-
def preferred_zoom(self) -> winrt.system.Single: ...
|
|
60
|
-
@_property
|
|
61
|
-
def rotation(self) -> PdfPageRotation: ...
|
|
62
|
-
@_property
|
|
63
|
-
def size(self) -> windows_foundation.Size: ...
|
|
64
|
-
|
|
65
|
-
@typing.final
|
|
66
|
-
class PdfPageDimensions(winrt.system.Object):
|
|
67
|
-
@staticmethod
|
|
68
|
-
def _from(obj: winrt.system.Object, /) -> PdfPageDimensions: ...
|
|
69
|
-
@_property
|
|
70
|
-
def art_box(self) -> windows_foundation.Rect: ...
|
|
71
|
-
@_property
|
|
72
|
-
def bleed_box(self) -> windows_foundation.Rect: ...
|
|
73
|
-
@_property
|
|
74
|
-
def crop_box(self) -> windows_foundation.Rect: ...
|
|
75
|
-
@_property
|
|
76
|
-
def media_box(self) -> windows_foundation.Rect: ...
|
|
77
|
-
@_property
|
|
78
|
-
def trim_box(self) -> windows_foundation.Rect: ...
|
|
79
|
-
|
|
80
|
-
@typing.final
|
|
81
|
-
class PdfPageRenderOptions(winrt.system.Object):
|
|
82
|
-
@staticmethod
|
|
83
|
-
def _from(obj: winrt.system.Object, /) -> PdfPageRenderOptions: ...
|
|
84
|
-
def __new__(cls: typing.Type[PdfPageRenderOptions]) -> PdfPageRenderOptions: ...
|
|
85
|
-
@_property
|
|
86
|
-
def source_rect(self) -> windows_foundation.Rect: ...
|
|
87
|
-
@source_rect.setter
|
|
88
|
-
def source_rect(self, value: windows_foundation.Rect) -> None: ...
|
|
89
|
-
@_property
|
|
90
|
-
def is_ignoring_high_contrast(self) -> bool: ...
|
|
91
|
-
@is_ignoring_high_contrast.setter
|
|
92
|
-
def is_ignoring_high_contrast(self, value: bool) -> None: ...
|
|
93
|
-
@_property
|
|
94
|
-
def destination_width(self) -> winrt.system.UInt32: ...
|
|
95
|
-
@destination_width.setter
|
|
96
|
-
def destination_width(self, value: winrt.system.UInt32) -> None: ...
|
|
97
|
-
@_property
|
|
98
|
-
def destination_height(self) -> winrt.system.UInt32: ...
|
|
99
|
-
@destination_height.setter
|
|
100
|
-
def destination_height(self, value: winrt.system.UInt32) -> None: ...
|
|
101
|
-
@_property
|
|
102
|
-
def bitmap_encoder_id(self) -> _uuid.UUID: ...
|
|
103
|
-
@bitmap_encoder_id.setter
|
|
104
|
-
def bitmap_encoder_id(self, value: _uuid.UUID) -> None: ...
|
|
105
|
-
@_property
|
|
106
|
-
def background_color(self) -> windows_ui.Color: ...
|
|
107
|
-
@background_color.setter
|
|
108
|
-
def background_color(self, value: windows_ui.Color) -> None: ...
|
|
109
|
-
|
|
File without changes
|
|
File without changes
|
{winrt_windows_data_pdf-2.2.0 → winrt_windows_data_pdf-3.0.0}/winrt/windows/data/pdf/py.typed
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|