API REST para IronSecureDoc

Chaknith Bin
Chaknith Bin
20 de julio, 2024
Actualizado 20 de octubre, 2024
Compartir:
This article was translated from English: Does it need improvement?
Translated
View the article in English

Esta es la referencia de la API REST para su instancia de IronSecureDoc. Este tutorial asume que ya tienes una instancia de contenedor en funcionamiento, si estás buscando Comenzar, por favor sigue nuestra Guía.

Saltar a características:

chequeo [GET]

Punto final: http://localhost:8080/v1/document-services/ping

Punto final de comprobación de estado para verificar que el servidor está funcionando.

Respuesta: 200 OK: pong


[GET] Comprobar licencia

Punto final: http://localhost:8080/v1/document-services/check-license

Verifica la validez de la licencia.

Respuesta: 200 OK: Válido


[POST] Redactar texto

Punto final: http://localhost:8080/v1/document-services/pdfs/redact-text

Oculta palabras sensibles en un documento en formato PDF mediante una verdadera redacción. Incluya un archivo PDF como un objeto pdf_file en el cuerpo de la solicitud.

Parámetros obligatorios del cuerpo de la solicitud

NombreTipo de DatosDescripción
pdf_filearchivo application/pdfEl archivo PDF para redactar.
words_to_redactarray[string]Un arreglo de palabras para redactar del documento.

Parámetros opcionales del cuerpo de la solicitud

NameData TypeDefaultDescription
user_passwordstringnullUser password for the input PDF. Required if the PDF has a user password to grant read access.
owner_passwordstringnullOwner password for the input PDF. Required if the PDF has an owner password to grant access to make modifications.
specific_pagesarray[int]nullOptionally specify pages to apply to. If left empty, all pages will apply.
draw_black_boxboolTrueHave a Black Box drawn over redacted text areas.
match_whole_wordboolTrueAllow partial matches within words be redacted too.
match_caseboolnullMatch case for the words to be redacted.
overlay_textstringnullIf 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.
save_as_pdfaboolFalseSave the PDF with PDF/A-3 compliance.
save_as_pdfuaboolFalseSave the PDF with PDF/UA compliance.

Cabeceras opcionales

NameData TypeDescription
authorstringSet the PDF Metadata Author property.
titlestringSet the PDF Metadata Title property.
subjectstringSet the PDF Metadata Subject property.

Ejemplo:

Solicitud

Sólo parámetros obligatorios:

curl -X POST 'http://localhost:8080/v1/document-services/pdfs/redact-text' \
  -H 'accept: */*' \
  -H 'Content-Type: multipart/form-data' \
  -F 'pdf_file=@sample.pdf;type=application/pdf' \
  -F 'words_to_redact="pdf"' \
  -F 'draw_black_box=true' \
  -F 'match_whole_word=true' \
  -F 'match_case=true' \
CURL

Todos los parámetros obligatorios y opcionales:

curl -X POST 'http://localhost:8080/v1/document-services/pdfs/redact-text' \
  -H 'accept: */*' \
  -H 'author: Iron Software 
 IRONSECUREDOC' \
  -H 'title: WEBSITE DEMO 2024' \
  -H 'subject: DEMO EXAMPLE' \
  -H 'Content-Type: multipart/form-data' \
  -F 'pdf_file=@sample.pdf;type=application/pdf' \
  -F 'words_to_redact="word1"' \
  -F 'words_to_redact="word2"' \
  -F 'draw_black_box=true' \
  -F 'match_whole_word=true' \
  -F 'match_case=true' \
  -F 'user_password="password"' \
  -F 'owner_password="5yug2RT45th32h78"' \
  -F 'overlay_text="REDACTED"' \
  -F 'specific_pages=0' \
  -F 'specific_pages=1' \
  -F 'save_as_pdfa=false' \
  -F 'save_as_pdfua=false' \
CURL

Respuesta:

  • 200 OK con el archivo PDF redactado adjunto.

[POST] Redactar expresión regular

Endpoint: http://localhost:8080/v1/document-services/pdfs/redact-regular-expression

Oculta coincidencias sensibles de Expresiones Regulares (como fechas, nombres o patrones) en un documento en formato PDF utilizando verdadero redactado. Incluya un archivo PDF como un objeto pdf_file en el cuerpo de la solicitud.

Parámetros obligatorios del cuerpo de la solicitud

NameData TypeDescription
pdf_fileapplication/pdf fileThe PDF file to redact.
regular_expressionstringRegular Expression from which matching cases will be redacted from the document.

Parámetros opcionales del cuerpo de la solicitud

NameData TypeDefaultDescription
user_passwordstringnullUser password for the input PDF. Required if the PDF has a user password to grant read access.
owner_passwordstringnullOwner password for the input PDF. Required if the PDF has an owner password to grant access to make modifications.
specific_pagesarray[int]nullOptionally specify pages to apply to. If left empty, all pages will apply.
draw_black_boxboolTrueHave a Black Box drawn over redacted text areas.
overlay_textstringnullIf 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.
save_as_pdfaboolFalseSave the PDF with PDF/A-3 compliance.
save_as_pdfuaboolFalseSave the PDF with PDF/UA compliance.

Cabeceras opcionales

NameData TypeDescription
authorstringSet the PDF Metadata Author property.
titlestringSet the PDF Metadata Title property.
subjectstringSet the PDF Metadata Subject property.

Ejemplo:

Solicitud

Sólo parámetros obligatorios:

curl -X 'POST' \
  'http://localhost:8080/v1/document-services/pdfs/redact-regular-expression' \
  -H 'accept: */*' \
  -H 'author: Iron Software 
 IRONSECUREDOC' \
  -H 'title: WEBSITE DEMO 2024' \
  -H 'subject: DEMO EXAMPLE' \
  -H 'Content-Type: multipart/form-data' \
  -F 'pdf_file=@sample.pdf;type=application/pdf' \
  -F 'regular_expression="[0-9]"' \
  -F 'draw_black_box=true' \
CURL

Todos los parámetros obligatorios y opcionales:

curl -X 'POST' \
  'http://localhost:8080/v1/document-services/pdfs/redact-regular-expression' \
  -H 'accept: */*' \
  -H 'author: Iron Software 
 IRONSECUREDOC' \
  -H 'title: WEBSITE DEMO 2024' \
  -H 'subject: DEMO EXAMPLE' \
  -H 'Content-Type: multipart/form-data' \
  -F 'pdf_file=@sample.pdf;type=application/pdf' \
  -F 'regular_expression="[0-9]"' \
  -F 'draw_black_box=true' \
  -F 'user_password="password"' \
  -F 'owner_password="5yug2RT45th32h78"' \
  -F 'overlay_text="%2A"' \
  -F 'specific_pages=0' \
  -F 'specific_pages=1' \
  -F 'save_as_pdfa=false' \
  -F 'save_as_pdfua=false' \
CURL

Respuesta:

  • 200 OK con el archivo PDF redactado adjunto.

[POST] Redactar región

Punto final: http://localhost:8080/v1/document-services/pdfs/redact-region

Descripción: Oculta texto sensible en una región específica de un documento PDF utilizando redacción verdadera. Incluya un archivo PDF como un objeto pdf_file en el cuerpo de la solicitud.

Parámetros obligatorios del cuerpo de la solicitud

NombreTipo de DatoDescripción
pdf_filearchivo application/pdfEl archivo PDF a redactar.
region_to_redact_xfloatCoordenada X de la región a redactar, comenzando desde la parte inferior izquierda de la página.
region_to_redact_yfloatCoordenada Y de la región a redactar, comenzando desde la parte inferior izquierda de la página.
region_to_redact_wfloatAnchura de la región a redactar, comenzando desde la coordenada X especificada.
region_to_redact_hfloatAltura de la región a redactar, comenzando desde la coordenada Y especificada.

Parámetros opcionales del cuerpo de la solicitud

NameData TypeDefaultDescription
user_passwordstringnullUser password for the input PDF. Required if the PDF has a user password to grant read access.
owner_passwordstringnullOwner password for the input PDF. Required if the PDF has an owner password to grant access to make modifications.
specific_pagesarray[int]nullOptionally specify pages to apply to. If left empty, all pages will apply.
draw_black_boxboolTrueHave a Black Box drawn over redacted text areas.
save_as_pdfaboolFalseSave the PDF with PDF/A-3 compliance.
save_as_pdfuaboolFalseSave the PDF with PDF/UA compliance.

Cabeceras opcionales

NameData TypeDescription
authorstringSet the PDF Metadata Author property.
titlestringSet the PDF Metadata Title property.
subjectstringSet the PDF Metadata Subject property.

Ejemplo:

Solicitud

Sólo parámetros obligatorios:

curl -X 'POST' \
  'http://localhost:8080/v1/document-services/pdfs/redact-region' \
  -H 'accept: */*' \
  -H 'author: Iron Software 
 IRONSECUREDOC' \
  -H 'title: WEBSITE DEMO 2024' \
  -H 'subject: DEMO EXAMPLE' \
  -H 'Content-Type: multipart/form-data' \
  -F 'pdf_file=@sample.pdf;type=application/pdf' \
  -F 'region_to_redact_x=100' \
  -F 'region_to_redact_y=150' \
  -F 'region_to_redact_w=500' \
  -F 'region_to_redact_h=400' \
CURL

Todos los parámetros obligatorios y opcionales:

curl -X 'POST' \
  'http://localhost:8080/v1/document-services/pdfs/redact-region' \
  -H 'accept: */*' \
  -H 'author: Iron Software 
 IRONSECUREDOC' \
  -H 'title: WEBSITE DEMO 2024' \
  -H 'subject: DEMO EXAMPLE' \
  -H 'Content-Type: multipart/form-data' \
  -F 'pdf_file=@sample.pdf;type=application/pdf' \
  -F 'user_password="password"' \
  -F 'owner_password="5yug2RT45th32h78"' \
  -F 'region_to_redact_x=100' \
  -F 'region_to_redact_y=150' \
  -F 'region_to_redact_w=500' \
  -F 'region_to_redact_h=400' \
  -F 'specific_pages=0' \
  -F 'specific_pages=1' \
  -F 'save_as_pdfa=false' \
  -F 'save_as_pdfua=false' \
CURL

Respuesta:

  • 200 OK con el archivo PDF redactado adjunto.

[POST] Certificar / Aplicar firma digital

Punto final: http://localhost:8080/v1/document-services/pdfs/certify

Descripción: Añade una certificación a un documento PDF para afirmar que no ha sido manipulado mediante un archivo de certificado (.p12, .pfx). Incluya un archivo PDF como un objeto pdf_file en el cuerpo de la solicitud y un archivo de certificado como un objeto certificate_file en el cuerpo de la solicitud.

Parámetros obligatorios del cuerpo de la solicitud

NameData TypeDescription
pdf_fileapplication/pdf fileThe PDF file to certify.
certificate_fileapplication/x-pkcs12 fileThe certificate file (.p12, .pfx) to use for certification.
certificate_passwordstringPassword for the provided certificate file.
certificate_permissionsint
certificate_permissions valuePermissions
1No Changes Allowed. Any further document changes will invalidate the signature.
2Only Additional Signatures and Form Filling Allowed.
3Only AdditionalSignatures, Form Filling, and Annotations Allowed

Parámetros opcionales del cuerpo de la solicitud

NameData TypeDefaultDescription
user_passwordstringnullUser password for the input PDF. Required if the PDF has a user password to grant read access.
owner_passwordstringnullOwner password for the input PDF. Required if the PDF has an owner password to grant access to make modifications.
save_as_pdfaboolFalseSave the PDF with PDF/A-3 compliance.
save_as_pdfuaboolFalseSave the PDF with PDF/UA compliance.

Cabeceras opcionales

NameData TypeDescription
authorstringSet the PDF Metadata Author property.
titlestringSet the PDF Metadata Title property.
subjectstringSet the PDF Metadata Subject property.

Ejemplo:

Solicitud

Sólo parámetros obligatorios:

curl -X POST 'http://localhost:8080/v1/document-services/pdfs/certify' \
  -H 'accept: */*' \
  -H 'Content-Type: multipart/form-data' \
  -F 'pdf_file=@sample.pdf;type=application/pdf' \
  -F 'certificate_file=@sample.pfx;type=application/x-pkcs12' \
  -F 'certificate_password="p4ssw0rd"' \
  -F 'certificate_permissions=1' \
CURL

Todos los parámetros obligatorios y opcionales:

curl -X POST 'http://localhost:8080/v1/document-services/pdfs/certify' \
  -H 'accept: */*' \
  -H 'author: Iron Software 
 IRONSECUREDOC' \
  -H 'title: WEBSITE DEMO 2024' \
  -H 'subject: DEMO EXAMPLE' \
  -H 'Content-Type: multipart/form-data' \
  -F 'pdf_file=@sample.pdf;type=application/pdf' \
  -F 'certificate_file=@sample.pfx;type=application/x-pkcs12' \
  -F 'certificate_password="p4ssw0rd"' \
  -F 'certificate_permissions=1' \
  -F 'user_password="password"' \
  -F 'owner_password="5yug2RT45th32h78"' \
  -F 'save_as_pdfa=false' \
  -F 'save_as_pdfua=false' \
CURL

Respuesta:

  • 200 OK con el archivo PDF certificado adjunto.

[POST] Firmar con Firma y Certificado

Endpoint: http://localhost:8080/v1/document-services/pdfs/sign

Descripción: Agrega una imagen y certificación a esa imagen en un documento PDF para asegurar que no ha sido manipulado mediante un archivo de Certificado (.p12, .pfx). Incluya un archivo PDF como un objeto pdf_file en el cuerpo de la solicitud y un archivo de certificado como un objeto certificate_file en el cuerpo de la solicitud.

Parámetros obligatorios del cuerpo de la solicitud

NameData TypeDescription
pdf_fileapplication/pdf fileThe PDF file to certify.
signature_image_fileimage/jpeg or image/png fileThe signature image (.png, .jpg, .jpeg) to use for certification. Can be a logo, autograph, etc.
certificate_fileapplication/x-pkcs12 fileThe certificate file (.p12, .pfx) to use for certification.
certificate_passwordstringPassword for the provided certificate file.
certificate_permissionsint
certificate_permissions valuePermissions
1No Changes Allowed. Any further document changes will invalidate the signature.
2Only Additional Signatures and Form Filling Allowed.
3Only AdditionalSignatures, Form Filling, and Annotations Allowed

sign_specific_pageintSpecify page to apply the image and certificate to. First page is 0. If left empty, only first page will apply.
signature_image_xfloatThe X coordinate of the Rectangle region of the signature image. This starts from the top-left of the page.
signature_image_yfloatThe Y coordinate of the Rectangle region of the signature image. This starts from the top-left of the page.
signature_image_wfloatThe Width of the Rectangle region of the signature image. This starts from the top-left of the page.
signature_image_hfloatThe Height of the Rectangle region of the signature image. This starts from the top-left of the page.

Parámetros opcionales del cuerpo de la solicitud

NameData TypeDefaultDescription
user_passwordstringnullUser password for the input PDF. Required if the PDF has a user password to grant read access.
owner_passwordstringnullOwner password for the input PDF. Required if the PDF has an owner password to grant access to make modifications.
specific_pagesarray[int]nullOptionally specify pages to apply to. If left empty, all pages will apply.
save_as_pdfaboolFalseSave the PDF with PDF/A-3 compliance.
save_as_pdfuaboolFalseSave the PDF with PDF/UA compliance.

Cabeceras opcionales

NameData TypeDescription
authorstringSet the PDF Metadata Author property.
titlestringSet the PDF Metadata Title property.
subjectstringSet the PDF Metadata Subject property.

Ejemplo:

Solicitud

Sólo parámetros obligatorios:

curl -X POST 'http://localhost:8080/v1/document-services/pdfs/sign' \
  -H 'accept: */*' \
  -H 'Content-Type: multipart/form-data' \
  -F 'pdf_file=@sample.pdf;type=application/pdf' \
  -F 'signature_image_file=@autograph.png;type=image/png' \
  -F 'certificate_file=@sample.pfx;type=application/x-pkcs12' \
  -F 'certificate_password="p4ssw0rd"' \
  -F 'certificate_permissions=1' \
  -F 'sign_specific_page=0' \
  -F 'signature_image_x=100' \
  -F 'signature_image_y=150' \
  -F 'signature_image_w=500' \
  -F 'signature_image_h=400' \
CURL

Todos los parámetros obligatorios y opcionales:

curl -X POST 'http://localhost:8080/v1/document-services/pdfs/sign' \
  -H 'accept: */*' \
  -H 'author: Iron Software 
 IRONSECUREDOC' \
  -H 'title: WEBSITE DEMO 2024' \
  -H 'subject: DEMO EXAMPLE' \
  -H 'Content-Type: multipart/form-data' \
  -F 'pdf_file=@sample.pdf;type=application/pdf' \
  -F 'certificate_file=@sample.pfx;type=application/x-pkcs12' \
  -F 'certificate_password="p4ssw0rd"' \
  -F 'certificate_permissions=0' \
  -F 'user_password="password"' \
  -F 'owner_password="5yug2RT45th32h78"' \
  -F 'save_as_pdfa=false' \
  -F 'save_as_pdfua=false' \
  -F 'sign_specific_page=0' \
  -F 'signature_image_x=100' \
  -F 'signature_image_y=150' \
  -F 'signature_image_w=500' \
  -F 'signature_image_h=400' \
CURL

Respuesta:

  • 200 OK con el archivo PDF certificado adjunto.

[POST] Verificar Firmas

Endpoint: http://localhost:8080/v1/document-services/pdfs/verify-signatures

Descripción: Verifica que la contraseña de usuario y la contraseña del propietario proporcionadas sean válidas para el pdf_file

Parámetros obligatorios del cuerpo de la solicitud

NameData TypeDescription
pdf_fileapplication/pdf fileThe PDF file to encrypt.

Parámetros opcionales del cuerpo de la solicitud

NameData TypeDefaultDescription
user_passwordstringnullUser password for the input PDF. Required if the PDF has a user password to grant read access.
owner_passwordstringnullOwner password for the input PDF. Required if the PDF has an owner password to grant access to make modifications.

Ejemplo:

Solicitud

Sólo parámetros obligatorios:

curl -X POST 'https://api.securedoc.com/v1/document-services/pdfs/verify-signatures' \
  -H 'accept: */*' \
  -H 'Content-Type: multipart/form-data' \
  -F 'pdf_file=@sample.pdf;type=application/pdf' \
YAML

Todos los parámetros obligatorios y opcionales:

curl -X POST 'https://api.securedoc.com/v1/document-services/pdfs/verify-signatures' \
  -H 'accept: */*' \
  -H 'author: Iron Software 
 IRONSECUREDOC' \
  -H 'title: WEBSITE DEMO 2024' \
  -H 'subject: DEMO EXAMPLE' \
  -H 'Content-Type: multipart/form-data' \
  -F 'pdf_file=@sample.pdf;type=application/pdf' \
  -F 'user_password="password"' \
  -F 'owner_password="5yug2RT45th32h78"' \
YAML

Respuesta:

  • 200 OK si hay firmas y todas son Válidas
  • Resultado 400 BadRequest si no hay firmas o al menos una es inválida.

[POST] Cifrar / Añadir contraseña y permisos

Punto final: http://localhost:8080/v1/document-services/pdfs/encrypt

Descripción: Añade una capa de seguridad a un documento PDF encriptándolo con una contraseña de usuario y de propietario. Incluir un archivo PDF como objeto pdf_file en el cuerpo de la solicitud.

Parámetros obligatorios del cuerpo de la solicitud

NombreTipo de datoDescripción
pdf_filearchivo application/pdfEl archivo PDF a encriptar.
allow_extracting_contentboolPermitir la extracción de contenido del archivo PDF.
allow_form_fillingboolPermitir el llenado de formularios en el PDF resultante.
allow_annotationsboolPermitir la adición o modificación de anotaciones en el PDF resultante.
allow_printingboolPermitir la impresión del PDF resultante.
allow_modificationsboolPermitir modificaciones en el PDF resultante.
new_owner_passwordcadenaNueva contraseña de propietario para el PDF de salida. Otorga acceso completo, incluyendo cambiar permisos y contraseñas.

Parámetros opcionales del cuerpo de la solicitud

NameData TypeDefaultDescription
user_passwordstringnullUser password for the input PDF. Required if the PDF has a user password to grant read access.
owner_passwordstringnullOwner password for the input PDF. Required if the PDF has an owner password to grant access to make modifications.
new_user_passwordstringnullNew user password for the output PDF. Grants read access and other specified permissions.
save_as_pdfaboolFalseSave the PDF with PDF/A-3 compliance.
save_as_pdfuaboolFalseSave the PDF with PDF/UA compliance.

Cabeceras opcionales

NameData TypeDescription
authorstringSet the PDF Metadata Author property.
titlestringSet the PDF Metadata Title property.
subjectstringSet the PDF Metadata Subject property.

Ejemplo:

Solicitud

Sólo parámetros obligatorios:

curl -X POST 'http://localhost:8080/v1/document-services/pdfs/encrypt' \
  -H 'accept: */*' \
  -H 'Content-Type: multipart/form-data' \
  -F 'pdf_file=@sample.pdf;type=application/pdf' \
  -F 'allow_extracting_content=true' \
  -F 'allow_form_filling=true' \
  -F 'allow_annotations=true' \
  -F 'allow_printing=true' \
  -F 'allow_modifications=false' \
CURL

Todos los parámetros obligatorios y opcionales:

curl -X POST 'http://localhost:8080/v1/document-services/pdfs/encrypt' \
  -H 'accept: */*' \
  -H 'author: Iron Software 
 IRONSECUREDOC' \
  -H 'title: WEBSITE DEMO 2024' \
  -H 'subject: DEMO EXAMPLE' \
  -H 'Content-Type: multipart/form-data' \
  -F 'pdf_file=@sample.pdf;type=application/pdf' \
  -F 'allow_extracting_content=true' \
  -F 'allow_form_filling=true' \
  -F 'allow_annotations=true' \
  -F 'allow_printing=true' \
  -F 'allow_modifications=false' \
  -F 'user_password="password"' \
  -F 'owner_password="5yug2RT45th32h78"' \
  -F 'new_user_password="p4ssw0rd"' \
  -F 'save_as_pdfa=false' \
  -F 'save_as_pdfua=false' \
CURL

Respuesta:

  • 200 OK con el archivo PDF encriptado adjunto.

[POST] Extraer texto de un documento

Endpoint: http://localhost:8080/v1/document-services/pdfs/extract

Descripción: Extrae texto incrustado en las páginas de un documento. Incluya un archivo PDF como un objeto pdf_file en el cuerpo de la solicitud.

Parámetros obligatorios del cuerpo de la solicitud

NameData TypeDescription
pdf_fileapplication/pdf fileThe PDF file to encrypt.

Parámetros opcionales del cuerpo de la solicitud

NameData TypeDefaultDescription
user_passwordstringnullUser password for the input PDF. Required if the PDF has a user password to grant read access.
owner_passwordstringnullOwner password for the input PDF. Required if the PDF has an owner password to grant access to make modifications.
specific_pagesarray[int]nullOptionally specify pages to apply to. If left empty, all pages will apply.

Ejemplo:

Solicitud

Sólo parámetros obligatorios:

curl -X POST 'http://localhost:8080/v1/document-services/pdfs/extract' \
  -H 'accept: */*' \
  -H 'Content-Type: multipart/form-data' \
  -F 'pdf_file=@sample.pdf;type=application/pdf' \
CURL

Todos los parámetros obligatorios y opcionales:

curl -X POST 'http://localhost:8080/v1/document-services/pdfs/extract' \
  -H 'accept: */*' \
  -H 'author: Iron Software 
 IRONSECUREDOC' \
  -H 'title: WEBSITE DEMO 2024' \
  -H 'subject: DEMO EXAMPLE' \
  -H 'Content-Type: multipart/form-data' \
  -F 'pdf_file=@sample.pdf;type=application/pdf' \
  -F 'user_password="password"' \
  -F 'owner_password="5yug2RT45th32h78"' \
  -F 'specific_pages=0' \
  -F 'specific_pages=1' \
CURL

Respuesta:

  • 200 OK con el texto extraído como respuesta.

[POST] Verificar la Contraseña del Documento

Punto de acceso: http://localhost:8080/v1/document-services/pdfs/verify-password

Descripción: Verifica que la contraseña de usuario y la contraseña del propietario proporcionadas sean válidas para el pdf_file

Parámetros obligatorios del cuerpo de la solicitud

NameData TypeDescription
pdf_fileapplication/pdf fileThe PDF file.
user_passwordstringUser password for the input PDF. Required if the PDF has a user password to grant read access.
owner_passwordstringOwner password for the input PDF.

Ejemplo:

Solicitud

Sólo parámetros obligatorios:

curl -X POST 'https://api.securedoc.com/v1/document-services/pdfs/verify-password' \
  -H 'accept: */*' \
  -H 'author: Iron Software 
 IRONSECUREDOC' \
  -H 'title: WEBSITE DEMO 2024' \
  -H 'subject: DEMO EXAMPLE' \
  -H 'Content-Type: multipart/form-data' \
  -F 'pdf_file=@sample.pdf;type=application/pdf' \
  -F 'user_password="password"' \
  -F 'owner_password="5yug2RT45th32h78"' \
YAML

Respuesta:

  • 200 OK
Chaknith Bin
Ingeniero de software
Chaknith trabaja en IronXL e IronBarcode. Tiene una gran experiencia en C# y .NET, ayudando a mejorar el software y a apoyar a los clientes. Sus conocimientos de las interacciones con los usuarios contribuyen a mejorar los productos, la documentación y la experiencia general.