winrt-Windows.Data.Pdf 2.1.0__tar.gz → 2.2.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.1.0 → winrt_windows_data_pdf-2.2.0}/PKG-INFO +7 -7
- winrt_windows_data_pdf-2.2.0/all-requirements.txt +6 -0
- {winrt_windows_data_pdf-2.1.0 → winrt_windows_data_pdf-2.2.0}/py.Windows.Data.Pdf.cpp +274 -39
- {winrt_windows_data_pdf-2.1.0 → winrt_windows_data_pdf-2.2.0}/pyproject.toml +3 -2
- winrt_windows_data_pdf-2.2.0/pywinrt-version.txt +1 -0
- {winrt_windows_data_pdf-2.1.0 → winrt_windows_data_pdf-2.2.0}/requirements.txt +2 -2
- {winrt_windows_data_pdf-2.1.0 → winrt_windows_data_pdf-2.2.0}/winrt/_winrt_windows_data_pdf.pyi +1 -1
- {winrt_windows_data_pdf-2.1.0 → winrt_windows_data_pdf-2.2.0}/winrt/windows/data/pdf/__init__.py +1 -1
- {winrt_windows_data_pdf-2.1.0 → winrt_windows_data_pdf-2.2.0}/winrt_Windows.Data.Pdf.egg-info/PKG-INFO +7 -7
- winrt_windows_data_pdf-2.2.0/winrt_Windows.Data.Pdf.egg-info/requires.txt +7 -0
- winrt_windows_data_pdf-2.1.0/all-requirements.txt +0 -6
- winrt_windows_data_pdf-2.1.0/pywinrt-version.txt +0 -1
- winrt_windows_data_pdf-2.1.0/winrt_Windows.Data.Pdf.egg-info/requires.txt +0 -7
- {winrt_windows_data_pdf-2.1.0 → winrt_windows_data_pdf-2.2.0}/README.md +0 -0
- {winrt_windows_data_pdf-2.1.0 → winrt_windows_data_pdf-2.2.0}/setup.cfg +0 -0
- {winrt_windows_data_pdf-2.1.0 → winrt_windows_data_pdf-2.2.0}/setup.py +0 -0
- {winrt_windows_data_pdf-2.1.0 → winrt_windows_data_pdf-2.2.0}/winrt/windows/data/pdf/py.typed +0 -0
- {winrt_windows_data_pdf-2.1.0 → winrt_windows_data_pdf-2.2.0}/winrt_Windows.Data.Pdf.egg-info/SOURCES.txt +0 -0
- {winrt_windows_data_pdf-2.1.0 → winrt_windows_data_pdf-2.2.0}/winrt_Windows.Data.Pdf.egg-info/dependency_links.txt +0 -0
- {winrt_windows_data_pdf-2.1.0 → winrt_windows_data_pdf-2.2.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: 2.
|
|
3
|
+
Version: 2.2.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: <3.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.
|
|
18
|
-
Requires-Dist: winrt-Windows.Storage[all]==2.
|
|
19
|
-
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.
|
|
20
|
-
Requires-Dist: winrt-Windows.UI[all]==2.
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Storage[all]==2.2.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.2.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.UI[all]==2.2.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 v2.
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.Data.Pdf.h"
|
|
4
4
|
|
|
@@ -29,7 +29,14 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
29
29
|
{
|
|
30
30
|
try
|
|
31
31
|
{
|
|
32
|
-
|
|
32
|
+
static std::optional<bool> is_overload_present{};
|
|
33
|
+
|
|
34
|
+
if (!is_overload_present.has_value())
|
|
35
|
+
{
|
|
36
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Data.Pdf.PdfDocument", L"GetPage", 1);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (!is_overload_present.value())
|
|
33
40
|
{
|
|
34
41
|
py::set_arg_count_version_error(1);
|
|
35
42
|
return nullptr;
|
|
@@ -60,7 +67,14 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
60
67
|
{
|
|
61
68
|
try
|
|
62
69
|
{
|
|
63
|
-
|
|
70
|
+
static std::optional<bool> is_overload_present{};
|
|
71
|
+
|
|
72
|
+
if (!is_overload_present.has_value())
|
|
73
|
+
{
|
|
74
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Data.Pdf.PdfDocument", L"LoadFromFileAsync", 1);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if (!is_overload_present.value())
|
|
64
78
|
{
|
|
65
79
|
py::set_arg_count_version_error(1);
|
|
66
80
|
return nullptr;
|
|
@@ -80,7 +94,14 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
80
94
|
{
|
|
81
95
|
try
|
|
82
96
|
{
|
|
83
|
-
|
|
97
|
+
static std::optional<bool> is_overload_present{};
|
|
98
|
+
|
|
99
|
+
if (!is_overload_present.has_value())
|
|
100
|
+
{
|
|
101
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Data.Pdf.PdfDocument", L"LoadFromFileAsync", 2);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
if (!is_overload_present.value())
|
|
84
105
|
{
|
|
85
106
|
py::set_arg_count_version_error(2);
|
|
86
107
|
return nullptr;
|
|
@@ -112,7 +133,14 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
112
133
|
{
|
|
113
134
|
try
|
|
114
135
|
{
|
|
115
|
-
|
|
136
|
+
static std::optional<bool> is_overload_present{};
|
|
137
|
+
|
|
138
|
+
if (!is_overload_present.has_value())
|
|
139
|
+
{
|
|
140
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Data.Pdf.PdfDocument", L"LoadFromStreamAsync", 1);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
if (!is_overload_present.value())
|
|
116
144
|
{
|
|
117
145
|
py::set_arg_count_version_error(1);
|
|
118
146
|
return nullptr;
|
|
@@ -132,7 +160,14 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
132
160
|
{
|
|
133
161
|
try
|
|
134
162
|
{
|
|
135
|
-
|
|
163
|
+
static std::optional<bool> is_overload_present{};
|
|
164
|
+
|
|
165
|
+
if (!is_overload_present.has_value())
|
|
166
|
+
{
|
|
167
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Data.Pdf.PdfDocument", L"LoadFromStreamAsync", 2);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
if (!is_overload_present.value())
|
|
136
171
|
{
|
|
137
172
|
py::set_arg_count_version_error(2);
|
|
138
173
|
return nullptr;
|
|
@@ -160,7 +195,14 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
160
195
|
{
|
|
161
196
|
try
|
|
162
197
|
{
|
|
163
|
-
|
|
198
|
+
static std::optional<bool> is_property_present{};
|
|
199
|
+
|
|
200
|
+
if (!is_property_present.has_value())
|
|
201
|
+
{
|
|
202
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfDocument", L"IsPasswordProtected");
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
if (!is_property_present.value())
|
|
164
206
|
{
|
|
165
207
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
166
208
|
return nullptr;
|
|
@@ -179,7 +221,14 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
179
221
|
{
|
|
180
222
|
try
|
|
181
223
|
{
|
|
182
|
-
|
|
224
|
+
static std::optional<bool> is_property_present{};
|
|
225
|
+
|
|
226
|
+
if (!is_property_present.has_value())
|
|
227
|
+
{
|
|
228
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfDocument", L"PageCount");
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
if (!is_property_present.value())
|
|
183
232
|
{
|
|
184
233
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
185
234
|
return nullptr;
|
|
@@ -298,7 +347,14 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
298
347
|
{
|
|
299
348
|
try
|
|
300
349
|
{
|
|
301
|
-
|
|
350
|
+
static std::optional<bool> is_overload_present{};
|
|
351
|
+
|
|
352
|
+
if (!is_overload_present.has_value())
|
|
353
|
+
{
|
|
354
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Data.Pdf.PdfPage", L"Close", 0);
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
if (!is_overload_present.value())
|
|
302
358
|
{
|
|
303
359
|
py::set_arg_count_version_error(0);
|
|
304
360
|
return nullptr;
|
|
@@ -328,7 +384,14 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
328
384
|
{
|
|
329
385
|
try
|
|
330
386
|
{
|
|
331
|
-
|
|
387
|
+
static std::optional<bool> is_overload_present{};
|
|
388
|
+
|
|
389
|
+
if (!is_overload_present.has_value())
|
|
390
|
+
{
|
|
391
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Data.Pdf.PdfPage", L"PreparePageAsync", 0);
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
if (!is_overload_present.value())
|
|
332
395
|
{
|
|
333
396
|
py::set_arg_count_version_error(0);
|
|
334
397
|
return nullptr;
|
|
@@ -357,7 +420,14 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
357
420
|
{
|
|
358
421
|
try
|
|
359
422
|
{
|
|
360
|
-
|
|
423
|
+
static std::optional<bool> is_overload_present{};
|
|
424
|
+
|
|
425
|
+
if (!is_overload_present.has_value())
|
|
426
|
+
{
|
|
427
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Data.Pdf.PdfPage", L"RenderToStreamAsync", 1);
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
if (!is_overload_present.value())
|
|
361
431
|
{
|
|
362
432
|
py::set_arg_count_version_error(1);
|
|
363
433
|
return nullptr;
|
|
@@ -377,7 +447,14 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
377
447
|
{
|
|
378
448
|
try
|
|
379
449
|
{
|
|
380
|
-
|
|
450
|
+
static std::optional<bool> is_overload_present{};
|
|
451
|
+
|
|
452
|
+
if (!is_overload_present.has_value())
|
|
453
|
+
{
|
|
454
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Data.Pdf.PdfPage", L"RenderToStreamAsync", 2);
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
if (!is_overload_present.value())
|
|
381
458
|
{
|
|
382
459
|
py::set_arg_count_version_error(2);
|
|
383
460
|
return nullptr;
|
|
@@ -405,7 +482,14 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
405
482
|
{
|
|
406
483
|
try
|
|
407
484
|
{
|
|
408
|
-
|
|
485
|
+
static std::optional<bool> is_property_present{};
|
|
486
|
+
|
|
487
|
+
if (!is_property_present.has_value())
|
|
488
|
+
{
|
|
489
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPage", L"Dimensions");
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
if (!is_property_present.value())
|
|
409
493
|
{
|
|
410
494
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
411
495
|
return nullptr;
|
|
@@ -424,7 +508,14 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
424
508
|
{
|
|
425
509
|
try
|
|
426
510
|
{
|
|
427
|
-
|
|
511
|
+
static std::optional<bool> is_property_present{};
|
|
512
|
+
|
|
513
|
+
if (!is_property_present.has_value())
|
|
514
|
+
{
|
|
515
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPage", L"Index");
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
if (!is_property_present.value())
|
|
428
519
|
{
|
|
429
520
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
430
521
|
return nullptr;
|
|
@@ -443,7 +534,14 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
443
534
|
{
|
|
444
535
|
try
|
|
445
536
|
{
|
|
446
|
-
|
|
537
|
+
static std::optional<bool> is_property_present{};
|
|
538
|
+
|
|
539
|
+
if (!is_property_present.has_value())
|
|
540
|
+
{
|
|
541
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPage", L"PreferredZoom");
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
if (!is_property_present.value())
|
|
447
545
|
{
|
|
448
546
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
449
547
|
return nullptr;
|
|
@@ -462,7 +560,14 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
462
560
|
{
|
|
463
561
|
try
|
|
464
562
|
{
|
|
465
|
-
|
|
563
|
+
static std::optional<bool> is_property_present{};
|
|
564
|
+
|
|
565
|
+
if (!is_property_present.has_value())
|
|
566
|
+
{
|
|
567
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPage", L"Rotation");
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
if (!is_property_present.value())
|
|
466
571
|
{
|
|
467
572
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
468
573
|
return nullptr;
|
|
@@ -481,7 +586,14 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
481
586
|
{
|
|
482
587
|
try
|
|
483
588
|
{
|
|
484
|
-
|
|
589
|
+
static std::optional<bool> is_property_present{};
|
|
590
|
+
|
|
591
|
+
if (!is_property_present.has_value())
|
|
592
|
+
{
|
|
593
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPage", L"Size");
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
if (!is_property_present.value())
|
|
485
597
|
{
|
|
486
598
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
487
599
|
return nullptr;
|
|
@@ -595,7 +707,14 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
595
707
|
{
|
|
596
708
|
try
|
|
597
709
|
{
|
|
598
|
-
|
|
710
|
+
static std::optional<bool> is_property_present{};
|
|
711
|
+
|
|
712
|
+
if (!is_property_present.has_value())
|
|
713
|
+
{
|
|
714
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageDimensions", L"ArtBox");
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
if (!is_property_present.value())
|
|
599
718
|
{
|
|
600
719
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
601
720
|
return nullptr;
|
|
@@ -614,7 +733,14 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
614
733
|
{
|
|
615
734
|
try
|
|
616
735
|
{
|
|
617
|
-
|
|
736
|
+
static std::optional<bool> is_property_present{};
|
|
737
|
+
|
|
738
|
+
if (!is_property_present.has_value())
|
|
739
|
+
{
|
|
740
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageDimensions", L"BleedBox");
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
if (!is_property_present.value())
|
|
618
744
|
{
|
|
619
745
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
620
746
|
return nullptr;
|
|
@@ -633,7 +759,14 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
633
759
|
{
|
|
634
760
|
try
|
|
635
761
|
{
|
|
636
|
-
|
|
762
|
+
static std::optional<bool> is_property_present{};
|
|
763
|
+
|
|
764
|
+
if (!is_property_present.has_value())
|
|
765
|
+
{
|
|
766
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageDimensions", L"CropBox");
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
if (!is_property_present.value())
|
|
637
770
|
{
|
|
638
771
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
639
772
|
return nullptr;
|
|
@@ -652,7 +785,14 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
652
785
|
{
|
|
653
786
|
try
|
|
654
787
|
{
|
|
655
|
-
|
|
788
|
+
static std::optional<bool> is_property_present{};
|
|
789
|
+
|
|
790
|
+
if (!is_property_present.has_value())
|
|
791
|
+
{
|
|
792
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageDimensions", L"MediaBox");
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
if (!is_property_present.value())
|
|
656
796
|
{
|
|
657
797
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
658
798
|
return nullptr;
|
|
@@ -671,7 +811,14 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
671
811
|
{
|
|
672
812
|
try
|
|
673
813
|
{
|
|
674
|
-
|
|
814
|
+
static std::optional<bool> is_property_present{};
|
|
815
|
+
|
|
816
|
+
if (!is_property_present.has_value())
|
|
817
|
+
{
|
|
818
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageDimensions", L"TrimBox");
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
if (!is_property_present.value())
|
|
675
822
|
{
|
|
676
823
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
677
824
|
return nullptr;
|
|
@@ -755,7 +902,7 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
755
902
|
{
|
|
756
903
|
try
|
|
757
904
|
{
|
|
758
|
-
winrt::Windows::Data::Pdf::PdfPageRenderOptions instance{
|
|
905
|
+
winrt::Windows::Data::Pdf::PdfPageRenderOptions instance{};
|
|
759
906
|
return py::wrap(instance, type);
|
|
760
907
|
}
|
|
761
908
|
catch (...)
|
|
@@ -783,7 +930,14 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
783
930
|
{
|
|
784
931
|
try
|
|
785
932
|
{
|
|
786
|
-
|
|
933
|
+
static std::optional<bool> is_property_present{};
|
|
934
|
+
|
|
935
|
+
if (!is_property_present.has_value())
|
|
936
|
+
{
|
|
937
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageRenderOptions", L"SourceRect");
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
if (!is_property_present.value())
|
|
787
941
|
{
|
|
788
942
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
789
943
|
return nullptr;
|
|
@@ -808,7 +962,14 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
808
962
|
|
|
809
963
|
try
|
|
810
964
|
{
|
|
811
|
-
|
|
965
|
+
static std::optional<bool> is_property_present{};
|
|
966
|
+
|
|
967
|
+
if (!is_property_present.has_value())
|
|
968
|
+
{
|
|
969
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageRenderOptions", L"SourceRect");
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
if (!is_property_present.value())
|
|
812
973
|
{
|
|
813
974
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
814
975
|
return -1;
|
|
@@ -830,7 +991,14 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
830
991
|
{
|
|
831
992
|
try
|
|
832
993
|
{
|
|
833
|
-
|
|
994
|
+
static std::optional<bool> is_property_present{};
|
|
995
|
+
|
|
996
|
+
if (!is_property_present.has_value())
|
|
997
|
+
{
|
|
998
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageRenderOptions", L"IsIgnoringHighContrast");
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
if (!is_property_present.value())
|
|
834
1002
|
{
|
|
835
1003
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
836
1004
|
return nullptr;
|
|
@@ -855,7 +1023,14 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
855
1023
|
|
|
856
1024
|
try
|
|
857
1025
|
{
|
|
858
|
-
|
|
1026
|
+
static std::optional<bool> is_property_present{};
|
|
1027
|
+
|
|
1028
|
+
if (!is_property_present.has_value())
|
|
1029
|
+
{
|
|
1030
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageRenderOptions", L"IsIgnoringHighContrast");
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
if (!is_property_present.value())
|
|
859
1034
|
{
|
|
860
1035
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
861
1036
|
return -1;
|
|
@@ -877,7 +1052,14 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
877
1052
|
{
|
|
878
1053
|
try
|
|
879
1054
|
{
|
|
880
|
-
|
|
1055
|
+
static std::optional<bool> is_property_present{};
|
|
1056
|
+
|
|
1057
|
+
if (!is_property_present.has_value())
|
|
1058
|
+
{
|
|
1059
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageRenderOptions", L"DestinationWidth");
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
if (!is_property_present.value())
|
|
881
1063
|
{
|
|
882
1064
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
883
1065
|
return nullptr;
|
|
@@ -902,7 +1084,14 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
902
1084
|
|
|
903
1085
|
try
|
|
904
1086
|
{
|
|
905
|
-
|
|
1087
|
+
static std::optional<bool> is_property_present{};
|
|
1088
|
+
|
|
1089
|
+
if (!is_property_present.has_value())
|
|
1090
|
+
{
|
|
1091
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageRenderOptions", L"DestinationWidth");
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
if (!is_property_present.value())
|
|
906
1095
|
{
|
|
907
1096
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
908
1097
|
return -1;
|
|
@@ -924,7 +1113,14 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
924
1113
|
{
|
|
925
1114
|
try
|
|
926
1115
|
{
|
|
927
|
-
|
|
1116
|
+
static std::optional<bool> is_property_present{};
|
|
1117
|
+
|
|
1118
|
+
if (!is_property_present.has_value())
|
|
1119
|
+
{
|
|
1120
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageRenderOptions", L"DestinationHeight");
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
if (!is_property_present.value())
|
|
928
1124
|
{
|
|
929
1125
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
930
1126
|
return nullptr;
|
|
@@ -949,7 +1145,14 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
949
1145
|
|
|
950
1146
|
try
|
|
951
1147
|
{
|
|
952
|
-
|
|
1148
|
+
static std::optional<bool> is_property_present{};
|
|
1149
|
+
|
|
1150
|
+
if (!is_property_present.has_value())
|
|
1151
|
+
{
|
|
1152
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageRenderOptions", L"DestinationHeight");
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
if (!is_property_present.value())
|
|
953
1156
|
{
|
|
954
1157
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
955
1158
|
return -1;
|
|
@@ -971,7 +1174,14 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
971
1174
|
{
|
|
972
1175
|
try
|
|
973
1176
|
{
|
|
974
|
-
|
|
1177
|
+
static std::optional<bool> is_property_present{};
|
|
1178
|
+
|
|
1179
|
+
if (!is_property_present.has_value())
|
|
1180
|
+
{
|
|
1181
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageRenderOptions", L"BitmapEncoderId");
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
if (!is_property_present.value())
|
|
975
1185
|
{
|
|
976
1186
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
977
1187
|
return nullptr;
|
|
@@ -996,7 +1206,14 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
996
1206
|
|
|
997
1207
|
try
|
|
998
1208
|
{
|
|
999
|
-
|
|
1209
|
+
static std::optional<bool> is_property_present{};
|
|
1210
|
+
|
|
1211
|
+
if (!is_property_present.has_value())
|
|
1212
|
+
{
|
|
1213
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageRenderOptions", L"BitmapEncoderId");
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
if (!is_property_present.value())
|
|
1000
1217
|
{
|
|
1001
1218
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1002
1219
|
return -1;
|
|
@@ -1018,7 +1235,14 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
1018
1235
|
{
|
|
1019
1236
|
try
|
|
1020
1237
|
{
|
|
1021
|
-
|
|
1238
|
+
static std::optional<bool> is_property_present{};
|
|
1239
|
+
|
|
1240
|
+
if (!is_property_present.has_value())
|
|
1241
|
+
{
|
|
1242
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageRenderOptions", L"BackgroundColor");
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
if (!is_property_present.value())
|
|
1022
1246
|
{
|
|
1023
1247
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1024
1248
|
return nullptr;
|
|
@@ -1043,7 +1267,14 @@ namespace py::cpp::Windows::Data::Pdf
|
|
|
1043
1267
|
|
|
1044
1268
|
try
|
|
1045
1269
|
{
|
|
1046
|
-
|
|
1270
|
+
static std::optional<bool> is_property_present{};
|
|
1271
|
+
|
|
1272
|
+
if (!is_property_present.has_value())
|
|
1273
|
+
{
|
|
1274
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageRenderOptions", L"BackgroundColor");
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1277
|
+
if (!is_property_present.value())
|
|
1047
1278
|
{
|
|
1048
1279
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1049
1280
|
return -1;
|
|
@@ -1167,22 +1398,26 @@ PyMODINIT_FUNC PyInit__winrt_windows_data_pdf(void) noexcept
|
|
|
1167
1398
|
return nullptr;
|
|
1168
1399
|
}
|
|
1169
1400
|
|
|
1170
|
-
|
|
1401
|
+
py::pytype_handle PdfDocument_type{py::register_python_type(module.get(), &type_spec_PdfDocument, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_PdfDocument_Static.get()))};
|
|
1402
|
+
if (!PdfDocument_type)
|
|
1171
1403
|
{
|
|
1172
1404
|
return nullptr;
|
|
1173
1405
|
}
|
|
1174
1406
|
|
|
1175
|
-
|
|
1407
|
+
py::pytype_handle PdfPage_type{py::register_python_type(module.get(), &type_spec_PdfPage, object_bases.get(), nullptr)};
|
|
1408
|
+
if (!PdfPage_type)
|
|
1176
1409
|
{
|
|
1177
1410
|
return nullptr;
|
|
1178
1411
|
}
|
|
1179
1412
|
|
|
1180
|
-
|
|
1413
|
+
py::pytype_handle PdfPageDimensions_type{py::register_python_type(module.get(), &type_spec_PdfPageDimensions, object_bases.get(), nullptr)};
|
|
1414
|
+
if (!PdfPageDimensions_type)
|
|
1181
1415
|
{
|
|
1182
1416
|
return nullptr;
|
|
1183
1417
|
}
|
|
1184
1418
|
|
|
1185
|
-
|
|
1419
|
+
py::pytype_handle PdfPageRenderOptions_type{py::register_python_type(module.get(), &type_spec_PdfPageRenderOptions, object_bases.get(), nullptr)};
|
|
1420
|
+
if (!PdfPageRenderOptions_type)
|
|
1186
1421
|
{
|
|
1187
1422
|
return nullptr;
|
|
1188
1423
|
}
|
|
@@ -16,7 +16,7 @@ classifiers = [
|
|
|
16
16
|
"Intended Audience :: Developers",
|
|
17
17
|
]
|
|
18
18
|
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
-
requires-python = ">=3.9,<3.
|
|
19
|
+
requires-python = ">=3.9,<3.14"
|
|
20
20
|
|
|
21
21
|
[project.urls]
|
|
22
22
|
# Homepage = "https://github.com/pywinrt/pywinrt"
|
|
@@ -36,7 +36,8 @@ optional-dependencies.all = { file = "all-requirements.txt" }
|
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
37
37
|
environment = { PYTHONPATH="../winrt-sdk/src" }
|
|
38
38
|
# don't install winrt-sdk from PyPI
|
|
39
|
-
build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
39
|
+
build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
40
|
+
before-build = "uv pip install setuptools"
|
|
40
41
|
# don't build for PyPy
|
|
41
42
|
skip = "pp*"
|
|
42
43
|
# suppress warnings about ARM64 testing
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.2.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.
|
|
3
|
+
winrt-runtime==2.2.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Data.Pdf
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.2.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: <3.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.
|
|
18
|
-
Requires-Dist: winrt-Windows.Storage[all]==2.
|
|
19
|
-
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.
|
|
20
|
-
Requires-Dist: winrt-Windows.UI[all]==2.
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Storage[all]==2.2.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.2.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.UI[all]==2.2.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.1.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{winrt_windows_data_pdf-2.1.0 → winrt_windows_data_pdf-2.2.0}/winrt/windows/data/pdf/py.typed
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|