spire-pdf 11.6.1__py3-none-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of spire-pdf might be problematic. Click here for more details.
- spire/__init__.py +0 -0
- spire/pdf/ArtifactPropertyList.py +13 -0
- spire/pdf/AspectRatio.py +16 -0
- spire/pdf/BookletOptions.py +40 -0
- spire/pdf/Clip.py +16 -0
- spire/pdf/Collections_PdfCollection.py +121 -0
- spire/pdf/CompressionLevel.py +26 -0
- spire/pdf/ConfiguerGraphicType.py +18 -0
- spire/pdf/CustomFieldType.py +20 -0
- spire/pdf/DataFormat.py +16 -0
- spire/pdf/DocxOptions.py +228 -0
- spire/pdf/FileFormat.py +26 -0
- spire/pdf/FileRelatedFieldType.py +24 -0
- spire/pdf/Find_TextFindParameter.py +17 -0
- spire/pdf/GraphicMode.py +17 -0
- spire/pdf/HtmlConverter.py +564 -0
- spire/pdf/HtmlToPdfLayoutParams.py +93 -0
- spire/pdf/HtmlToPdfResult.py +36 -0
- spire/pdf/HttpMethod.py +14 -0
- spire/pdf/HttpReadType.py +15 -0
- spire/pdf/IOCSPService.py +27 -0
- spire/pdf/IPdfComboBoxField.py +388 -0
- spire/pdf/IPdfSignatureAppearance.py +20 -0
- spire/pdf/IPdfSignatureFormatter.py +31 -0
- spire/pdf/IPdfTextBoxField.py +305 -0
- spire/pdf/IStructureNode.py +12 -0
- spire/pdf/ITSAService.py +27 -0
- spire/pdf/ImageFormatType.py +16 -0
- spire/pdf/ImageQuality.py +15 -0
- spire/pdf/ImageType.py +14 -0
- spire/pdf/ImgData.py +208 -0
- spire/pdf/LayerExportState.py +15 -0
- spire/pdf/LayerPrintState.py +20 -0
- spire/pdf/LayerViewState.py +20 -0
- spire/pdf/LineBorder.py +73 -0
- spire/pdf/LineInfo.py +53 -0
- spire/pdf/LineType.py +17 -0
- spire/pdf/LoadHtmlType.py +18 -0
- spire/pdf/MergerOptions.py +39 -0
- spire/pdf/OCSPHttpService.py +32 -0
- spire/pdf/OfdConverter.py +89 -0
- spire/pdf/OptimizationOptions.py +85 -0
- spire/pdf/PDF3DAnimationType.py +15 -0
- spire/pdf/Pdf3DActivation.py +113 -0
- spire/pdf/Pdf3DActivationMode.py +20 -0
- spire/pdf/Pdf3DActivationState.py +14 -0
- spire/pdf/Pdf3DAnimation.py +69 -0
- spire/pdf/Pdf3DAnnotation.py +167 -0
- spire/pdf/Pdf3DBackground.py +84 -0
- spire/pdf/Pdf3DCrossSection.py +144 -0
- spire/pdf/Pdf3DCrossSectionCollection.py +117 -0
- spire/pdf/Pdf3DDeactivationMode.py +15 -0
- spire/pdf/Pdf3DDeactivationState.py +15 -0
- spire/pdf/Pdf3DLighting.py +42 -0
- spire/pdf/Pdf3DLightingStyle.py +24 -0
- spire/pdf/Pdf3DNode.py +98 -0
- spire/pdf/Pdf3DNodeCollection.py +123 -0
- spire/pdf/Pdf3DProjection.py +120 -0
- spire/pdf/Pdf3DProjectionClipStyle.py +15 -0
- spire/pdf/Pdf3DProjectionOrthoScaleMode.py +18 -0
- spire/pdf/Pdf3DProjectionType.py +15 -0
- spire/pdf/Pdf3DRenderStyle.py +44 -0
- spire/pdf/Pdf3DRendermode.py +158 -0
- spire/pdf/Pdf3DView.py +213 -0
- spire/pdf/Pdf3DViewCollection.py +124 -0
- spire/pdf/PdfAction.py +31 -0
- spire/pdf/PdfActionAnnotation.py +28 -0
- spire/pdf/PdfActionCollection.py +110 -0
- spire/pdf/PdfActionDestination.py +22 -0
- spire/pdf/PdfActionLinkAnnotation.py +37 -0
- spire/pdf/PdfAlignmentStyle.py +22 -0
- spire/pdf/PdfAnnotation.py +161 -0
- spire/pdf/PdfAnnotationActions.py +202 -0
- spire/pdf/PdfAnnotationBorder.py +86 -0
- spire/pdf/PdfAnnotationCollection.py +164 -0
- spire/pdf/PdfAnnotationException.py +13 -0
- spire/pdf/PdfAnnotationFlags.py +22 -0
- spire/pdf/PdfAnnotationIntent.py +14 -0
- spire/pdf/PdfAnnotationWidget.py +47 -0
- spire/pdf/PdfAnnotationWidgetCollection.py +68 -0
- spire/pdf/PdfAnnotationWidgetTypes.py +46 -0
- spire/pdf/PdfAppearance.py +113 -0
- spire/pdf/PdfAppearanceField.py +26 -0
- spire/pdf/PdfAppearanceState.py +94 -0
- spire/pdf/PdfApplicationData.py +24 -0
- spire/pdf/PdfAttachment.py +39 -0
- spire/pdf/PdfAttachmentAnnotation.py +93 -0
- spire/pdf/PdfAttachmentAnnotationWidget.py +61 -0
- spire/pdf/PdfAttachmentCollection.py +112 -0
- spire/pdf/PdfAttachmentIcon.py +17 -0
- spire/pdf/PdfAttachmentRelationship.py +24 -0
- spire/pdf/PdfAttributeOwner.py +132 -0
- spire/pdf/PdfAutomaticField.py +154 -0
- spire/pdf/PdfBarcode.py +180 -0
- spire/pdf/PdfBarcodeException.py +13 -0
- spire/pdf/PdfBarcodeQuietZones.py +112 -0
- spire/pdf/PdfBarcodeTextAlignment.py +15 -0
- spire/pdf/PdfBitmap.py +112 -0
- spire/pdf/PdfBlend.py +36 -0
- spire/pdf/PdfBlendBase.py +37 -0
- spire/pdf/PdfBlendMode.py +29 -0
- spire/pdf/PdfBookletBindingMode.py +18 -0
- spire/pdf/PdfBookletCreator.py +67 -0
- spire/pdf/PdfBookmark.py +135 -0
- spire/pdf/PdfBookmarkCollection.py +95 -0
- spire/pdf/PdfBookmarkWidget.py +87 -0
- spire/pdf/PdfBorderEffect.py +15 -0
- spire/pdf/PdfBorderOverlapStyle.py +14 -0
- spire/pdf/PdfBorderStyle.py +17 -0
- spire/pdf/PdfBorders.py +113 -0
- spire/pdf/PdfBrush.py +25 -0
- spire/pdf/PdfBrushes.py +1846 -0
- spire/pdf/PdfButtonField.py +221 -0
- spire/pdf/PdfButtonIconLayout.py +92 -0
- spire/pdf/PdfButtonIconScaleMode.py +14 -0
- spire/pdf/PdfButtonIconScaleReason.py +16 -0
- spire/pdf/PdfButtonLayoutMode.py +28 -0
- spire/pdf/PdfButtonWidgetFieldWidget.py +92 -0
- spire/pdf/PdfButtonWidgetItemCollection.py +23 -0
- spire/pdf/PdfButtonWidgetWidgetItem.py +63 -0
- spire/pdf/PdfCalGrayColor.py +44 -0
- spire/pdf/PdfCalGrayColorSpace.py +96 -0
- spire/pdf/PdfCalRGBColor.py +102 -0
- spire/pdf/PdfCalRGBColorSpace.py +132 -0
- spire/pdf/PdfCanvas.py +1714 -0
- spire/pdf/PdfCaretAnnotationWidget.py +21 -0
- spire/pdf/PdfCellStyle.py +126 -0
- spire/pdf/PdfCertificate.py +19 -0
- spire/pdf/PdfCertificationFlags.py +15 -0
- spire/pdf/PdfCheckBoxField.py +47 -0
- spire/pdf/PdfCheckBoxStyle.py +20 -0
- spire/pdf/PdfCheckBoxWidgetFieldWidget.py +61 -0
- spire/pdf/PdfCheckBoxWidgetWidgetItem.py +16 -0
- spire/pdf/PdfCheckBoxWidgetWidgetItemCollection.py +23 -0
- spire/pdf/PdfCheckFieldBase.py +37 -0
- spire/pdf/PdfChoiceWidgetFieldWidget.py +114 -0
- spire/pdf/PdfCjkFontFamily.py +19 -0
- spire/pdf/PdfCjkStandardFont.py +70 -0
- spire/pdf/PdfCodabarBarcode.py +38 -0
- spire/pdf/PdfCode11Barcode.py +36 -0
- spire/pdf/PdfCode128ABarcode.py +36 -0
- spire/pdf/PdfCode128BBarcode.py +28 -0
- spire/pdf/PdfCode128CBarcode.py +14 -0
- spire/pdf/PdfCode32Barcode.py +37 -0
- spire/pdf/PdfCode39Barcode.py +37 -0
- spire/pdf/PdfCode39ExtendedBarcode.py +25 -0
- spire/pdf/PdfCode93Barcode.py +37 -0
- spire/pdf/PdfCode93ExtendedBarcode.py +36 -0
- spire/pdf/PdfCollection.py +46 -0
- spire/pdf/PdfColorBlend.py +37 -0
- spire/pdf/PdfColorMask.py +50 -0
- spire/pdf/PdfColorSpace.py +17 -0
- spire/pdf/PdfColorSpaces.py +12 -0
- spire/pdf/PdfColumn.py +67 -0
- spire/pdf/PdfColumnCollection.py +34 -0
- spire/pdf/PdfComboBoxField.py +47 -0
- spire/pdf/PdfComboBoxWidgetFieldWidget.py +74 -0
- spire/pdf/PdfComboBoxWidgetItemCollection.py +29 -0
- spire/pdf/PdfComboBoxWidgetWidgetItem.py +16 -0
- spire/pdf/PdfCompareOptions.py +82 -0
- spire/pdf/PdfComparer.py +63 -0
- spire/pdf/PdfComplexColor.py +23 -0
- spire/pdf/PdfCompositeField.py +205 -0
- spire/pdf/PdfCompressionLevel.py +42 -0
- spire/pdf/PdfCompressor.py +79 -0
- spire/pdf/PdfConformanceException.py +13 -0
- spire/pdf/PdfConformanceLevel.py +20 -0
- spire/pdf/PdfConvertOptions.py +222 -0
- spire/pdf/PdfCreationDateField.py +81 -0
- spire/pdf/PdfCrossReferenceType.py +16 -0
- spire/pdf/PdfCustomAppearance.py +28 -0
- spire/pdf/PdfDashStyle.py +19 -0
- spire/pdf/PdfDateTimeField.py +91 -0
- spire/pdf/PdfDestination.py +225 -0
- spire/pdf/PdfDestinationMode.py +17 -0
- spire/pdf/PdfDestinationPageNumberField.py +111 -0
- spire/pdf/PdfDeviceColorSpace.py +31 -0
- spire/pdf/PdfDockStyle.py +18 -0
- spire/pdf/PdfDocument.py +1759 -0
- spire/pdf/PdfDocumentActions.py +162 -0
- spire/pdf/PdfDocumentAuthorField.py +67 -0
- spire/pdf/PdfDocumentBase.py +744 -0
- spire/pdf/PdfDocumentException.py +13 -0
- spire/pdf/PdfDocumentInformation.py +207 -0
- spire/pdf/PdfDocumentLinkAnnotation.py +54 -0
- spire/pdf/PdfDocumentLinkAnnotationWidget.py +40 -0
- spire/pdf/PdfDocumentPageCollection.py +79 -0
- spire/pdf/PdfDocumentPrivilege.py +163 -0
- spire/pdf/PdfDocumentTemplate.py +241 -0
- spire/pdf/PdfDrawWidget.py +28 -0
- spire/pdf/PdfDynamicField.py +13 -0
- spire/pdf/PdfEdges.py +99 -0
- spire/pdf/PdfEmbeddedFileSpecification.py +135 -0
- spire/pdf/PdfEmbeddedGoToAction.py +91 -0
- spire/pdf/PdfEncryptionAlgorithm.py +16 -0
- spire/pdf/PdfEncryptionKeySize.py +20 -0
- spire/pdf/PdfException.py +21 -0
- spire/pdf/PdfExtend.py +17 -0
- spire/pdf/PdfExtendedAppearance.py +48 -0
- spire/pdf/PdfField.py +144 -0
- spire/pdf/PdfFieldActions.py +201 -0
- spire/pdf/PdfFieldCollection.py +111 -0
- spire/pdf/PdfFieldWidget.py +154 -0
- spire/pdf/PdfFieldWidgetImportError.py +23 -0
- spire/pdf/PdfFieldWidgetItem.py +80 -0
- spire/pdf/PdfFileAnnotation.py +49 -0
- spire/pdf/PdfFileInfo.py +85 -0
- spire/pdf/PdfFileLinkAnnotation.py +76 -0
- spire/pdf/PdfFileLinkAnnotationWidget.py +39 -0
- spire/pdf/PdfFilePathType.py +14 -0
- spire/pdf/PdfFileSpecificationBase.py +36 -0
- spire/pdf/PdfFillElement.py +31 -0
- spire/pdf/PdfFillMode.py +18 -0
- spire/pdf/PdfFolder.py +100 -0
- spire/pdf/PdfFont.py +61 -0
- spire/pdf/PdfFontBase.py +298 -0
- spire/pdf/PdfFontFamily.py +24 -0
- spire/pdf/PdfFontStyle.py +17 -0
- spire/pdf/PdfFontType.py +20 -0
- spire/pdf/PdfForm.py +123 -0
- spire/pdf/PdfFormAction.py +54 -0
- spire/pdf/PdfFormFieldCollection.py +12 -0
- spire/pdf/PdfFormFieldWidgetCollection.py +84 -0
- spire/pdf/PdfFormWidget.py +148 -0
- spire/pdf/PdfFreeTextAnnotation.py +291 -0
- spire/pdf/PdfFreeTextAnnotationWidget.py +129 -0
- spire/pdf/PdfGoToAction.py +64 -0
- spire/pdf/PdfGotoNameAction.py +32 -0
- spire/pdf/PdfGradientBrush.py +65 -0
- spire/pdf/PdfGraphicsState.py +12 -0
- spire/pdf/PdfGraphicsUnit.py +19 -0
- spire/pdf/PdfGraphicsWidget.py +55 -0
- spire/pdf/PdfGrayConverter.py +60 -0
- spire/pdf/PdfGrid.py +91 -0
- spire/pdf/PdfGridCell.py +110 -0
- spire/pdf/PdfGridCellCollection.py +71 -0
- spire/pdf/PdfGridCellContent.py +158 -0
- spire/pdf/PdfGridCellContentList.py +23 -0
- spire/pdf/PdfGridCellStyle.py +84 -0
- spire/pdf/PdfGridColumn.py +65 -0
- spire/pdf/PdfGridColumnCollection.py +119 -0
- spire/pdf/PdfGridHeaderCollection.py +73 -0
- spire/pdf/PdfGridLayoutFormat.py +12 -0
- spire/pdf/PdfGridLayoutResult.py +12 -0
- spire/pdf/PdfGridRow.py +89 -0
- spire/pdf/PdfGridRowCollection.py +50 -0
- spire/pdf/PdfGridRowStyle.py +35 -0
- spire/pdf/PdfGridStyle.py +105 -0
- spire/pdf/PdfGridStyleBase.py +125 -0
- spire/pdf/PdfHTMLTextElement.py +142 -0
- spire/pdf/PdfHeaderSource.py +14 -0
- spire/pdf/PdfHighlightMode.py +18 -0
- spire/pdf/PdfHorizontalAlignment.py +16 -0
- spire/pdf/PdfHorizontalOverflowType.py +18 -0
- spire/pdf/PdfHtmlLayoutFormat.py +148 -0
- spire/pdf/PdfICCColor.py +48 -0
- spire/pdf/PdfICCColorSpace.py +80 -0
- spire/pdf/PdfImage.py +170 -0
- spire/pdf/PdfImageHelper.py +81 -0
- spire/pdf/PdfImageMask.py +34 -0
- spire/pdf/PdfImageType.py +14 -0
- spire/pdf/PdfInkAnnotation.py +28 -0
- spire/pdf/PdfInkAnnotationWidget.py +21 -0
- spire/pdf/PdfJavaScript.py +214 -0
- spire/pdf/PdfJavaScriptAction.py +48 -0
- spire/pdf/PdfKnownColor.py +39 -0
- spire/pdf/PdfKnownColorSpace.py +61 -0
- spire/pdf/PdfLabColor.py +102 -0
- spire/pdf/PdfLabColorSpace.py +102 -0
- spire/pdf/PdfLaunchAction.py +69 -0
- spire/pdf/PdfLayer.py +128 -0
- spire/pdf/PdfLayerCollection.py +172 -0
- spire/pdf/PdfLayerOutline.py +62 -0
- spire/pdf/PdfLayoutBreakType.py +14 -0
- spire/pdf/PdfLayoutHTMLResult.py +23 -0
- spire/pdf/PdfLayoutParams.py +60 -0
- spire/pdf/PdfLayoutResult.py +41 -0
- spire/pdf/PdfLayoutType.py +15 -0
- spire/pdf/PdfLayoutWidget.py +165 -0
- spire/pdf/PdfLineAnnotation.py +310 -0
- spire/pdf/PdfLineAnnotationWidget.py +241 -0
- spire/pdf/PdfLineBorderStyle.py +17 -0
- spire/pdf/PdfLineCap.py +15 -0
- spire/pdf/PdfLineCaptionType.py +18 -0
- spire/pdf/PdfLineEndingStyle.py +22 -0
- spire/pdf/PdfLineIntent.py +14 -0
- spire/pdf/PdfLineJoin.py +16 -0
- spire/pdf/PdfLinearGradientBrush.py +146 -0
- spire/pdf/PdfLinearGradientMode.py +16 -0
- spire/pdf/PdfLinkAnnotation.py +31 -0
- spire/pdf/PdfList.py +122 -0
- spire/pdf/PdfListBase.py +143 -0
- spire/pdf/PdfListBoxField.py +50 -0
- spire/pdf/PdfListBoxWidgetFieldWidget.py +52 -0
- spire/pdf/PdfListField.py +79 -0
- spire/pdf/PdfListFieldItem.py +83 -0
- spire/pdf/PdfListFieldItemCollection.py +121 -0
- spire/pdf/PdfListFieldWidgetItem.py +16 -0
- spire/pdf/PdfListItem.py +122 -0
- spire/pdf/PdfListItemCollection.py +166 -0
- spire/pdf/PdfListMarkerAlignment.py +14 -0
- spire/pdf/PdfListWidgetFieldItemCollection.py +23 -0
- spire/pdf/PdfListWidgetItem.py +74 -0
- spire/pdf/PdfListWidgetItemCollection.py +64 -0
- spire/pdf/PdfMDPSignatureMaker.py +54 -0
- spire/pdf/PdfMargins.py +170 -0
- spire/pdf/PdfMarkUpAnnotationWidget.py +111 -0
- spire/pdf/PdfMarker.py +100 -0
- spire/pdf/PdfMarkerBase.py +107 -0
- spire/pdf/PdfMask.py +13 -0
- spire/pdf/PdfMatrix.py +269 -0
- spire/pdf/PdfMatrixOrder.py +18 -0
- spire/pdf/PdfMerger.py +57 -0
- spire/pdf/PdfMetafile.py +83 -0
- spire/pdf/PdfMetafileLayoutFormat.py +48 -0
- spire/pdf/PdfMultipleNumberValueField.py +37 -0
- spire/pdf/PdfMultipleValueField.py +12 -0
- spire/pdf/PdfNamedAction.py +37 -0
- spire/pdf/PdfNewDocument.py +117 -0
- spire/pdf/PdfNewPage.py +34 -0
- spire/pdf/PdfNumberStyle.py +18 -0
- spire/pdf/PdfOrderedMarker.py +112 -0
- spire/pdf/PdfOrdinarySignatureMaker.py +32 -0
- spire/pdf/PdfPKCS1Formatter.py +59 -0
- spire/pdf/PdfPKCS7Formatter.py +55 -0
- spire/pdf/PdfPaddings.py +99 -0
- spire/pdf/PdfPageBase.py +665 -0
- spire/pdf/PdfPageCollection.py +384 -0
- spire/pdf/PdfPageCountField.py +92 -0
- spire/pdf/PdfPageLabels.py +124 -0
- spire/pdf/PdfPageLayout.py +26 -0
- spire/pdf/PdfPageMode.py +18 -0
- spire/pdf/PdfPageNumberField.py +67 -0
- spire/pdf/PdfPageOrientation.py +15 -0
- spire/pdf/PdfPageRotateAngle.py +16 -0
- spire/pdf/PdfPageSettings.py +275 -0
- spire/pdf/PdfPageSize.py +389 -0
- spire/pdf/PdfPageTemplateElement.py +271 -0
- spire/pdf/PdfPageTransition.py +172 -0
- spire/pdf/PdfPageWidget.py +45 -0
- spire/pdf/PdfPageWidgetEnumerator.py +54 -0
- spire/pdf/PdfPasswordSecurityPolicy.py +22 -0
- spire/pdf/PdfPath.py +420 -0
- spire/pdf/PdfPen.py +236 -0
- spire/pdf/PdfPens.py +1845 -0
- spire/pdf/PdfPermissionsFlags.py +23 -0
- spire/pdf/PdfPieceInfo.py +42 -0
- spire/pdf/PdfPolyLineAnnotation.py +76 -0
- spire/pdf/PdfPolyLineAnnotationWidget.py +21 -0
- spire/pdf/PdfPolygonAndPolyLineAnnotationWidget.py +21 -0
- spire/pdf/PdfPolygonAnnotation.py +129 -0
- spire/pdf/PdfPolygonAnnotationWidget.py +21 -0
- spire/pdf/PdfPopupAnnotation.py +118 -0
- spire/pdf/PdfPopupAnnotationWidget.py +58 -0
- spire/pdf/PdfPopupIcon.py +19 -0
- spire/pdf/PdfRGBColor.py +351 -0
- spire/pdf/PdfRadialGradientBrush.py +136 -0
- spire/pdf/PdfRadioButtonItemCollection.py +124 -0
- spire/pdf/PdfRadioButtonListField.py +102 -0
- spire/pdf/PdfRadioButtonListFieldWidget.py +114 -0
- spire/pdf/PdfRadioButtonListItem.py +91 -0
- spire/pdf/PdfRadioButtonWidgetItem.py +60 -0
- spire/pdf/PdfRadioButtonWidgetWidgetItemCollection.py +29 -0
- spire/pdf/PdfResetAction.py +40 -0
- spire/pdf/PdfRow.py +36 -0
- spire/pdf/PdfRowCollection.py +50 -0
- spire/pdf/PdfRubberStampAnnotation.py +163 -0
- spire/pdf/PdfRubberStampAnnotationIcon.py +27 -0
- spire/pdf/PdfRubberStampAnnotationWidget.py +40 -0
- spire/pdf/PdfSection.py +91 -0
- spire/pdf/PdfSectionCollection.py +96 -0
- spire/pdf/PdfSectionNumberField.py +67 -0
- spire/pdf/PdfSectionPageCollection.py +112 -0
- spire/pdf/PdfSectionPageCountField.py +64 -0
- spire/pdf/PdfSectionPageNumberField.py +64 -0
- spire/pdf/PdfSectionTemplate.py +102 -0
- spire/pdf/PdfSecurity.py +158 -0
- spire/pdf/PdfSecurityPolicy.py +59 -0
- spire/pdf/PdfSeparationColor.py +36 -0
- spire/pdf/PdfSeparationColorSpace.py +69 -0
- spire/pdf/PdfShapeWidget.py +25 -0
- spire/pdf/PdfSignature.py +97 -0
- spire/pdf/PdfSignatureAppearance.py +153 -0
- spire/pdf/PdfSignatureAppearanceField.py +26 -0
- spire/pdf/PdfSignatureField.py +79 -0
- spire/pdf/PdfSignatureFieldWidget.py +41 -0
- spire/pdf/PdfSignatureMaker.py +165 -0
- spire/pdf/PdfSignatureProperties.py +61 -0
- spire/pdf/PdfSignatureStyledField.py +192 -0
- spire/pdf/PdfSinglePageScalingMode.py +22 -0
- spire/pdf/PdfSingleValueField.py +13 -0
- spire/pdf/PdfSolidBrush.py +78 -0
- spire/pdf/PdfSortedList.py +146 -0
- spire/pdf/PdfSound.py +104 -0
- spire/pdf/PdfSoundAction.py +176 -0
- spire/pdf/PdfSoundAnnotation.py +86 -0
- spire/pdf/PdfSoundAnnotationWidget.py +69 -0
- spire/pdf/PdfSoundChannels.py +18 -0
- spire/pdf/PdfSoundEncoding.py +22 -0
- spire/pdf/PdfSoundIcon.py +15 -0
- spire/pdf/PdfSquareAnnotationWidget.py +45 -0
- spire/pdf/PdfStampCollection.py +115 -0
- spire/pdf/PdfStandardStructTypes.py +630 -0
- spire/pdf/PdfStandardsConverter.py +217 -0
- spire/pdf/PdfStateFieldWidget.py +32 -0
- spire/pdf/PdfStateItemCollection.py +29 -0
- spire/pdf/PdfStateWidgetItem.py +30 -0
- spire/pdf/PdfStateWidgetItemCollection.py +23 -0
- spire/pdf/PdfStaticField.py +13 -0
- spire/pdf/PdfStringFormat.py +284 -0
- spire/pdf/PdfStringLayoutResult.py +54 -0
- spire/pdf/PdfStringLayouter.py +44 -0
- spire/pdf/PdfStructContentItem.py +13 -0
- spire/pdf/PdfStructureAttributes.py +83 -0
- spire/pdf/PdfStructureElement.py +135 -0
- spire/pdf/PdfStructureTreeRoot.py +51 -0
- spire/pdf/PdfStyledAnnotationWidget.py +153 -0
- spire/pdf/PdfStyledField.py +233 -0
- spire/pdf/PdfStyledFieldWidget.py +329 -0
- spire/pdf/PdfSubSuperScript.py +15 -0
- spire/pdf/PdfSubmitAction.py +212 -0
- spire/pdf/PdfSubmitFormFlags.py +25 -0
- spire/pdf/PdfTable.py +421 -0
- spire/pdf/PdfTableDataSourceType.py +15 -0
- spire/pdf/PdfTableException.py +13 -0
- spire/pdf/PdfTableExtractor.py +42 -0
- spire/pdf/PdfTableLayoutFormat.py +42 -0
- spire/pdf/PdfTableLayoutResult.py +22 -0
- spire/pdf/PdfTableStyle.py +199 -0
- spire/pdf/PdfTaggedContent.py +45 -0
- spire/pdf/PdfTemplate.py +124 -0
- spire/pdf/PdfTexBoxWidgetItem.py +12 -0
- spire/pdf/PdfTextAlignment.py +16 -0
- spire/pdf/PdfTextAnnotationIcon.py +19 -0
- spire/pdf/PdfTextAnnotationWidget.py +21 -0
- spire/pdf/PdfTextBoxField.py +220 -0
- spire/pdf/PdfTextBoxFieldWidget.py +212 -0
- spire/pdf/PdfTextBoxWidgetItemCollection.py +29 -0
- spire/pdf/PdfTextExtractOptions.py +75 -0
- spire/pdf/PdfTextExtractor.py +35 -0
- spire/pdf/PdfTextFind.py +308 -0
- spire/pdf/PdfTextFindCollection.py +23 -0
- spire/pdf/PdfTextFindOptions.py +71 -0
- spire/pdf/PdfTextFinder.py +81 -0
- spire/pdf/PdfTextFragment.py +105 -0
- spire/pdf/PdfTextLayout.py +101 -0
- spire/pdf/PdfTextLayoutResult.py +33 -0
- spire/pdf/PdfTextMarkupAnnotation.py +126 -0
- spire/pdf/PdfTextMarkupAnnotationType.py +22 -0
- spire/pdf/PdfTextMarkupAnnotationWidget.py +53 -0
- spire/pdf/PdfTextReplaceOptions.py +37 -0
- spire/pdf/PdfTextReplacer.py +89 -0
- spire/pdf/PdfTextState.py +83 -0
- spire/pdf/PdfTextStyle.py +15 -0
- spire/pdf/PdfTextWebLink.py +63 -0
- spire/pdf/PdfTextWebLinkAnnotationWidget.py +39 -0
- spire/pdf/PdfTextWidget.py +227 -0
- spire/pdf/PdfTilingBrush.py +103 -0
- spire/pdf/PdfToDocConverter.py +123 -0
- spire/pdf/PdfToHtmlParameter.py +48 -0
- spire/pdf/PdfToLinearizedPdfConverter.py +65 -0
- spire/pdf/PdfToWordConverter.py +90 -0
- spire/pdf/PdfTransitionDimension.py +18 -0
- spire/pdf/PdfTransitionDirection.py +17 -0
- spire/pdf/PdfTransitionMotion.py +15 -0
- spire/pdf/PdfTransitionStyle.py +38 -0
- spire/pdf/PdfTrueTypeFont.py +58 -0
- spire/pdf/PdfUnidimensionalBarcode.py +173 -0
- spire/pdf/PdfUnitConvertor.py +151 -0
- spire/pdf/PdfUnorderedMarkerStyle.py +21 -0
- spire/pdf/PdfUriAction.py +30 -0
- spire/pdf/PdfUriAnnotation.py +72 -0
- spire/pdf/PdfUriAnnotationWidget.py +39 -0
- spire/pdf/PdfUsedFont.py +83 -0
- spire/pdf/PdfVersion.py +20 -0
- spire/pdf/PdfVerticalAlignment.py +16 -0
- spire/pdf/PdfViewerPreferences.py +162 -0
- spire/pdf/PdfVisibility.py +15 -0
- spire/pdf/PdfWatermarkAnnotation.py +86 -0
- spire/pdf/PdfWatermarkAnnotationWidget.py +19 -0
- spire/pdf/PdfWebLinkAnnotationWidget.py +21 -0
- spire/pdf/PdfWordWrapType.py +16 -0
- spire/pdf/PrintScalingMode.py +16 -0
- spire/pdf/ReplaceActionType.py +24 -0
- spire/pdf/Security_GraphicMode.py +17 -0
- spire/pdf/Security_IPdfSignatureFormatter.py +27 -0
- spire/pdf/Security_PdfSignature.py +703 -0
- spire/pdf/Security_SignImageLayout.py +18 -0
- spire/pdf/SignImageLayout.py +15 -0
- spire/pdf/SignInfoType.py +22 -0
- spire/pdf/SignTextAlignment.py +15 -0
- spire/pdf/SignatureConfiguerText.py +30 -0
- spire/pdf/SimpleTextExtractionStrategy.py +17 -0
- spire/pdf/StoreType.py +17 -0
- spire/pdf/SubmitDataFormat.py +16 -0
- spire/pdf/TSAHttpService.py +36 -0
- spire/pdf/TabOrder.py +22 -0
- spire/pdf/TableWidthType.py +14 -0
- spire/pdf/TextAlign.py +22 -0
- spire/pdf/TextFindParameter.py +22 -0
- spire/pdf/TextLocation.py +15 -0
- spire/pdf/Utilities_PdfImageInfo.py +68 -0
- spire/pdf/Utilities_PdfTable.py +48 -0
- spire/pdf/XFAForm.py +68 -0
- spire/pdf/XfaBarcodeField.py +84 -0
- spire/pdf/XfaButtonField.py +12 -0
- spire/pdf/XfaCheckButtonField.py +30 -0
- spire/pdf/XfaChoiceListField.py +53 -0
- spire/pdf/XfaDateTimeField.py +43 -0
- spire/pdf/XfaDoubleField.py +30 -0
- spire/pdf/XfaField.py +43 -0
- spire/pdf/XfaFloatField.py +30 -0
- spire/pdf/XfaImageField.py +49 -0
- spire/pdf/XfaIntField.py +30 -0
- spire/pdf/XfaSignatureField.py +12 -0
- spire/pdf/XfaTextField.py +30 -0
- spire/pdf/XlsxLineLayoutOptions.py +69 -0
- spire/pdf/XlsxOptions.py +12 -0
- spire/pdf/XlsxTextLayoutOptions.py +18 -0
- spire/pdf/__init__.py +699 -0
- spire/pdf/common/Boolean.py +194 -0
- spire/pdf/common/Byte.py +258 -0
- spire/pdf/common/Char.py +742 -0
- spire/pdf/common/Color.py +2189 -0
- spire/pdf/common/Common.py +152 -0
- spire/pdf/common/CultureInfo.py +567 -0
- spire/pdf/common/DateTime.py +1149 -0
- spire/pdf/common/Double.py +440 -0
- spire/pdf/common/EmfType.py +25 -0
- spire/pdf/common/Encoding.py +930 -0
- spire/pdf/common/FontStyle.py +27 -0
- spire/pdf/common/GraphicsUnit.py +29 -0
- spire/pdf/common/ICollection.py +73 -0
- spire/pdf/common/IDictionary.py +124 -0
- spire/pdf/common/IEnumerable.py +44 -0
- spire/pdf/common/IEnumerator.py +62 -0
- spire/pdf/common/IList.py +148 -0
- spire/pdf/common/Int16.py +274 -0
- spire/pdf/common/Int32.py +282 -0
- spire/pdf/common/Int64.py +258 -0
- spire/pdf/common/License.py +177 -0
- spire/pdf/common/PixelFormat.py +45 -0
- spire/pdf/common/Point.py +300 -0
- spire/pdf/common/PointF.py +276 -0
- spire/pdf/common/Rectangle.py +451 -0
- spire/pdf/common/RectangleF.py +438 -0
- spire/pdf/common/Regex.py +964 -0
- spire/pdf/common/RegexOptions.py +31 -0
- spire/pdf/common/Single.py +418 -0
- spire/pdf/common/Size.py +273 -0
- spire/pdf/common/SizeF.py +261 -0
- spire/pdf/common/SpireObject.py +81 -0
- spire/pdf/common/Stream.py +552 -0
- spire/pdf/common/String.py +1880 -0
- spire/pdf/common/TimeSpan.py +874 -0
- spire/pdf/common/UInt16.py +274 -0
- spire/pdf/common/UInt32.py +274 -0
- spire/pdf/common/UInt64.py +274 -0
- spire/pdf/common/__init__.py +383 -0
- spire/pdf/lib/Spire.Pdf.Base.dll +0 -0
- spire/pdf/lib/__init__.py +0 -0
- spire/pdf/lib/libSkiaSharp.dll +0 -0
- spire_pdf-11.6.1.dist-info/METADATA +149 -0
- spire_pdf-11.6.1.dist-info/RECORD +566 -0
- spire_pdf-11.6.1.dist-info/WHEEL +5 -0
- spire_pdf-11.6.1.dist-info/top_level.txt +1 -0
spire/pdf/PdfMarker.py
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
from enum import Enum
|
|
2
|
+
from plum import dispatch
|
|
3
|
+
from typing import TypeVar, Union, Generic, List, Tuple
|
|
4
|
+
from spire.pdf.common import *
|
|
5
|
+
from spire.pdf import *
|
|
6
|
+
from ctypes import *
|
|
7
|
+
import abc
|
|
8
|
+
|
|
9
|
+
class PdfMarker(PdfMarkerBase):
|
|
10
|
+
"""
|
|
11
|
+
Represents bullet for the list.
|
|
12
|
+
"""
|
|
13
|
+
@dispatch
|
|
14
|
+
def __init__(self, style: PdfUnorderedMarkerStyle):
|
|
15
|
+
"""
|
|
16
|
+
Initializes a new instance of the PdfMarker class.
|
|
17
|
+
|
|
18
|
+
Args:
|
|
19
|
+
style (PdfUnorderedMarkerStyle): The PdfUnorderedMarkerStyle.
|
|
20
|
+
"""
|
|
21
|
+
enumStyle:c_int = style.value
|
|
22
|
+
GetDllLibPdf().PdfMarker_CreatePdfMarkerS.argtypes = [c_int]
|
|
23
|
+
GetDllLibPdf().PdfMarker_CreatePdfMarkerS.restype = c_void_p
|
|
24
|
+
intPtr = GetDllLibPdf().PdfMarker_CreatePdfMarkerS(enumStyle)
|
|
25
|
+
super(PdfMarker, self).__init__(intPtr)
|
|
26
|
+
|
|
27
|
+
@property
|
|
28
|
+
def Template(self) -> 'PdfTemplate':
|
|
29
|
+
"""
|
|
30
|
+
Gets or sets template of the marker.
|
|
31
|
+
"""
|
|
32
|
+
GetDllLibPdf().PdfMarker_get_Template.argtypes = [c_void_p]
|
|
33
|
+
GetDllLibPdf().PdfMarker_get_Template.restype = c_void_p
|
|
34
|
+
intPtr = CallCFunction(GetDllLibPdf().PdfMarker_get_Template,self.Ptr)
|
|
35
|
+
ret = None if intPtr == None else PdfTemplate(intPtr)
|
|
36
|
+
return ret
|
|
37
|
+
|
|
38
|
+
@Template.setter
|
|
39
|
+
def Template(self, value: 'PdfTemplate'):
|
|
40
|
+
"""
|
|
41
|
+
Sets template of the marker.
|
|
42
|
+
"""
|
|
43
|
+
GetDllLibPdf().PdfMarker_set_Template.argtypes = [c_void_p, c_void_p]
|
|
44
|
+
CallCFunction(GetDllLibPdf().PdfMarker_set_Template,self.Ptr, value.Ptr)
|
|
45
|
+
|
|
46
|
+
@property
|
|
47
|
+
def Image(self) -> 'PdfImage':
|
|
48
|
+
"""
|
|
49
|
+
Gets or sets image of the marker.
|
|
50
|
+
"""
|
|
51
|
+
GetDllLibPdf().PdfMarker_get_Image.argtypes = [c_void_p]
|
|
52
|
+
GetDllLibPdf().PdfMarker_get_Image.restype = c_void_p
|
|
53
|
+
intPtr = CallCFunction(GetDllLibPdf().PdfMarker_get_Image,self.Ptr)
|
|
54
|
+
ret = None if intPtr == None else PdfImage(intPtr)
|
|
55
|
+
return ret
|
|
56
|
+
|
|
57
|
+
@Image.setter
|
|
58
|
+
def Image(self, value: 'PdfImage'):
|
|
59
|
+
"""
|
|
60
|
+
Sets image of the marker.
|
|
61
|
+
"""
|
|
62
|
+
GetDllLibPdf().PdfMarker_set_Image.argtypes = [c_void_p, c_void_p]
|
|
63
|
+
CallCFunction(GetDllLibPdf().PdfMarker_set_Image,self.Ptr, value.Ptr)
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
def Text(self) -> str:
|
|
67
|
+
"""
|
|
68
|
+
Gets or sets marker text.
|
|
69
|
+
"""
|
|
70
|
+
GetDllLibPdf().PdfMarker_get_Text.argtypes = [c_void_p]
|
|
71
|
+
GetDllLibPdf().PdfMarker_get_Text.restype = c_void_p
|
|
72
|
+
ret = PtrToStr(CallCFunction(GetDllLibPdf().PdfMarker_get_Text,self.Ptr))
|
|
73
|
+
return ret
|
|
74
|
+
|
|
75
|
+
@Text.setter
|
|
76
|
+
def Text(self, value: str):
|
|
77
|
+
"""
|
|
78
|
+
Sets marker text.
|
|
79
|
+
"""
|
|
80
|
+
GetDllLibPdf().PdfMarker_set_Text.argtypes = [c_void_p, c_wchar_p]
|
|
81
|
+
CallCFunction(GetDllLibPdf().PdfMarker_set_Text,self.Ptr, value)
|
|
82
|
+
|
|
83
|
+
@property
|
|
84
|
+
def Style(self) -> 'PdfUnorderedMarkerStyle':
|
|
85
|
+
"""
|
|
86
|
+
Gets or sets the style.
|
|
87
|
+
"""
|
|
88
|
+
GetDllLibPdf().PdfMarker_get_Style.argtypes = [c_void_p]
|
|
89
|
+
GetDllLibPdf().PdfMarker_get_Style.restype = c_int
|
|
90
|
+
ret = CallCFunction(GetDllLibPdf().PdfMarker_get_Style,self.Ptr)
|
|
91
|
+
objwrapped = PdfUnorderedMarkerStyle(ret)
|
|
92
|
+
return objwrapped
|
|
93
|
+
|
|
94
|
+
@Style.setter
|
|
95
|
+
def Style(self, value: 'PdfUnorderedMarkerStyle'):
|
|
96
|
+
"""
|
|
97
|
+
Sets the style.
|
|
98
|
+
"""
|
|
99
|
+
GetDllLibPdf().PdfMarker_set_Style.argtypes = [c_void_p, c_int]
|
|
100
|
+
CallCFunction(GetDllLibPdf().PdfMarker_set_Style,self.Ptr, value.value)
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
from enum import Enum
|
|
2
|
+
from plum import dispatch
|
|
3
|
+
from typing import TypeVar, Union, Generic, List, Tuple
|
|
4
|
+
from spire.pdf.common import *
|
|
5
|
+
from spire.pdf import *
|
|
6
|
+
from ctypes import *
|
|
7
|
+
import abc
|
|
8
|
+
|
|
9
|
+
class PdfMarkerBase(SpireObject):
|
|
10
|
+
"""
|
|
11
|
+
Represents base class for markers.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
@property
|
|
15
|
+
def Font(self) -> 'PdfFontBase':
|
|
16
|
+
"""
|
|
17
|
+
Gets or sets marker font.
|
|
18
|
+
"""
|
|
19
|
+
GetDllLibPdf().PdfMarkerBase_get_Font.argtypes = [c_void_p]
|
|
20
|
+
GetDllLibPdf().PdfMarkerBase_get_Font.restype = c_void_p
|
|
21
|
+
intPtr = CallCFunction(GetDllLibPdf().PdfMarkerBase_get_Font,self.Ptr)
|
|
22
|
+
ret = None if intPtr == None else PdfFontBase(intPtr)
|
|
23
|
+
return ret
|
|
24
|
+
|
|
25
|
+
@Font.setter
|
|
26
|
+
def Font(self, value: 'PdfFontBase'):
|
|
27
|
+
"""
|
|
28
|
+
Sets marker font.
|
|
29
|
+
"""
|
|
30
|
+
GetDllLibPdf().PdfMarkerBase_set_Font.argtypes = [c_void_p, c_void_p]
|
|
31
|
+
CallCFunction(GetDllLibPdf().PdfMarkerBase_set_Font,self.Ptr, value.Ptr)
|
|
32
|
+
|
|
33
|
+
@property
|
|
34
|
+
def Brush(self) -> 'PdfBrush':
|
|
35
|
+
"""
|
|
36
|
+
Gets or sets marker brush.
|
|
37
|
+
"""
|
|
38
|
+
GetDllLibPdf().PdfMarkerBase_get_Brush.argtypes = [c_void_p]
|
|
39
|
+
GetDllLibPdf().PdfMarkerBase_get_Brush.restype = c_void_p
|
|
40
|
+
intPtr = CallCFunction(GetDllLibPdf().PdfMarkerBase_get_Brush,self.Ptr)
|
|
41
|
+
ret = None if intPtr == None else PdfBrush(intPtr)
|
|
42
|
+
return ret
|
|
43
|
+
|
|
44
|
+
@Brush.setter
|
|
45
|
+
def Brush(self, value: 'PdfBrush'):
|
|
46
|
+
"""
|
|
47
|
+
Sets marker brush.
|
|
48
|
+
"""
|
|
49
|
+
GetDllLibPdf().PdfMarkerBase_set_Brush.argtypes = [c_void_p, c_void_p]
|
|
50
|
+
CallCFunction(GetDllLibPdf().PdfMarkerBase_set_Brush,self.Ptr, value.Ptr)
|
|
51
|
+
|
|
52
|
+
@property
|
|
53
|
+
def Pen(self) -> 'PdfPen':
|
|
54
|
+
"""
|
|
55
|
+
Gets or sets marker pen.
|
|
56
|
+
"""
|
|
57
|
+
GetDllLibPdf().PdfMarkerBase_get_Pen.argtypes = [c_void_p]
|
|
58
|
+
GetDllLibPdf().PdfMarkerBase_get_Pen.restype = c_void_p
|
|
59
|
+
intPtr = CallCFunction(GetDllLibPdf().PdfMarkerBase_get_Pen,self.Ptr)
|
|
60
|
+
ret = None if intPtr == None else PdfPen(intPtr)
|
|
61
|
+
return ret
|
|
62
|
+
|
|
63
|
+
@Pen.setter
|
|
64
|
+
def Pen(self, value: 'PdfPen'):
|
|
65
|
+
"""
|
|
66
|
+
Sets marker pen.
|
|
67
|
+
"""
|
|
68
|
+
GetDllLibPdf().PdfMarkerBase_set_Pen.argtypes = [c_void_p, c_void_p]
|
|
69
|
+
CallCFunction(GetDllLibPdf().PdfMarkerBase_set_Pen,self.Ptr, value.Ptr)
|
|
70
|
+
|
|
71
|
+
@property
|
|
72
|
+
def StringFormat(self) -> 'PdfStringFormat':
|
|
73
|
+
"""
|
|
74
|
+
Gets or sets the format.
|
|
75
|
+
"""
|
|
76
|
+
GetDllLibPdf().PdfMarkerBase_get_StringFormat.argtypes = [c_void_p]
|
|
77
|
+
GetDllLibPdf().PdfMarkerBase_get_StringFormat.restype = c_void_p
|
|
78
|
+
intPtr = CallCFunction(GetDllLibPdf().PdfMarkerBase_get_StringFormat,self.Ptr)
|
|
79
|
+
ret = None if intPtr == None else PdfStringFormat(intPtr)
|
|
80
|
+
return ret
|
|
81
|
+
|
|
82
|
+
@StringFormat.setter
|
|
83
|
+
def StringFormat(self, value: 'PdfStringFormat'):
|
|
84
|
+
"""
|
|
85
|
+
Sets the format.
|
|
86
|
+
"""
|
|
87
|
+
GetDllLibPdf().PdfMarkerBase_set_StringFormat.argtypes = [c_void_p, c_void_p]
|
|
88
|
+
CallCFunction(GetDllLibPdf().PdfMarkerBase_set_StringFormat,self.Ptr, value.Ptr)
|
|
89
|
+
|
|
90
|
+
@property
|
|
91
|
+
def Alignment(self) -> 'PdfListMarkerAlignment':
|
|
92
|
+
"""
|
|
93
|
+
Gets or sets a value indicating whether the marker is situated at the left of the list or at the right of the list.
|
|
94
|
+
"""
|
|
95
|
+
GetDllLibPdf().PdfMarkerBase_get_Alignment.argtypes = [c_void_p]
|
|
96
|
+
GetDllLibPdf().PdfMarkerBase_get_Alignment.restype = c_int
|
|
97
|
+
ret = CallCFunction(GetDllLibPdf().PdfMarkerBase_get_Alignment,self.Ptr)
|
|
98
|
+
objwrapped = PdfListMarkerAlignment(ret)
|
|
99
|
+
return objwrapped
|
|
100
|
+
|
|
101
|
+
@Alignment.setter
|
|
102
|
+
def Alignment(self, value: 'PdfListMarkerAlignment'):
|
|
103
|
+
"""
|
|
104
|
+
Sets a value indicating whether the marker is situated at the left of the list or at the right of the list.
|
|
105
|
+
"""
|
|
106
|
+
GetDllLibPdf().PdfMarkerBase_set_Alignment.argtypes = [c_void_p, c_int]
|
|
107
|
+
CallCFunction(GetDllLibPdf().PdfMarkerBase_set_Alignment,self.Ptr, value.value)
|
spire/pdf/PdfMask.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from enum import Enum
|
|
2
|
+
from plum import dispatch
|
|
3
|
+
from typing import TypeVar, Union, Generic, List, Tuple
|
|
4
|
+
from spire.pdf.common import *
|
|
5
|
+
from spire.pdf import *
|
|
6
|
+
from ctypes import *
|
|
7
|
+
import abc
|
|
8
|
+
|
|
9
|
+
class PdfMask(SpireObject):
|
|
10
|
+
"""
|
|
11
|
+
Base class for bitmap masking objects.
|
|
12
|
+
"""
|
|
13
|
+
pass
|
spire/pdf/PdfMatrix.py
ADDED
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
from enum import Enum
|
|
2
|
+
from plum import dispatch
|
|
3
|
+
from typing import TypeVar,Union,Generic,List,Tuple
|
|
4
|
+
from spire.pdf.common import *
|
|
5
|
+
from spire.pdf import *
|
|
6
|
+
from ctypes import *
|
|
7
|
+
import abc
|
|
8
|
+
|
|
9
|
+
class PdfMatrix (SpireObject) :
|
|
10
|
+
"""
|
|
11
|
+
Represent the matrix
|
|
12
|
+
"""
|
|
13
|
+
@property
|
|
14
|
+
def OffsetX(self)->float:
|
|
15
|
+
"""
|
|
16
|
+
Gets the x translation value (the dx value, or the element in the third row and first column).
|
|
17
|
+
"""
|
|
18
|
+
GetDllLibPdf().PdfMatrix_get_OffsetX.argtypes=[c_void_p]
|
|
19
|
+
GetDllLibPdf().PdfMatrix_get_OffsetX.restype=c_float
|
|
20
|
+
ret = CallCFunction(GetDllLibPdf().PdfMatrix_get_OffsetX,self.Ptr)
|
|
21
|
+
return ret
|
|
22
|
+
|
|
23
|
+
@property
|
|
24
|
+
def OffsetY(self)->float:
|
|
25
|
+
"""
|
|
26
|
+
Gets the x translation value (the dx value, or the element in the third row and second column).
|
|
27
|
+
"""
|
|
28
|
+
GetDllLibPdf().PdfMatrix_get_OffsetY.argtypes=[c_void_p]
|
|
29
|
+
GetDllLibPdf().PdfMatrix_get_OffsetY.restype=c_float
|
|
30
|
+
ret = CallCFunction(GetDllLibPdf().PdfMatrix_get_OffsetY,self.Ptr)
|
|
31
|
+
return ret
|
|
32
|
+
|
|
33
|
+
@property
|
|
34
|
+
|
|
35
|
+
def Elements(self)->List[float]:
|
|
36
|
+
"""
|
|
37
|
+
Gets an array of floating-point values that represents the elements.
|
|
38
|
+
"""
|
|
39
|
+
GetDllLibPdf().PdfMatrix_get_Elements.argtypes=[c_void_p]
|
|
40
|
+
GetDllLibPdf().PdfMatrix_get_Elements.restype=IntPtrArray
|
|
41
|
+
intPtrArray = CallCFunction(GetDllLibPdf().PdfMatrix_get_Elements,self.Ptr)
|
|
42
|
+
ret = GetVectorFromArray(intPtrArray, c_float)
|
|
43
|
+
return ret
|
|
44
|
+
|
|
45
|
+
@dispatch
|
|
46
|
+
|
|
47
|
+
def Multiply(self ,matrix:'PdfMatrix'):
|
|
48
|
+
"""
|
|
49
|
+
Prepend the specified matrix.
|
|
50
|
+
|
|
51
|
+
Args:
|
|
52
|
+
matrix (PdfMatrix): Matrix is to be multiplied.
|
|
53
|
+
"""
|
|
54
|
+
intPtrmatrix:c_void_p = matrix.Ptr
|
|
55
|
+
|
|
56
|
+
GetDllLibPdf().PdfMatrix_Multiply.argtypes=[c_void_p ,c_void_p]
|
|
57
|
+
CallCFunction(GetDllLibPdf().PdfMatrix_Multiply,self.Ptr, intPtrmatrix)
|
|
58
|
+
|
|
59
|
+
@dispatch
|
|
60
|
+
|
|
61
|
+
def Multiply(self ,matrix:'PdfMatrix',order:PdfMatrixOrder):
|
|
62
|
+
"""
|
|
63
|
+
Apply the specified matrix by the specified order.
|
|
64
|
+
|
|
65
|
+
Args:
|
|
66
|
+
matrix (PdfMatrix): Matrix is to be multiplied.
|
|
67
|
+
order (PdfMatrixOrder): Represent the applying order.
|
|
68
|
+
"""
|
|
69
|
+
intPtrmatrix:c_void_p = matrix.Ptr
|
|
70
|
+
enumorder:c_int = order.value
|
|
71
|
+
|
|
72
|
+
GetDllLibPdf().PdfMatrix_MultiplyMO.argtypes=[c_void_p ,c_void_p,c_int]
|
|
73
|
+
CallCFunction(GetDllLibPdf().PdfMatrix_MultiplyMO,self.Ptr, intPtrmatrix,enumorder)
|
|
74
|
+
|
|
75
|
+
@dispatch
|
|
76
|
+
|
|
77
|
+
def Translate(self ,offsetX:float,offsetY:float):
|
|
78
|
+
"""
|
|
79
|
+
Prepend the specified translation vector (offsetX and offsetY).
|
|
80
|
+
|
|
81
|
+
Args:
|
|
82
|
+
offsetX (float): The x value by which to translate.
|
|
83
|
+
offsetY (float): The y value by which to translate.
|
|
84
|
+
"""
|
|
85
|
+
GetDllLibPdf().PdfMatrix_Translate.argtypes=[c_void_p ,c_float,c_float]
|
|
86
|
+
CallCFunction(GetDllLibPdf().PdfMatrix_Translate,self.Ptr, offsetX,offsetY)
|
|
87
|
+
|
|
88
|
+
@dispatch
|
|
89
|
+
|
|
90
|
+
def Translate(self ,offsetX:float,offsetY:float,order:PdfMatrixOrder):
|
|
91
|
+
"""
|
|
92
|
+
Apply the specified translation vector (offsetX and offsetY) by the specified order.
|
|
93
|
+
|
|
94
|
+
Args:
|
|
95
|
+
offsetX (float): The x value by which to translate.
|
|
96
|
+
offsetY (float): The y value by which to translate.
|
|
97
|
+
order (PdfMatrixOrder): Represent the applying order.
|
|
98
|
+
"""
|
|
99
|
+
enumorder:c_int = order.value
|
|
100
|
+
|
|
101
|
+
GetDllLibPdf().PdfMatrix_TranslateOOO.argtypes=[c_void_p ,c_float,c_float,c_int]
|
|
102
|
+
CallCFunction(GetDllLibPdf().PdfMatrix_TranslateOOO,self.Ptr, offsetX,offsetY,enumorder)
|
|
103
|
+
|
|
104
|
+
@dispatch
|
|
105
|
+
|
|
106
|
+
def Scale(self ,scaleX:float,scaleY:float):
|
|
107
|
+
"""
|
|
108
|
+
Prepend the specified scale vector (scaleX and scaleY).
|
|
109
|
+
|
|
110
|
+
Args:
|
|
111
|
+
scaleX (float): The value by which to scale in the x-axis direction.
|
|
112
|
+
scaleY (float): The value by which to scale in the y-axis direction.
|
|
113
|
+
"""
|
|
114
|
+
GetDllLibPdf().PdfMatrix_Scale.argtypes=[c_void_p ,c_float,c_float]
|
|
115
|
+
CallCFunction(GetDllLibPdf().PdfMatrix_Scale,self.Ptr, scaleX,scaleY)
|
|
116
|
+
|
|
117
|
+
@dispatch
|
|
118
|
+
|
|
119
|
+
def Scale(self ,scaleX:float,scaleY:float,order:PdfMatrixOrder):
|
|
120
|
+
"""
|
|
121
|
+
Apply the specified scale vector (scaleX and scaleY) by the specified order.
|
|
122
|
+
|
|
123
|
+
Args:
|
|
124
|
+
scaleX (float): The value by which to scale in the x-axis direction.
|
|
125
|
+
scaleY (float): The value by which to scale in the y-axis direction.
|
|
126
|
+
order (PdfMatrixOrder): Represent the applying order.
|
|
127
|
+
"""
|
|
128
|
+
enumorder:c_int = order.value
|
|
129
|
+
|
|
130
|
+
GetDllLibPdf().PdfMatrix_ScaleSSO.argtypes=[c_void_p ,c_float,c_float,c_int]
|
|
131
|
+
CallCFunction(GetDllLibPdf().PdfMatrix_ScaleSSO,self.Ptr, scaleX,scaleY,enumorder)
|
|
132
|
+
|
|
133
|
+
@dispatch
|
|
134
|
+
|
|
135
|
+
def Rotate(self ,angle:float):
|
|
136
|
+
"""
|
|
137
|
+
Prepend a clockwise rotation(angle) around the origin.
|
|
138
|
+
|
|
139
|
+
Args:
|
|
140
|
+
angle (float): The angle of the rotation, in degrees.
|
|
141
|
+
"""
|
|
142
|
+
GetDllLibPdf().PdfMatrix_Rotate.argtypes=[c_void_p ,c_float]
|
|
143
|
+
CallCFunction(GetDllLibPdf().PdfMatrix_Rotate,self.Ptr, angle)
|
|
144
|
+
|
|
145
|
+
@dispatch
|
|
146
|
+
|
|
147
|
+
def Rotate(self ,angle:float,order:PdfMatrixOrder):
|
|
148
|
+
"""
|
|
149
|
+
Apply a clockwise rotation(angle) around the origin by the specified order.
|
|
150
|
+
|
|
151
|
+
Args:
|
|
152
|
+
angle (float): The angle of the rotation, in degrees.
|
|
153
|
+
order (PdfMatrixOrder): Represent the applying order.
|
|
154
|
+
"""
|
|
155
|
+
enumorder:c_int = order.value
|
|
156
|
+
|
|
157
|
+
GetDllLibPdf().PdfMatrix_RotateAO.argtypes=[c_void_p ,c_float,c_int]
|
|
158
|
+
CallCFunction(GetDllLibPdf().PdfMatrix_RotateAO,self.Ptr, angle,enumorder)
|
|
159
|
+
|
|
160
|
+
@dispatch
|
|
161
|
+
|
|
162
|
+
def Skew(self ,angleX:float,angleY:float):
|
|
163
|
+
"""
|
|
164
|
+
Prepend the specified skew angles(angleX angleY).
|
|
165
|
+
|
|
166
|
+
Args:
|
|
167
|
+
angleX (float): The angle of the rotation, in degrees.
|
|
168
|
+
angleY (float): The vertical skew angle, in degrees.
|
|
169
|
+
"""
|
|
170
|
+
GetDllLibPdf().PdfMatrix_Skew.argtypes=[c_void_p ,c_float,c_float]
|
|
171
|
+
CallCFunction(GetDllLibPdf().PdfMatrix_Skew,self.Ptr, angleX,angleY)
|
|
172
|
+
|
|
173
|
+
@dispatch
|
|
174
|
+
|
|
175
|
+
def Skew(self ,angleX:float,angleY:float,order:PdfMatrixOrder):
|
|
176
|
+
"""
|
|
177
|
+
Prepend the specified skew angles(angleX angleY) by the specified order.
|
|
178
|
+
|
|
179
|
+
Args:
|
|
180
|
+
angleX (float): The horizontal skew angle, in degrees.
|
|
181
|
+
angleY (float): The vertical skew angle, in degrees.
|
|
182
|
+
order (PdfMatrixOrder): Represent the applying order.
|
|
183
|
+
"""
|
|
184
|
+
enumorder:c_int = order.value
|
|
185
|
+
|
|
186
|
+
GetDllLibPdf().PdfMatrix_SkewAAO.argtypes=[c_void_p ,c_float,c_float,c_int]
|
|
187
|
+
CallCFunction(GetDllLibPdf().PdfMatrix_SkewAAO,self.Ptr, angleX,angleY,enumorder)
|
|
188
|
+
|
|
189
|
+
@dispatch
|
|
190
|
+
|
|
191
|
+
def Shear(self ,shearX:float,shearY:float):
|
|
192
|
+
"""
|
|
193
|
+
Prepend the specified Shear vector (shearX and shearY).
|
|
194
|
+
|
|
195
|
+
Args:
|
|
196
|
+
shearX (float): The horizontal shear factor.
|
|
197
|
+
shearY (float): The vertical shear factor.
|
|
198
|
+
"""
|
|
199
|
+
GetDllLibPdf().PdfMatrix_Shear.argtypes=[c_void_p ,c_float,c_float]
|
|
200
|
+
CallCFunction(GetDllLibPdf().PdfMatrix_Shear,self.Ptr, shearX,shearY)
|
|
201
|
+
|
|
202
|
+
@dispatch
|
|
203
|
+
|
|
204
|
+
def Shear(self ,shearX:float,shearY:float,order:PdfMatrixOrder):
|
|
205
|
+
"""
|
|
206
|
+
Apply the specified Shear vector (shearX and shearY) by the specified order.
|
|
207
|
+
|
|
208
|
+
Args:
|
|
209
|
+
shearX (float): The horizontal shear factor.
|
|
210
|
+
shearY (float): The vertical shear factor.
|
|
211
|
+
order (PdfMatrixOrder): Represent the applying order.
|
|
212
|
+
"""
|
|
213
|
+
enumorder:c_int = order.value
|
|
214
|
+
|
|
215
|
+
GetDllLibPdf().PdfMatrix_ShearSSO.argtypes=[c_void_p ,c_float,c_float,c_int]
|
|
216
|
+
CallCFunction(GetDllLibPdf().PdfMatrix_ShearSSO,self.Ptr, shearX,shearY,enumorder)
|
|
217
|
+
|
|
218
|
+
#
|
|
219
|
+
# def TransformPoints(self ,pts:'PointF[]')->List['PointF']:
|
|
220
|
+
# """
|
|
221
|
+
# <summary>
|
|
222
|
+
# Applies the geometric transform to a specified array of points.
|
|
223
|
+
# </summary>
|
|
224
|
+
# <param name="pt">An array of points to transform.</param>
|
|
225
|
+
# <returns>The transformed points.</returns>
|
|
226
|
+
# """
|
|
227
|
+
# #arraypts:ArrayTypepts = ""
|
|
228
|
+
# countpts = len(pts)
|
|
229
|
+
# ArrayTypepts = c_void_p * countpts
|
|
230
|
+
# arraypts = ArrayTypepts()
|
|
231
|
+
# for i in range(0, countpts):
|
|
232
|
+
# arraypts[i] = pts[i].Ptr
|
|
233
|
+
#
|
|
234
|
+
#
|
|
235
|
+
# GetDllLibPdf().PdfMatrix_TransformPoints.argtypes=[c_void_p ,ArrayTypepts]
|
|
236
|
+
# GetDllLibPdf().PdfMatrix_TransformPoints.restype=IntPtrArray
|
|
237
|
+
# intPtrArray = CallCFunction(GetDllLibPdf().PdfMatrix_TransformPoints,self.Ptr, arraypts)
|
|
238
|
+
# ret = GetObjVectorFromArray(intPtrArray, PointF)
|
|
239
|
+
# return ret
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
def Clone(self)->'PdfMatrix':
|
|
244
|
+
"""
|
|
245
|
+
|
|
246
|
+
"""
|
|
247
|
+
GetDllLibPdf().PdfMatrix_Clone.argtypes=[c_void_p]
|
|
248
|
+
GetDllLibPdf().PdfMatrix_Clone.restype=c_void_p
|
|
249
|
+
intPtr = CallCFunction(GetDllLibPdf().PdfMatrix_Clone,self.Ptr)
|
|
250
|
+
ret = None if intPtr==None else PdfMatrix(intPtr)
|
|
251
|
+
return ret
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
def DegreeToRadian(self ,degree:float)->float:
|
|
256
|
+
"""
|
|
257
|
+
Converts degree to radian.
|
|
258
|
+
|
|
259
|
+
Args:
|
|
260
|
+
degree (float): The degree.
|
|
261
|
+
|
|
262
|
+
Returns:
|
|
263
|
+
float: The radian.
|
|
264
|
+
"""
|
|
265
|
+
GetDllLibPdf().PdfMatrix_DegreeToRadian.argtypes=[c_void_p ,c_double]
|
|
266
|
+
GetDllLibPdf().PdfMatrix_DegreeToRadian.restype=c_double
|
|
267
|
+
ret = CallCFunction(GetDllLibPdf().PdfMatrix_DegreeToRadian,self.Ptr, degree)
|
|
268
|
+
return ret
|
|
269
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
from enum import Enum
|
|
2
|
+
from plum import dispatch
|
|
3
|
+
from typing import TypeVar, Union, Generic, List, Tuple
|
|
4
|
+
from spire.pdf.common import *
|
|
5
|
+
from spire.pdf import *
|
|
6
|
+
from ctypes import *
|
|
7
|
+
import abc
|
|
8
|
+
|
|
9
|
+
class PdfMatrixOrder(Enum):
|
|
10
|
+
"""
|
|
11
|
+
Enum class representing the applying order to matrix.
|
|
12
|
+
|
|
13
|
+
Attributes:
|
|
14
|
+
Prepend (int): Represents the prepend order.
|
|
15
|
+
Append (int): Represents the append order.
|
|
16
|
+
"""
|
|
17
|
+
Prepend = 0
|
|
18
|
+
Append = 1
|
spire/pdf/PdfMerger.py
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
from enum import Enum
|
|
2
|
+
from plum import dispatch
|
|
3
|
+
from typing import TypeVar, Union, Generic, List, Tuple
|
|
4
|
+
from spire.pdf.common import *
|
|
5
|
+
from spire.pdf import *
|
|
6
|
+
from ctypes import *
|
|
7
|
+
import abc
|
|
8
|
+
|
|
9
|
+
class PdfMerger(SpireObject):
|
|
10
|
+
"""
|
|
11
|
+
The class can be used to merge pdf documents
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
@staticmethod
|
|
15
|
+
#@dispatch
|
|
16
|
+
def MergeByFile(inputFiles: List[str], outputFile: str, pdfMergeOptions: MergerOptions):
|
|
17
|
+
"""
|
|
18
|
+
Merge the PDF documents.
|
|
19
|
+
|
|
20
|
+
Args:
|
|
21
|
+
inputFiles (List[str]): The input PDF documents.
|
|
22
|
+
outputFile (str): The output PDF document.
|
|
23
|
+
pdfMergeOptions (MergerOptions): Some options when do merge operation.
|
|
24
|
+
"""
|
|
25
|
+
countinputFiles = len(inputFiles)
|
|
26
|
+
ArrayTypeinputFiles = c_wchar_p * countinputFiles
|
|
27
|
+
arrayinputFiles = ArrayTypeinputFiles()
|
|
28
|
+
for i in range(0, countinputFiles):
|
|
29
|
+
arrayinputFiles[i] = inputFiles[i]
|
|
30
|
+
|
|
31
|
+
intPtrpdfMergeOptions: c_void_p = pdfMergeOptions.Ptr
|
|
32
|
+
|
|
33
|
+
GetDllLibPdf().PdfMerger_Merge.argtypes = [c_void_p, ArrayTypeinputFiles, c_wchar_p, c_void_p, c_int]
|
|
34
|
+
CallCFunction(GetDllLibPdf().PdfMerger_Merge,None, arrayinputFiles, outputFile, intPtrpdfMergeOptions, countinputFiles)
|
|
35
|
+
|
|
36
|
+
@staticmethod
|
|
37
|
+
#@dispatch
|
|
38
|
+
def MergeByStream(inputStreams: List[Stream], outputStream: Stream, pdfMergeOptions: MergerOptions):
|
|
39
|
+
"""
|
|
40
|
+
Merge the PDF documents.
|
|
41
|
+
|
|
42
|
+
Args:
|
|
43
|
+
inputStreams (List[Stream]): The input PDF documents.
|
|
44
|
+
outputStream (Stream): The output PDF document.
|
|
45
|
+
pdfMergeOptions (MergerOptions): Some options when do merge operation.
|
|
46
|
+
"""
|
|
47
|
+
countinputFiles = len(inputStreams)
|
|
48
|
+
ArrayTypeinputFiles = c_void_p * countinputFiles
|
|
49
|
+
arrayinputFiles = ArrayTypeinputFiles()
|
|
50
|
+
for i in range(0, countinputFiles):
|
|
51
|
+
arrayinputFiles[i] = inputStreams[i].Ptr
|
|
52
|
+
|
|
53
|
+
intPtroutputFile: c_void_p = outputStream.Ptr
|
|
54
|
+
intPtrpdfMergeOptions: c_void_p = pdfMergeOptions.Ptr
|
|
55
|
+
|
|
56
|
+
GetDllLibPdf().PdfMerger_MergeIOP.argtypes = [c_void_p, ArrayTypeinputFiles, c_void_p, c_void_p, c_int]
|
|
57
|
+
CallCFunction(GetDllLibPdf().PdfMerger_MergeIOP,None, arrayinputFiles, intPtroutputFile, intPtrpdfMergeOptions, countinputFiles)
|
spire/pdf/PdfMetafile.py
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
from enum import Enum
|
|
2
|
+
from plum import dispatch
|
|
3
|
+
from typing import TypeVar, Union, Generic, List, Tuple
|
|
4
|
+
from spire.pdf.common import *
|
|
5
|
+
from spire.pdf import *
|
|
6
|
+
from ctypes import *
|
|
7
|
+
import abc
|
|
8
|
+
|
|
9
|
+
class PdfMetafile(PdfImage):
|
|
10
|
+
"""
|
|
11
|
+
Class representing metafiles.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
@property
|
|
15
|
+
def Quality(self) -> int:
|
|
16
|
+
"""
|
|
17
|
+
Get the quality of the metafile.
|
|
18
|
+
"""
|
|
19
|
+
GetDllLibPdf().PdfMetafile_get_Quality.argtypes = [c_void_p]
|
|
20
|
+
GetDllLibPdf().PdfMetafile_get_Quality.restype = c_long
|
|
21
|
+
ret = CallCFunction(GetDllLibPdf().PdfMetafile_get_Quality,self.Ptr)
|
|
22
|
+
return ret
|
|
23
|
+
|
|
24
|
+
@Quality.setter
|
|
25
|
+
def Quality(self, value: int):
|
|
26
|
+
"""
|
|
27
|
+
Set the quality of the metafile.
|
|
28
|
+
"""
|
|
29
|
+
GetDllLibPdf().PdfMetafile_set_Quality.argtypes = [c_void_p, c_long]
|
|
30
|
+
CallCFunction(GetDllLibPdf().PdfMetafile_set_Quality,self.Ptr, value)
|
|
31
|
+
|
|
32
|
+
@property
|
|
33
|
+
def PageScale(self) -> float:
|
|
34
|
+
"""
|
|
35
|
+
Get the page scale of the metafile.
|
|
36
|
+
"""
|
|
37
|
+
GetDllLibPdf().PdfMetafile_get_PageScale.argtypes = [c_void_p]
|
|
38
|
+
GetDllLibPdf().PdfMetafile_get_PageScale.restype = c_float
|
|
39
|
+
ret = CallCFunction(GetDllLibPdf().PdfMetafile_get_PageScale,self.Ptr)
|
|
40
|
+
return ret
|
|
41
|
+
|
|
42
|
+
@PageScale.setter
|
|
43
|
+
def PageScale(self, value: float):
|
|
44
|
+
"""
|
|
45
|
+
Set the page scale of the metafile.
|
|
46
|
+
"""
|
|
47
|
+
GetDllLibPdf().PdfMetafile_set_PageScale.argtypes = [c_void_p, c_float]
|
|
48
|
+
CallCFunction(GetDllLibPdf().PdfMetafile_set_PageScale,self.Ptr, value)
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def PageUnit(self) -> 'GraphicsUnit':
|
|
52
|
+
"""
|
|
53
|
+
Get the page unit of the metafile.
|
|
54
|
+
"""
|
|
55
|
+
GetDllLibPdf().PdfMetafile_get_PageUnit.argtypes = [c_void_p]
|
|
56
|
+
GetDllLibPdf().PdfMetafile_get_PageUnit.restype = c_int
|
|
57
|
+
ret = CallCFunction(GetDllLibPdf().PdfMetafile_get_PageUnit,self.Ptr)
|
|
58
|
+
objwrapped = GraphicsUnit(ret)
|
|
59
|
+
return objwrapped
|
|
60
|
+
|
|
61
|
+
@PageUnit.setter
|
|
62
|
+
def PageUnit(self, value: 'GraphicsUnit'):
|
|
63
|
+
"""
|
|
64
|
+
Set the page unit of the metafile.
|
|
65
|
+
"""
|
|
66
|
+
GetDllLibPdf().PdfMetafile_set_PageUnit.argtypes = [c_void_p, c_int]
|
|
67
|
+
CallCFunction(GetDllLibPdf().PdfMetafile_set_PageUnit,self.Ptr, value.value)
|
|
68
|
+
|
|
69
|
+
def Dispose(self):
|
|
70
|
+
"""
|
|
71
|
+
Dispose the metafile.
|
|
72
|
+
"""
|
|
73
|
+
GetDllLibPdf().PdfMetafile_Dispose.argtypes = [c_void_p]
|
|
74
|
+
CallCFunction(GetDllLibPdf().PdfMetafile_Dispose,self.Ptr)
|
|
75
|
+
|
|
76
|
+
def SetTransparency(self, alphaPen: float, alphaBrush: float, blendMode: 'PdfBlendMode', transparency: bool):
|
|
77
|
+
"""
|
|
78
|
+
Set the transparency of the metafile.
|
|
79
|
+
"""
|
|
80
|
+
enumblendMode: c_int = blendMode.value
|
|
81
|
+
|
|
82
|
+
GetDllLibPdf().PdfMetafile_SetTransparency.argtypes = [c_void_p, c_float, c_float, c_int, c_bool]
|
|
83
|
+
CallCFunction(GetDllLibPdf().PdfMetafile_SetTransparency,self.Ptr, alphaPen, alphaBrush, enumblendMode, transparency)
|