Dies ist die REST-API-Referenz für Ihre Instanz von IronSecureDoc. Dieses Tutorial setzt voraus, dass Sie bereits eine Container-Instanz laufen haben. Wenn Sie anfangen möchten, folgen Sie bitte unserem Leitfaden.
Der Platzhalter http://localhost:8080/ wird in allen Beispielen für die URL verwendet. Bitte stellen Sie sicher, dass Sie diese durch Ihre URL ersetzen.
Stellen Sie sicher, dass Sie die Platzhalterwerte (z.B. path/to/your/file.pdf, certificate_password usw.) durch tatsächliche Werte ersetzen.
Die author-, title- und subject-Header sind in allen Anforderungsbeispielen enthalten.
Verbirgt sensible reguläre Ausdrücke (wie Daten, Namen oder Muster) in einem PDF-Dokument durch echte Schwärzung. Schließen Sie eine PDF-Datei als pdf_file-Objekt im Anfragetext ein.
Erforderliche Parameter des Anfragekörpers
Name
Data Type
Description
pdf_file
application/pdf file
The PDF file to redact.
regular_expression
string
Regular Expression from which matching cases will be redacted from the document.
Optionale Parameter des Anfragekörpers
Name
Data Type
Default
Description
user_password
string
null
User password for the input PDF. Required if the PDF has a user password to grant read access.
owner_password
string
null
Owner password for the input PDF. Required if the PDF has an owner password to grant access to make modifications.
specific_pages
array[int]
null
Optionally specify pages to apply to. If left empty, all pages will apply.
draw_black_box
bool
True
Have a Black Box drawn over redacted text areas.
overlay_text
string
null
If your prefer an Overlay Text on the redaction area such as words or symbols, set them here. If not set, a blank character will be used.
Beschreibung: Verbirgt sensible Texte in einem bestimmten Bereich eines PDF-Dokuments durch echte Schwärzung. Schließen Sie eine PDF-Datei als pdf_file-Objekt im Anfragetext ein.
Erforderliche Parameter des Anfragekörpers
Datentyp
Optionale Parameter des Anfragekörpers
Name
Data Type
Default
Description
user_password
string
null
User password for the input PDF. Required if the PDF has a user password to grant read access.
owner_password
string
null
Owner password for the input PDF. Required if the PDF has an owner password to grant access to make modifications.
specific_pages
array[int]
null
Optionally specify pages to apply to. If left empty, all pages will apply.
Beschreibung: Fügt einem PDF-Dokument eine Zertifizierung hinzu, um zu bestätigen, dass es nicht durch eine Zertifikatdatei (.p12, .pfx) manipuliert wurde. Fügen Sie eine PDF-Datei als pdf_file-Objekt in den Anfrage-Body ein und eine Zertifikatsdatei als certificate_file-Objekt in den Anfrage-Body.
Erforderliche Parameter des Anfragekörpers
Name
Datentyp
Beschreibung
pdf_file
application/pdf file
The PDF file to certify.
certificate_file
application/x-pkcs12 file
The certificate file (.p12, .pfx) to use for certification.
certificate_password
string
Password for the provided certificate file.
certificate_permissions
int
certificate_permissions value
Permissions
1
No Changes Allowed. Any further document changes will invalidate the signature.
2
Only Additional Signatures and Form Filling Allowed.
3
Only AdditionalSignatures, Form Filling, and Annotations Allowed
Optionale Parameter des Anfragekörpers
Name
Datentyp
Standard
Beschreibung
user_password
string
null
Benutzerpasswort für das Eingabe-PDF. Erforderlich, wenn das PDF ein Benutzerpasswort enthält, um Lesezugriff zu gewähren.
owner_password
string
null
Besitzerpasswort für das Eingabe-PDF. Erforderlich, wenn das PDF ein Besitzerpasswort enthält, um Änderungen vornehmen zu können.
Beschreibung: Fügt ein Bild und eine Zertifizierung zu diesem Bild in einem PDF-Dokument hinzu, um zu bestätigen, dass es nicht mittels einer Zertifikatsdatei (.p12, .pfx) manipuliert wurde. Fügen Sie eine PDF-Datei als pdf_file-Objekt in den Anfrage-Body ein und eine Zertifikatsdatei als certificate_file-Objekt in den Anfrage-Body.
Erforderliche Parameter des Anfragekörpers
Name
Datentyp
Beschreibung
pdf_file
application/pdf file
The PDF file to certify.
signature_image_file
image/jpeg or image/png file
The signature image (.png, .jpg, .jpeg) to use for certification. Can be a logo, autograph, etc.
certificate_file
application/x-pkcs12 file
The certificate file (.p12, .pfx) to use for certification.
certificate_password
string
Password for the provided certificate file.
certificate_permissions
int
certificate_permissions value
Permissions
1
No Changes Allowed. Any further document changes will invalidate the signature.
2
Only Additional Signatures and Form Filling Allowed.
3
Only AdditionalSignatures, Form Filling, and Annotations Allowed
sign_specific_page
int
Specify page to apply the image and certificate to. First page is 0. If left empty, only first page will apply.
signature_image_x
float
The X coordinate of the Rectangle region of the signature image. This starts from the top-left of the page.
signature_image_y
float
The Y coordinate of the Rectangle region of the signature image. This starts from the top-left of the page.
signature_image_w
float
The Width of the Rectangle region of the signature image. This starts from the top-left of the page.
signature_image_h
float
The Height of the Rectangle region of the signature image. This starts from the top-left of the page.
Optionale Parameter des Anfragekörpers
Name
Data Type
Default
Description
user_password
string
null
User password for the input PDF. Required if the PDF has a user password to grant read access.
owner_password
string
null
Owner password for the input PDF. Required if the PDF has an owner password to grant access to make modifications.
specific_pages
array[int]
null
Optionally specify pages to apply to. If left empty, all pages will apply.
Beschreibung: Fügt einer PDF-Dokument einen Sicherheitsschicht hinzu, indem es mit einem Benutzer- und Eigentümerpasswort verschlüsselt wird. Fügen Sie eine PDF-Datei als pdf_file-Objekt in den Body der Anfrage ein.
Erforderliche Parameter des Anfragekörpers
Name
Data Type
Description
pdf_file
application/pdf file
The PDF file to encrypt.
allow_extracting_content
bool
Allow the extraction of content from the PDF file.
allow_form_filling
bool
Allow the filling of forms in the resulting PDF.
allow_annotations
bool
Allow the addition or modification of annotations in the resulting PDF.
allow_printing
bool
Allow printing of the resulting PDF.
allow_modifications
bool
Allow modifications to the resulting PDF.
new_owner_password
string
New owner password for the output PDF. Grants full access, including changing permissions and passwords.
Optionale Parameter des Anfragekörpers
Name
Data Type
Default
Description
user_password
string
null
User password for the input PDF. Required if the PDF has a user password to grant read access.
owner_password
string
null
Owner password for the input PDF. Required if the PDF has an owner password to grant access to make modifications.
new_user_password
string
null
New user password for the output PDF. Grants read access and other specified permissions.
Chaknith arbeitet an IronXL und IronBarcode. Er hat tiefgehende Expertise in C# und .NET und hilft, die Software zu verbessern und Kunden zu unterstützen. Seine Erkenntnisse aus Benutzerinteraktionen tragen zu besseren Produkten, Dokumentation und einem insgesamt besseren Erlebnis bei.