winrt-Windows.Data.Pdf 2.0.1__tar.gz → 2.1.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.
Files changed (20) hide show
  1. {winrt_windows_data_pdf-2.0.1 → winrt_windows_data_pdf-2.1.0}/PKG-INFO +6 -6
  2. winrt_windows_data_pdf-2.1.0/all-requirements.txt +6 -0
  3. {winrt_windows_data_pdf-2.0.1 → winrt_windows_data_pdf-2.1.0}/py.Windows.Data.Pdf.cpp +227 -241
  4. winrt_windows_data_pdf-2.1.0/pywinrt-version.txt +1 -0
  5. {winrt_windows_data_pdf-2.0.1 → winrt_windows_data_pdf-2.1.0}/requirements.txt +2 -2
  6. {winrt_windows_data_pdf-2.0.1 → winrt_windows_data_pdf-2.1.0}/winrt/_winrt_windows_data_pdf.pyi +23 -23
  7. {winrt_windows_data_pdf-2.0.1 → winrt_windows_data_pdf-2.1.0}/winrt/windows/data/pdf/__init__.py +1 -1
  8. {winrt_windows_data_pdf-2.0.1 → winrt_windows_data_pdf-2.1.0}/winrt_Windows.Data.Pdf.egg-info/PKG-INFO +6 -6
  9. winrt_windows_data_pdf-2.1.0/winrt_Windows.Data.Pdf.egg-info/requires.txt +7 -0
  10. winrt_windows_data_pdf-2.0.1/all-requirements.txt +0 -6
  11. winrt_windows_data_pdf-2.0.1/pywinrt-version.txt +0 -1
  12. winrt_windows_data_pdf-2.0.1/winrt_Windows.Data.Pdf.egg-info/requires.txt +0 -7
  13. {winrt_windows_data_pdf-2.0.1 → winrt_windows_data_pdf-2.1.0}/README.md +0 -0
  14. {winrt_windows_data_pdf-2.0.1 → winrt_windows_data_pdf-2.1.0}/pyproject.toml +0 -0
  15. {winrt_windows_data_pdf-2.0.1 → winrt_windows_data_pdf-2.1.0}/setup.cfg +0 -0
  16. {winrt_windows_data_pdf-2.0.1 → winrt_windows_data_pdf-2.1.0}/setup.py +0 -0
  17. {winrt_windows_data_pdf-2.0.1 → winrt_windows_data_pdf-2.1.0}/winrt/windows/data/pdf/py.typed +0 -0
  18. {winrt_windows_data_pdf-2.0.1 → winrt_windows_data_pdf-2.1.0}/winrt_Windows.Data.Pdf.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_data_pdf-2.0.1 → winrt_windows_data_pdf-2.1.0}/winrt_Windows.Data.Pdf.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_data_pdf-2.0.1 → winrt_windows_data_pdf-2.1.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.0.1
3
+ Version: 2.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -12,12 +12,12 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
13
  Requires-Python: <3.13,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.0.1
15
+ Requires-Dist: winrt-runtime==2.1.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.0.1; extra == "all"
18
- Requires-Dist: winrt-Windows.Storage[all]==2.0.1; extra == "all"
19
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.0.1; extra == "all"
20
- Requires-Dist: winrt-Windows.UI[all]==2.0.1; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Storage[all]==2.1.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==2.1.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.UI[all]==2.1.0; extra == "all"
21
21
 
22
22
  <!-- warning: Please don't edit this file. It was automatically generated. -->
23
23
 
@@ -0,0 +1,6 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
+
3
+ winrt-Windows.Foundation[all]==2.1.0
4
+ winrt-Windows.Storage[all]==2.1.0
5
+ winrt-Windows.Storage.Streams[all]==2.1.0
6
+ winrt-Windows.UI[all]==2.1.0
@@ -1,8 +1,7 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
3
  #include "py.Windows.Data.Pdf.h"
4
4
 
5
-
6
5
  namespace py::cpp::Windows::Data::Pdf
7
6
  {
8
7
  // ----- PdfDocument class --------------------
@@ -28,14 +27,14 @@ namespace py::cpp::Windows::Data::Pdf
28
27
 
29
28
  if (arg_count == 1)
30
29
  {
31
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Data.Pdf.PdfDocument", L"GetPage", 1))
32
- {
33
- py::set_arg_count_version_error(1);
34
- return nullptr;
35
- }
36
-
37
30
  try
38
31
  {
32
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Data.Pdf.PdfDocument", L"GetPage", 1))
33
+ {
34
+ py::set_arg_count_version_error(1);
35
+ return nullptr;
36
+ }
37
+
39
38
  auto param0 = py::convert_to<uint32_t>(args, 0);
40
39
 
41
40
  return py::convert(self->obj.GetPage(param0));
@@ -59,14 +58,14 @@ namespace py::cpp::Windows::Data::Pdf
59
58
 
60
59
  if (arg_count == 1)
61
60
  {
62
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Data.Pdf.PdfDocument", L"LoadFromFileAsync", 1))
63
- {
64
- py::set_arg_count_version_error(1);
65
- return nullptr;
66
- }
67
-
68
61
  try
69
62
  {
63
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Data.Pdf.PdfDocument", L"LoadFromFileAsync", 1))
64
+ {
65
+ py::set_arg_count_version_error(1);
66
+ return nullptr;
67
+ }
68
+
70
69
  auto param0 = py::convert_to<winrt::Windows::Storage::IStorageFile>(args, 0);
71
70
 
72
71
  return py::convert(winrt::Windows::Data::Pdf::PdfDocument::LoadFromFileAsync(param0));
@@ -79,14 +78,14 @@ namespace py::cpp::Windows::Data::Pdf
79
78
  }
80
79
  else if (arg_count == 2)
81
80
  {
82
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Data.Pdf.PdfDocument", L"LoadFromFileAsync", 2))
83
- {
84
- py::set_arg_count_version_error(2);
85
- return nullptr;
86
- }
87
-
88
81
  try
89
82
  {
83
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Data.Pdf.PdfDocument", L"LoadFromFileAsync", 2))
84
+ {
85
+ py::set_arg_count_version_error(2);
86
+ return nullptr;
87
+ }
88
+
90
89
  auto param0 = py::convert_to<winrt::Windows::Storage::IStorageFile>(args, 0);
91
90
  auto param1 = py::convert_to<winrt::hstring>(args, 1);
92
91
 
@@ -111,14 +110,14 @@ namespace py::cpp::Windows::Data::Pdf
111
110
 
112
111
  if (arg_count == 1)
113
112
  {
114
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Data.Pdf.PdfDocument", L"LoadFromStreamAsync", 1))
115
- {
116
- py::set_arg_count_version_error(1);
117
- return nullptr;
118
- }
119
-
120
113
  try
121
114
  {
115
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Data.Pdf.PdfDocument", L"LoadFromStreamAsync", 1))
116
+ {
117
+ py::set_arg_count_version_error(1);
118
+ return nullptr;
119
+ }
120
+
122
121
  auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IRandomAccessStream>(args, 0);
123
122
 
124
123
  return py::convert(winrt::Windows::Data::Pdf::PdfDocument::LoadFromStreamAsync(param0));
@@ -131,14 +130,14 @@ namespace py::cpp::Windows::Data::Pdf
131
130
  }
132
131
  else if (arg_count == 2)
133
132
  {
134
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Data.Pdf.PdfDocument", L"LoadFromStreamAsync", 2))
135
- {
136
- py::set_arg_count_version_error(2);
137
- return nullptr;
138
- }
139
-
140
133
  try
141
134
  {
135
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Data.Pdf.PdfDocument", L"LoadFromStreamAsync", 2))
136
+ {
137
+ py::set_arg_count_version_error(2);
138
+ return nullptr;
139
+ }
140
+
142
141
  auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IRandomAccessStream>(args, 0);
143
142
  auto param1 = py::convert_to<winrt::hstring>(args, 1);
144
143
 
@@ -159,14 +158,14 @@ namespace py::cpp::Windows::Data::Pdf
159
158
 
160
159
  static PyObject* PdfDocument_get_IsPasswordProtected(py::wrapper::Windows::Data::Pdf::PdfDocument* self, void* /*unused*/) noexcept
161
160
  {
162
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfDocument", L"IsPasswordProtected"))
163
- {
164
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
165
- return nullptr;
166
- }
167
-
168
161
  try
169
162
  {
163
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfDocument", L"IsPasswordProtected"))
164
+ {
165
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
166
+ return nullptr;
167
+ }
168
+
170
169
  return py::convert(self->obj.IsPasswordProtected());
171
170
  }
172
171
  catch (...)
@@ -178,14 +177,14 @@ namespace py::cpp::Windows::Data::Pdf
178
177
 
179
178
  static PyObject* PdfDocument_get_PageCount(py::wrapper::Windows::Data::Pdf::PdfDocument* self, void* /*unused*/) noexcept
180
179
  {
181
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfDocument", L"PageCount"))
182
- {
183
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
184
- return nullptr;
185
- }
186
-
187
180
  try
188
181
  {
182
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfDocument", L"PageCount"))
183
+ {
184
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
185
+ return nullptr;
186
+ }
187
+
189
188
  return py::convert(self->obj.PageCount());
190
189
  }
191
190
  catch (...)
@@ -232,23 +231,20 @@ namespace py::cpp::Windows::Data::Pdf
232
231
  { }
233
232
  };
234
233
 
235
- static PyType_Slot _type_slots_PdfDocument[] =
236
- {
234
+ static PyType_Slot _type_slots_PdfDocument[] = {
237
235
  { Py_tp_new, reinterpret_cast<void*>(_new_PdfDocument) },
238
236
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PdfDocument) },
239
237
  { Py_tp_methods, reinterpret_cast<void*>(_methods_PdfDocument) },
240
238
  { Py_tp_getset, reinterpret_cast<void*>(_getset_PdfDocument) },
241
- { },
239
+ { }
242
240
  };
243
241
 
244
- static PyType_Spec type_spec_PdfDocument =
245
- {
242
+ static PyType_Spec type_spec_PdfDocument = {
246
243
  "winrt._winrt_windows_data_pdf.PdfDocument",
247
244
  sizeof(py::wrapper::Windows::Data::Pdf::PdfDocument),
248
245
  0,
249
246
  Py_TPFLAGS_DEFAULT,
250
- _type_slots_PdfDocument
251
- };
247
+ _type_slots_PdfDocument};
252
248
 
253
249
  static PyGetSetDef getset_PdfDocument_Static[] = {
254
250
  { }
@@ -300,14 +296,14 @@ namespace py::cpp::Windows::Data::Pdf
300
296
 
301
297
  if (arg_count == 0)
302
298
  {
303
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Data.Pdf.PdfPage", L"Close", 0))
304
- {
305
- py::set_arg_count_version_error(0);
306
- return nullptr;
307
- }
308
-
309
299
  try
310
300
  {
301
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Data.Pdf.PdfPage", L"Close", 0))
302
+ {
303
+ py::set_arg_count_version_error(0);
304
+ return nullptr;
305
+ }
306
+
311
307
  self->obj.Close();
312
308
  Py_RETURN_NONE;
313
309
  }
@@ -330,14 +326,14 @@ namespace py::cpp::Windows::Data::Pdf
330
326
 
331
327
  if (arg_count == 0)
332
328
  {
333
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Data.Pdf.PdfPage", L"PreparePageAsync", 0))
334
- {
335
- py::set_arg_count_version_error(0);
336
- return nullptr;
337
- }
338
-
339
329
  try
340
330
  {
331
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Data.Pdf.PdfPage", L"PreparePageAsync", 0))
332
+ {
333
+ py::set_arg_count_version_error(0);
334
+ return nullptr;
335
+ }
336
+
341
337
  return py::convert(self->obj.PreparePageAsync());
342
338
  }
343
339
  catch (...)
@@ -359,14 +355,14 @@ namespace py::cpp::Windows::Data::Pdf
359
355
 
360
356
  if (arg_count == 1)
361
357
  {
362
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Data.Pdf.PdfPage", L"RenderToStreamAsync", 1))
363
- {
364
- py::set_arg_count_version_error(1);
365
- return nullptr;
366
- }
367
-
368
358
  try
369
359
  {
360
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Data.Pdf.PdfPage", L"RenderToStreamAsync", 1))
361
+ {
362
+ py::set_arg_count_version_error(1);
363
+ return nullptr;
364
+ }
365
+
370
366
  auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IRandomAccessStream>(args, 0);
371
367
 
372
368
  return py::convert(self->obj.RenderToStreamAsync(param0));
@@ -379,14 +375,14 @@ namespace py::cpp::Windows::Data::Pdf
379
375
  }
380
376
  else if (arg_count == 2)
381
377
  {
382
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Data.Pdf.PdfPage", L"RenderToStreamAsync", 2))
383
- {
384
- py::set_arg_count_version_error(2);
385
- return nullptr;
386
- }
387
-
388
378
  try
389
379
  {
380
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Data.Pdf.PdfPage", L"RenderToStreamAsync", 2))
381
+ {
382
+ py::set_arg_count_version_error(2);
383
+ return nullptr;
384
+ }
385
+
390
386
  auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IRandomAccessStream>(args, 0);
391
387
  auto param1 = py::convert_to<winrt::Windows::Data::Pdf::PdfPageRenderOptions>(args, 1);
392
388
 
@@ -407,14 +403,14 @@ namespace py::cpp::Windows::Data::Pdf
407
403
 
408
404
  static PyObject* PdfPage_get_Dimensions(py::wrapper::Windows::Data::Pdf::PdfPage* self, void* /*unused*/) noexcept
409
405
  {
410
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPage", L"Dimensions"))
411
- {
412
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
413
- return nullptr;
414
- }
415
-
416
406
  try
417
407
  {
408
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPage", L"Dimensions"))
409
+ {
410
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
411
+ return nullptr;
412
+ }
413
+
418
414
  return py::convert(self->obj.Dimensions());
419
415
  }
420
416
  catch (...)
@@ -426,14 +422,14 @@ namespace py::cpp::Windows::Data::Pdf
426
422
 
427
423
  static PyObject* PdfPage_get_Index(py::wrapper::Windows::Data::Pdf::PdfPage* self, void* /*unused*/) noexcept
428
424
  {
429
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPage", L"Index"))
430
- {
431
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
432
- return nullptr;
433
- }
434
-
435
425
  try
436
426
  {
427
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPage", L"Index"))
428
+ {
429
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
430
+ return nullptr;
431
+ }
432
+
437
433
  return py::convert(self->obj.Index());
438
434
  }
439
435
  catch (...)
@@ -445,14 +441,14 @@ namespace py::cpp::Windows::Data::Pdf
445
441
 
446
442
  static PyObject* PdfPage_get_PreferredZoom(py::wrapper::Windows::Data::Pdf::PdfPage* self, void* /*unused*/) noexcept
447
443
  {
448
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPage", L"PreferredZoom"))
449
- {
450
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
451
- return nullptr;
452
- }
453
-
454
444
  try
455
445
  {
446
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPage", L"PreferredZoom"))
447
+ {
448
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
449
+ return nullptr;
450
+ }
451
+
456
452
  return py::convert(self->obj.PreferredZoom());
457
453
  }
458
454
  catch (...)
@@ -464,14 +460,14 @@ namespace py::cpp::Windows::Data::Pdf
464
460
 
465
461
  static PyObject* PdfPage_get_Rotation(py::wrapper::Windows::Data::Pdf::PdfPage* self, void* /*unused*/) noexcept
466
462
  {
467
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPage", L"Rotation"))
468
- {
469
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
470
- return nullptr;
471
- }
472
-
473
463
  try
474
464
  {
465
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPage", L"Rotation"))
466
+ {
467
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
468
+ return nullptr;
469
+ }
470
+
475
471
  return py::convert(self->obj.Rotation());
476
472
  }
477
473
  catch (...)
@@ -483,14 +479,14 @@ namespace py::cpp::Windows::Data::Pdf
483
479
 
484
480
  static PyObject* PdfPage_get_Size(py::wrapper::Windows::Data::Pdf::PdfPage* self, void* /*unused*/) noexcept
485
481
  {
486
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPage", L"Size"))
487
- {
488
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
489
- return nullptr;
490
- }
491
-
492
482
  try
493
483
  {
484
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPage", L"Size"))
485
+ {
486
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
487
+ return nullptr;
488
+ }
489
+
494
490
  return py::convert(self->obj.Size());
495
491
  }
496
492
  catch (...)
@@ -550,7 +546,7 @@ namespace py::cpp::Windows::Data::Pdf
550
546
  { "_assign_array_", _assign_array_PdfPage, METH_O | METH_STATIC, nullptr },
551
547
  { "_from", reinterpret_cast<PyCFunction>(_from_PdfPage), METH_O | METH_STATIC, nullptr },
552
548
  { "__enter__", reinterpret_cast<PyCFunction>(_enter_PdfPage), METH_NOARGS, nullptr },
553
- { "__exit__", reinterpret_cast<PyCFunction>(_exit_PdfPage), METH_VARARGS, nullptr },
549
+ { "__exit__", reinterpret_cast<PyCFunction>(_exit_PdfPage), METH_VARARGS, nullptr },
554
550
  { }
555
551
  };
556
552
 
@@ -563,23 +559,20 @@ namespace py::cpp::Windows::Data::Pdf
563
559
  { }
564
560
  };
565
561
 
566
- static PyType_Slot _type_slots_PdfPage[] =
567
- {
562
+ static PyType_Slot _type_slots_PdfPage[] = {
568
563
  { Py_tp_new, reinterpret_cast<void*>(_new_PdfPage) },
569
564
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PdfPage) },
570
565
  { Py_tp_methods, reinterpret_cast<void*>(_methods_PdfPage) },
571
566
  { Py_tp_getset, reinterpret_cast<void*>(_getset_PdfPage) },
572
- { },
567
+ { }
573
568
  };
574
569
 
575
- static PyType_Spec type_spec_PdfPage =
576
- {
570
+ static PyType_Spec type_spec_PdfPage = {
577
571
  "winrt._winrt_windows_data_pdf.PdfPage",
578
572
  sizeof(py::wrapper::Windows::Data::Pdf::PdfPage),
579
573
  0,
580
574
  Py_TPFLAGS_DEFAULT,
581
- _type_slots_PdfPage
582
- };
575
+ _type_slots_PdfPage};
583
576
 
584
577
  // ----- PdfPageDimensions class --------------------
585
578
 
@@ -600,14 +593,14 @@ namespace py::cpp::Windows::Data::Pdf
600
593
 
601
594
  static PyObject* PdfPageDimensions_get_ArtBox(py::wrapper::Windows::Data::Pdf::PdfPageDimensions* self, void* /*unused*/) noexcept
602
595
  {
603
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageDimensions", L"ArtBox"))
604
- {
605
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
606
- return nullptr;
607
- }
608
-
609
596
  try
610
597
  {
598
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageDimensions", L"ArtBox"))
599
+ {
600
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
601
+ return nullptr;
602
+ }
603
+
611
604
  return py::convert(self->obj.ArtBox());
612
605
  }
613
606
  catch (...)
@@ -619,14 +612,14 @@ namespace py::cpp::Windows::Data::Pdf
619
612
 
620
613
  static PyObject* PdfPageDimensions_get_BleedBox(py::wrapper::Windows::Data::Pdf::PdfPageDimensions* self, void* /*unused*/) noexcept
621
614
  {
622
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageDimensions", L"BleedBox"))
623
- {
624
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
625
- return nullptr;
626
- }
627
-
628
615
  try
629
616
  {
617
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageDimensions", L"BleedBox"))
618
+ {
619
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
620
+ return nullptr;
621
+ }
622
+
630
623
  return py::convert(self->obj.BleedBox());
631
624
  }
632
625
  catch (...)
@@ -638,14 +631,14 @@ namespace py::cpp::Windows::Data::Pdf
638
631
 
639
632
  static PyObject* PdfPageDimensions_get_CropBox(py::wrapper::Windows::Data::Pdf::PdfPageDimensions* self, void* /*unused*/) noexcept
640
633
  {
641
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageDimensions", L"CropBox"))
642
- {
643
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
644
- return nullptr;
645
- }
646
-
647
634
  try
648
635
  {
636
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageDimensions", L"CropBox"))
637
+ {
638
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
639
+ return nullptr;
640
+ }
641
+
649
642
  return py::convert(self->obj.CropBox());
650
643
  }
651
644
  catch (...)
@@ -657,14 +650,14 @@ namespace py::cpp::Windows::Data::Pdf
657
650
 
658
651
  static PyObject* PdfPageDimensions_get_MediaBox(py::wrapper::Windows::Data::Pdf::PdfPageDimensions* self, void* /*unused*/) noexcept
659
652
  {
660
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageDimensions", L"MediaBox"))
661
- {
662
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
663
- return nullptr;
664
- }
665
-
666
653
  try
667
654
  {
655
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageDimensions", L"MediaBox"))
656
+ {
657
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
658
+ return nullptr;
659
+ }
660
+
668
661
  return py::convert(self->obj.MediaBox());
669
662
  }
670
663
  catch (...)
@@ -676,14 +669,14 @@ namespace py::cpp::Windows::Data::Pdf
676
669
 
677
670
  static PyObject* PdfPageDimensions_get_TrimBox(py::wrapper::Windows::Data::Pdf::PdfPageDimensions* self, void* /*unused*/) noexcept
678
671
  {
679
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageDimensions", L"TrimBox"))
680
- {
681
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
682
- return nullptr;
683
- }
684
-
685
672
  try
686
673
  {
674
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageDimensions", L"TrimBox"))
675
+ {
676
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
677
+ return nullptr;
678
+ }
679
+
687
680
  return py::convert(self->obj.TrimBox());
688
681
  }
689
682
  catch (...)
@@ -732,23 +725,20 @@ namespace py::cpp::Windows::Data::Pdf
732
725
  { }
733
726
  };
734
727
 
735
- static PyType_Slot _type_slots_PdfPageDimensions[] =
736
- {
728
+ static PyType_Slot _type_slots_PdfPageDimensions[] = {
737
729
  { Py_tp_new, reinterpret_cast<void*>(_new_PdfPageDimensions) },
738
730
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PdfPageDimensions) },
739
731
  { Py_tp_methods, reinterpret_cast<void*>(_methods_PdfPageDimensions) },
740
732
  { Py_tp_getset, reinterpret_cast<void*>(_getset_PdfPageDimensions) },
741
- { },
733
+ { }
742
734
  };
743
735
 
744
- static PyType_Spec type_spec_PdfPageDimensions =
745
- {
736
+ static PyType_Spec type_spec_PdfPageDimensions = {
746
737
  "winrt._winrt_windows_data_pdf.PdfPageDimensions",
747
738
  sizeof(py::wrapper::Windows::Data::Pdf::PdfPageDimensions),
748
739
  0,
749
740
  Py_TPFLAGS_DEFAULT,
750
- _type_slots_PdfPageDimensions
751
- };
741
+ _type_slots_PdfPageDimensions};
752
742
 
753
743
  // ----- PdfPageRenderOptions class --------------------
754
744
 
@@ -791,14 +781,14 @@ namespace py::cpp::Windows::Data::Pdf
791
781
 
792
782
  static PyObject* PdfPageRenderOptions_get_SourceRect(py::wrapper::Windows::Data::Pdf::PdfPageRenderOptions* self, void* /*unused*/) noexcept
793
783
  {
794
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageRenderOptions", L"SourceRect"))
795
- {
796
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
797
- return nullptr;
798
- }
799
-
800
784
  try
801
785
  {
786
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageRenderOptions", L"SourceRect"))
787
+ {
788
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
789
+ return nullptr;
790
+ }
791
+
802
792
  return py::convert(self->obj.SourceRect());
803
793
  }
804
794
  catch (...)
@@ -810,12 +800,6 @@ namespace py::cpp::Windows::Data::Pdf
810
800
 
811
801
  static int PdfPageRenderOptions_put_SourceRect(py::wrapper::Windows::Data::Pdf::PdfPageRenderOptions* self, PyObject* arg, void* /*unused*/) noexcept
812
802
  {
813
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageRenderOptions", L"SourceRect"))
814
- {
815
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
816
- return -1;
817
- }
818
-
819
803
  if (arg == nullptr)
820
804
  {
821
805
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
@@ -824,6 +808,12 @@ namespace py::cpp::Windows::Data::Pdf
824
808
 
825
809
  try
826
810
  {
811
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageRenderOptions", L"SourceRect"))
812
+ {
813
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
814
+ return -1;
815
+ }
816
+
827
817
  auto param0 = py::convert_to<winrt::Windows::Foundation::Rect>(arg);
828
818
 
829
819
  self->obj.SourceRect(param0);
@@ -838,14 +828,14 @@ namespace py::cpp::Windows::Data::Pdf
838
828
 
839
829
  static PyObject* PdfPageRenderOptions_get_IsIgnoringHighContrast(py::wrapper::Windows::Data::Pdf::PdfPageRenderOptions* self, void* /*unused*/) noexcept
840
830
  {
841
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageRenderOptions", L"IsIgnoringHighContrast"))
842
- {
843
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
844
- return nullptr;
845
- }
846
-
847
831
  try
848
832
  {
833
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageRenderOptions", L"IsIgnoringHighContrast"))
834
+ {
835
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
836
+ return nullptr;
837
+ }
838
+
849
839
  return py::convert(self->obj.IsIgnoringHighContrast());
850
840
  }
851
841
  catch (...)
@@ -857,12 +847,6 @@ namespace py::cpp::Windows::Data::Pdf
857
847
 
858
848
  static int PdfPageRenderOptions_put_IsIgnoringHighContrast(py::wrapper::Windows::Data::Pdf::PdfPageRenderOptions* self, PyObject* arg, void* /*unused*/) noexcept
859
849
  {
860
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageRenderOptions", L"IsIgnoringHighContrast"))
861
- {
862
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
863
- return -1;
864
- }
865
-
866
850
  if (arg == nullptr)
867
851
  {
868
852
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
@@ -871,6 +855,12 @@ namespace py::cpp::Windows::Data::Pdf
871
855
 
872
856
  try
873
857
  {
858
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageRenderOptions", L"IsIgnoringHighContrast"))
859
+ {
860
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
861
+ return -1;
862
+ }
863
+
874
864
  auto param0 = py::convert_to<bool>(arg);
875
865
 
876
866
  self->obj.IsIgnoringHighContrast(param0);
@@ -885,14 +875,14 @@ namespace py::cpp::Windows::Data::Pdf
885
875
 
886
876
  static PyObject* PdfPageRenderOptions_get_DestinationWidth(py::wrapper::Windows::Data::Pdf::PdfPageRenderOptions* self, void* /*unused*/) noexcept
887
877
  {
888
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageRenderOptions", L"DestinationWidth"))
889
- {
890
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
891
- return nullptr;
892
- }
893
-
894
878
  try
895
879
  {
880
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageRenderOptions", L"DestinationWidth"))
881
+ {
882
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
883
+ return nullptr;
884
+ }
885
+
896
886
  return py::convert(self->obj.DestinationWidth());
897
887
  }
898
888
  catch (...)
@@ -904,12 +894,6 @@ namespace py::cpp::Windows::Data::Pdf
904
894
 
905
895
  static int PdfPageRenderOptions_put_DestinationWidth(py::wrapper::Windows::Data::Pdf::PdfPageRenderOptions* self, PyObject* arg, void* /*unused*/) noexcept
906
896
  {
907
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageRenderOptions", L"DestinationWidth"))
908
- {
909
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
910
- return -1;
911
- }
912
-
913
897
  if (arg == nullptr)
914
898
  {
915
899
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
@@ -918,6 +902,12 @@ namespace py::cpp::Windows::Data::Pdf
918
902
 
919
903
  try
920
904
  {
905
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageRenderOptions", L"DestinationWidth"))
906
+ {
907
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
908
+ return -1;
909
+ }
910
+
921
911
  auto param0 = py::convert_to<uint32_t>(arg);
922
912
 
923
913
  self->obj.DestinationWidth(param0);
@@ -932,14 +922,14 @@ namespace py::cpp::Windows::Data::Pdf
932
922
 
933
923
  static PyObject* PdfPageRenderOptions_get_DestinationHeight(py::wrapper::Windows::Data::Pdf::PdfPageRenderOptions* self, void* /*unused*/) noexcept
934
924
  {
935
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageRenderOptions", L"DestinationHeight"))
936
- {
937
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
938
- return nullptr;
939
- }
940
-
941
925
  try
942
926
  {
927
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageRenderOptions", L"DestinationHeight"))
928
+ {
929
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
930
+ return nullptr;
931
+ }
932
+
943
933
  return py::convert(self->obj.DestinationHeight());
944
934
  }
945
935
  catch (...)
@@ -951,12 +941,6 @@ namespace py::cpp::Windows::Data::Pdf
951
941
 
952
942
  static int PdfPageRenderOptions_put_DestinationHeight(py::wrapper::Windows::Data::Pdf::PdfPageRenderOptions* self, PyObject* arg, void* /*unused*/) noexcept
953
943
  {
954
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageRenderOptions", L"DestinationHeight"))
955
- {
956
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
957
- return -1;
958
- }
959
-
960
944
  if (arg == nullptr)
961
945
  {
962
946
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
@@ -965,6 +949,12 @@ namespace py::cpp::Windows::Data::Pdf
965
949
 
966
950
  try
967
951
  {
952
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageRenderOptions", L"DestinationHeight"))
953
+ {
954
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
955
+ return -1;
956
+ }
957
+
968
958
  auto param0 = py::convert_to<uint32_t>(arg);
969
959
 
970
960
  self->obj.DestinationHeight(param0);
@@ -979,14 +969,14 @@ namespace py::cpp::Windows::Data::Pdf
979
969
 
980
970
  static PyObject* PdfPageRenderOptions_get_BitmapEncoderId(py::wrapper::Windows::Data::Pdf::PdfPageRenderOptions* self, void* /*unused*/) noexcept
981
971
  {
982
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageRenderOptions", L"BitmapEncoderId"))
983
- {
984
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
985
- return nullptr;
986
- }
987
-
988
972
  try
989
973
  {
974
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageRenderOptions", L"BitmapEncoderId"))
975
+ {
976
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
977
+ return nullptr;
978
+ }
979
+
990
980
  return py::convert(self->obj.BitmapEncoderId());
991
981
  }
992
982
  catch (...)
@@ -998,12 +988,6 @@ namespace py::cpp::Windows::Data::Pdf
998
988
 
999
989
  static int PdfPageRenderOptions_put_BitmapEncoderId(py::wrapper::Windows::Data::Pdf::PdfPageRenderOptions* self, PyObject* arg, void* /*unused*/) noexcept
1000
990
  {
1001
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageRenderOptions", L"BitmapEncoderId"))
1002
- {
1003
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1004
- return -1;
1005
- }
1006
-
1007
991
  if (arg == nullptr)
1008
992
  {
1009
993
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
@@ -1012,6 +996,12 @@ namespace py::cpp::Windows::Data::Pdf
1012
996
 
1013
997
  try
1014
998
  {
999
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageRenderOptions", L"BitmapEncoderId"))
1000
+ {
1001
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1002
+ return -1;
1003
+ }
1004
+
1015
1005
  auto param0 = py::convert_to<winrt::guid>(arg);
1016
1006
 
1017
1007
  self->obj.BitmapEncoderId(param0);
@@ -1026,14 +1016,14 @@ namespace py::cpp::Windows::Data::Pdf
1026
1016
 
1027
1017
  static PyObject* PdfPageRenderOptions_get_BackgroundColor(py::wrapper::Windows::Data::Pdf::PdfPageRenderOptions* self, void* /*unused*/) noexcept
1028
1018
  {
1029
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageRenderOptions", L"BackgroundColor"))
1030
- {
1031
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1032
- return nullptr;
1033
- }
1034
-
1035
1019
  try
1036
1020
  {
1021
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageRenderOptions", L"BackgroundColor"))
1022
+ {
1023
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1024
+ return nullptr;
1025
+ }
1026
+
1037
1027
  return py::convert(self->obj.BackgroundColor());
1038
1028
  }
1039
1029
  catch (...)
@@ -1045,12 +1035,6 @@ namespace py::cpp::Windows::Data::Pdf
1045
1035
 
1046
1036
  static int PdfPageRenderOptions_put_BackgroundColor(py::wrapper::Windows::Data::Pdf::PdfPageRenderOptions* self, PyObject* arg, void* /*unused*/) noexcept
1047
1037
  {
1048
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageRenderOptions", L"BackgroundColor"))
1049
- {
1050
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1051
- return -1;
1052
- }
1053
-
1054
1038
  if (arg == nullptr)
1055
1039
  {
1056
1040
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
@@ -1059,6 +1043,12 @@ namespace py::cpp::Windows::Data::Pdf
1059
1043
 
1060
1044
  try
1061
1045
  {
1046
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Data.Pdf.PdfPageRenderOptions", L"BackgroundColor"))
1047
+ {
1048
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1049
+ return -1;
1050
+ }
1051
+
1062
1052
  auto param0 = py::convert_to<winrt::Windows::UI::Color>(arg);
1063
1053
 
1064
1054
  self->obj.BackgroundColor(param0);
@@ -1111,39 +1101,35 @@ namespace py::cpp::Windows::Data::Pdf
1111
1101
  { }
1112
1102
  };
1113
1103
 
1114
- static PyType_Slot _type_slots_PdfPageRenderOptions[] =
1115
- {
1104
+ static PyType_Slot _type_slots_PdfPageRenderOptions[] = {
1116
1105
  { Py_tp_new, reinterpret_cast<void*>(_new_PdfPageRenderOptions) },
1117
1106
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PdfPageRenderOptions) },
1118
1107
  { Py_tp_methods, reinterpret_cast<void*>(_methods_PdfPageRenderOptions) },
1119
1108
  { Py_tp_getset, reinterpret_cast<void*>(_getset_PdfPageRenderOptions) },
1120
- { },
1109
+ { }
1121
1110
  };
1122
1111
 
1123
- static PyType_Spec type_spec_PdfPageRenderOptions =
1124
- {
1112
+ static PyType_Spec type_spec_PdfPageRenderOptions = {
1125
1113
  "winrt._winrt_windows_data_pdf.PdfPageRenderOptions",
1126
1114
  sizeof(py::wrapper::Windows::Data::Pdf::PdfPageRenderOptions),
1127
1115
  0,
1128
1116
  Py_TPFLAGS_DEFAULT,
1129
- _type_slots_PdfPageRenderOptions
1130
- };
1117
+ _type_slots_PdfPageRenderOptions};
1131
1118
 
1132
1119
  // ----- Windows.Data.Pdf Initialization --------------------
1133
- PyDoc_STRVAR(module_doc, "Windows::Data::Pdf");
1134
-
1135
1120
 
1136
- static PyModuleDef module_def
1137
- = {PyModuleDef_HEAD_INIT,
1138
- "_winrt_windows_data_pdf",
1139
- module_doc,
1140
- 0,
1141
- nullptr,
1142
- nullptr,
1143
- nullptr,
1144
- nullptr,
1145
- nullptr};
1121
+ PyDoc_STRVAR(module_doc, "Windows.Data.Pdf");
1146
1122
 
1123
+ static PyModuleDef module_def = {
1124
+ PyModuleDef_HEAD_INIT,
1125
+ "_winrt_windows_data_pdf",
1126
+ module_doc,
1127
+ 0,
1128
+ nullptr,
1129
+ nullptr,
1130
+ nullptr,
1131
+ nullptr,
1132
+ nullptr};
1147
1133
  } // py::cpp::Windows::Data::Pdf
1148
1134
 
1149
1135
  PyMODINIT_FUNC PyInit__winrt_windows_data_pdf(void) noexcept
@@ -0,0 +1 @@
1
+ 2.1.0
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
- winrt-runtime==2.0.1
3
+ winrt-runtime==2.1.0
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
3
  import datetime
4
4
  import sys
@@ -9,10 +9,10 @@ from builtins import property as _property
9
9
 
10
10
  import winrt._winrt
11
11
  import winrt.system
12
- import winrt.windows.foundation
13
- import winrt.windows.storage
14
- import winrt.windows.storage.streams
15
- import winrt.windows.ui
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
16
 
17
17
  from winrt.windows.data.pdf import PdfPageRotation
18
18
 
@@ -21,13 +21,13 @@ Self = typing.TypeVar('Self')
21
21
  @typing.final
22
22
  class PdfDocument_Static(type):
23
23
  @typing.overload
24
- def load_from_file_async(cls, file: typing.Optional[winrt.windows.storage.IStorageFile], /) -> winrt.windows.foundation.IAsyncOperation[PdfDocument]: ...
24
+ def load_from_file_async(cls, file: typing.Optional[windows_storage.IStorageFile], /) -> windows_foundation.IAsyncOperation[PdfDocument]: ...
25
25
  @typing.overload
26
- def load_from_file_async(cls, file: typing.Optional[winrt.windows.storage.IStorageFile], password: str, /) -> winrt.windows.foundation.IAsyncOperation[PdfDocument]: ...
26
+ def load_from_file_async(cls, file: typing.Optional[windows_storage.IStorageFile], password: str, /) -> windows_foundation.IAsyncOperation[PdfDocument]: ...
27
27
  @typing.overload
28
- def load_from_stream_async(cls, input_stream: typing.Optional[winrt.windows.storage.streams.IRandomAccessStream], /) -> winrt.windows.foundation.IAsyncOperation[PdfDocument]: ...
28
+ def load_from_stream_async(cls, input_stream: typing.Optional[windows_storage_streams.IRandomAccessStream], /) -> windows_foundation.IAsyncOperation[PdfDocument]: ...
29
29
  @typing.overload
30
- def load_from_stream_async(cls, input_stream: typing.Optional[winrt.windows.storage.streams.IRandomAccessStream], password: str, /) -> winrt.windows.foundation.IAsyncOperation[PdfDocument]: ...
30
+ def load_from_stream_async(cls, input_stream: typing.Optional[windows_storage_streams.IRandomAccessStream], password: str, /) -> windows_foundation.IAsyncOperation[PdfDocument]: ...
31
31
 
32
32
  @typing.final
33
33
  class PdfDocument(winrt.system.Object, metaclass=PdfDocument_Static):
@@ -46,11 +46,11 @@ class PdfPage(winrt.system.Object):
46
46
  @staticmethod
47
47
  def _from(obj: winrt.system.Object, /) -> PdfPage: ...
48
48
  def close(self) -> None: ...
49
- def prepare_page_async(self) -> winrt.windows.foundation.IAsyncAction: ...
49
+ def prepare_page_async(self) -> windows_foundation.IAsyncAction: ...
50
50
  @typing.overload
51
- def render_to_stream_async(self, output_stream: typing.Optional[winrt.windows.storage.streams.IRandomAccessStream], /) -> winrt.windows.foundation.IAsyncAction: ...
51
+ def render_to_stream_async(self, output_stream: typing.Optional[windows_storage_streams.IRandomAccessStream], /) -> windows_foundation.IAsyncAction: ...
52
52
  @typing.overload
53
- def render_to_stream_async(self, output_stream: typing.Optional[winrt.windows.storage.streams.IRandomAccessStream], options: typing.Optional[PdfPageRenderOptions], /) -> winrt.windows.foundation.IAsyncAction: ...
53
+ def render_to_stream_async(self, output_stream: typing.Optional[windows_storage_streams.IRandomAccessStream], options: typing.Optional[PdfPageRenderOptions], /) -> windows_foundation.IAsyncAction: ...
54
54
  @_property
55
55
  def dimensions(self) -> typing.Optional[PdfPageDimensions]: ...
56
56
  @_property
@@ -60,32 +60,32 @@ class PdfPage(winrt.system.Object):
60
60
  @_property
61
61
  def rotation(self) -> PdfPageRotation: ...
62
62
  @_property
63
- def size(self) -> winrt.windows.foundation.Size: ...
63
+ def size(self) -> windows_foundation.Size: ...
64
64
 
65
65
  @typing.final
66
66
  class PdfPageDimensions(winrt.system.Object):
67
67
  @staticmethod
68
68
  def _from(obj: winrt.system.Object, /) -> PdfPageDimensions: ...
69
69
  @_property
70
- def art_box(self) -> winrt.windows.foundation.Rect: ...
70
+ def art_box(self) -> windows_foundation.Rect: ...
71
71
  @_property
72
- def bleed_box(self) -> winrt.windows.foundation.Rect: ...
72
+ def bleed_box(self) -> windows_foundation.Rect: ...
73
73
  @_property
74
- def crop_box(self) -> winrt.windows.foundation.Rect: ...
74
+ def crop_box(self) -> windows_foundation.Rect: ...
75
75
  @_property
76
- def media_box(self) -> winrt.windows.foundation.Rect: ...
76
+ def media_box(self) -> windows_foundation.Rect: ...
77
77
  @_property
78
- def trim_box(self) -> winrt.windows.foundation.Rect: ...
78
+ def trim_box(self) -> windows_foundation.Rect: ...
79
79
 
80
80
  @typing.final
81
81
  class PdfPageRenderOptions(winrt.system.Object):
82
82
  @staticmethod
83
83
  def _from(obj: winrt.system.Object, /) -> PdfPageRenderOptions: ...
84
- def __new__(cls: typing.Type[PdfPageRenderOptions]) -> PdfPageRenderOptions:...
84
+ def __new__(cls: typing.Type[PdfPageRenderOptions]) -> PdfPageRenderOptions: ...
85
85
  @_property
86
- def source_rect(self) -> winrt.windows.foundation.Rect: ...
86
+ def source_rect(self) -> windows_foundation.Rect: ...
87
87
  @source_rect.setter
88
- def source_rect(self, value: winrt.windows.foundation.Rect) -> None: ...
88
+ def source_rect(self, value: windows_foundation.Rect) -> None: ...
89
89
  @_property
90
90
  def is_ignoring_high_contrast(self) -> bool: ...
91
91
  @is_ignoring_high_contrast.setter
@@ -103,7 +103,7 @@ class PdfPageRenderOptions(winrt.system.Object):
103
103
  @bitmap_encoder_id.setter
104
104
  def bitmap_encoder_id(self, value: _uuid.UUID) -> None: ...
105
105
  @_property
106
- def background_color(self) -> winrt.windows.ui.Color: ...
106
+ def background_color(self) -> windows_ui.Color: ...
107
107
  @background_color.setter
108
- def background_color(self, value: winrt.windows.ui.Color) -> None: ...
108
+ def background_color(self, value: windows_ui.Color) -> None: ...
109
109
 
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
3
  import enum
4
4
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Data.Pdf
3
- Version: 2.0.1
3
+ Version: 2.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -12,12 +12,12 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
13
  Requires-Python: <3.13,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.0.1
15
+ Requires-Dist: winrt-runtime==2.1.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.0.1; extra == "all"
18
- Requires-Dist: winrt-Windows.Storage[all]==2.0.1; extra == "all"
19
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.0.1; extra == "all"
20
- Requires-Dist: winrt-Windows.UI[all]==2.0.1; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Storage[all]==2.1.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==2.1.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.UI[all]==2.1.0; extra == "all"
21
21
 
22
22
  <!-- warning: Please don't edit this file. It was automatically generated. -->
23
23
 
@@ -0,0 +1,7 @@
1
+ winrt-runtime==2.1.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==2.1.0
5
+ winrt-Windows.Storage[all]==2.1.0
6
+ winrt-Windows.Storage.Streams[all]==2.1.0
7
+ winrt-Windows.UI[all]==2.1.0
@@ -1,6 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
2
-
3
- winrt-Windows.Foundation[all]==2.0.1
4
- winrt-Windows.Storage[all]==2.0.1
5
- winrt-Windows.Storage.Streams[all]==2.0.1
6
- winrt-Windows.UI[all]==2.0.1
@@ -1 +0,0 @@
1
- 2.0.1
@@ -1,7 +0,0 @@
1
- winrt-runtime==2.0.1
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.0.1
5
- winrt-Windows.Storage[all]==2.0.1
6
- winrt-Windows.Storage.Streams[all]==2.0.1
7
- winrt-Windows.UI[all]==2.0.1