Add Activepieces integration for workflow automation
- Add Activepieces fork with SmoothSchedule custom piece - Create integrations app with Activepieces service layer - Add embed token endpoint for iframe integration - Create Automations page with embedded workflow builder - Add sidebar visibility fix for embed mode - Add list inactive customers endpoint to Public API - Include SmoothSchedule triggers: event created/updated/cancelled - Include SmoothSchedule actions: create/update/cancel events, list resources/services/customers 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,136 @@
|
||||
{
|
||||
"Automate PDF conversion, editing, extraction": "PDF-Konvertierung automatisieren, bearbeiten, extrahieren",
|
||||
"To get your PDF.co API key please [click here to create your account](https://app.pdf.co/).": "Um Ihren PDF.co API-Schlüssel zu erhalten, bitte [klicken Sie hier, um Ihr Konto zu erstellen](https://app.pdf.co/).",
|
||||
"Add Barcode to PDF": "Barcode als PDF hinzufügen",
|
||||
"Add Image to PDF": "Bild als PDF hinzufügen",
|
||||
"Add Text to PDF": "Text zu PDF hinzufügen",
|
||||
"Convert HTML to PDF": "HTML in PDF konvertieren",
|
||||
"Convert PDF to JSON/CSV/XML": "PDF in JSON/CSV/XML konvertieren",
|
||||
"Extract Tables from PDF (using Template)": "Tabellen aus PDF extrahieren (mit Vorlage)",
|
||||
"Extract Plain Text from PDF": "Klartext aus PDF extrahieren",
|
||||
"Search and Replace Text in PDF": "Text in PDF suchen und ersetzen",
|
||||
"Generate a barcode image and add it to a specific location on a PDF.": "Generieren Sie ein Barcode-Bild und fügen Sie es an einen bestimmten Ort in einer PDF-Datei hinzu.",
|
||||
"Add image to a PDF document.": "Bild zu einem PDF-Dokument hinzufügen.",
|
||||
"Adds text to PDF.": "Fügt Text zu PDF hinzu.",
|
||||
"Convert HTML code into a downloadable PDF document.": "Konvertieren Sie HTML-Code in ein herunterladbares PDF-Dokument.",
|
||||
"Convert PDF content into structured formats (JSON, CSV, or XML).": "Konvertieren Sie PDF-Inhalte in strukturierte Formate (JSON, CSV oder XML).",
|
||||
"Extracts table data from a PDF using a predefined PDF.co Document Parser template.": "Extrahiert Tabellendaten aus einer PDF-Datei mit einer vordefinierten Vorlage PDF.co Document Parser.",
|
||||
"Extracts plain text content from a PDF document.": "Extrahiert Klartextinhalte aus einem PDF-Dokument.",
|
||||
"Search for specific text or patterns in a PDF and replace it with new text.": "Suchen Sie nach spezifischen Texten oder Mustern in einer PDF-Datei und ersetzen Sie sie durch neuen Text.",
|
||||
"Source PDF URL": "Quell-PDF-URL",
|
||||
"Barcode Value": "Barcode-Wert",
|
||||
"Barcode Type": "Barcode-Typ",
|
||||
"X Coordinate": "X-Koordinate",
|
||||
"Y Coordinate": "Y-Koordinate",
|
||||
"Width (optional)": "Breite (optional)",
|
||||
"Height (optional)": "Höhe (optional)",
|
||||
"Pages": "Seiten",
|
||||
"File Name": "Dateiname",
|
||||
"Expiration Time in Minutes": "Ablaufzeit in Minuten",
|
||||
"Source PDF Password": "Quelle PDF Passwort",
|
||||
"HTTP Username": "HTTP Benutzername",
|
||||
"HTTP Password": "HTTP Passwort",
|
||||
"Image URL": "Bild-URL",
|
||||
"Width": "Width",
|
||||
"Height": "Höhe",
|
||||
"Target Pages": "Zielseiten",
|
||||
"Text to Add": "Text hinzufügen",
|
||||
"Font Size": "Font Size",
|
||||
"Color": "Farbe",
|
||||
"Bold Font ?": "Bold Font ?",
|
||||
"Stikeout Font ?": "Stikeout Font ?",
|
||||
"Underline Font ?": "Underline Font ?",
|
||||
"Font Name": "Font Name",
|
||||
"Text Box Height": "Textfeld Höhe",
|
||||
"Text Box Width": "Textkastenbreite",
|
||||
"Text Box Alignment": "Textfeld Ausrichtung",
|
||||
"HTML Content": "HTML-Inhalt",
|
||||
"Output File Name": "Dateiname ausgeben",
|
||||
"Margins": "Ränder",
|
||||
"Paper Size": "Papiergröße",
|
||||
"Orientation": "Ausrichtung",
|
||||
"Print Background ?": "Hintergrund drucken ?",
|
||||
"Media Type": "Medientyp",
|
||||
"Header HTML": "Header-HTML",
|
||||
"Footer HTML": "HTML Fußzeile",
|
||||
"Do not wait till full page load ?": "Warten Sie nicht bis zum vollen Laden der Seite?",
|
||||
"Output Link Expiration (minutes)": "Ausgabelink Ablauf (Minuten)",
|
||||
"Profiles": "Profiles",
|
||||
"Output Format": "Ausgabeformat",
|
||||
"OCR Language": "OCR-Sprache",
|
||||
"Template ID": "Template-ID",
|
||||
"PDF URL": "PDF-URL",
|
||||
"Text to Locate": "Zu suchender Text",
|
||||
"Replacement Text": "Ersetzungstext",
|
||||
"Case Sensitive": "Groß-/Kleinschreibung",
|
||||
"Use Regular Expressions ?": "Reguläre Ausdrücke verwenden?",
|
||||
"URL of the PDF file to add the barcode to.": "URL der PDF-Datei, zu der der Barcode hinzugefügt wird.",
|
||||
"The text or data to encode in the barcode.": "Der Text oder die zu kodierenden Daten im Barcode.",
|
||||
"Select the type of barcode to generate.": "Wählen Sie den Typ des zu generierenden Barcodes.",
|
||||
"X coordinate (from top-left corner) to place the barcode.": "X-Koordinate (von oben links) um den Barcode zu platzieren.",
|
||||
"Y coordinate (from top-left corner) to place the barcode.": "Y-Koordinate (von oben links) um den Barcode zu platzieren.",
|
||||
"Optional width for the barcode image on the PDF (in points). Aspect ratio is kept by default.": "Optionale Breite für das Barcode-Bild im PDF (in Punkten). Das Seitenverhältnis wird standardmäßig beibehalten.",
|
||||
"Optional height for the barcode image on the PDF (in points). Aspect ratio is kept by default.": "Optionale Höhe für das Barcode-Bild im PDF (in Punkten). Das Seitenverhältnis wird standardmäßig beibehalten.",
|
||||
"Comma-separated page numbers or ranges to add the barcode (e.g., \"0,2,5-10\"). Leave empty for all pages.": "Durch Komma getrennte Seitennummern oder Bereiche, um den Barcode hinzuzufügen (z.B. \"0,2,5-10\"). Leer lassen für alle Seiten.",
|
||||
"Desired name for the output PDF file (e.g., \"result.pdf\").": "Gewünschter Name für die Ausgabe-PDF-Datei (z.B. \"result.pdf\").",
|
||||
"Set the expiration time for the output link in minutes (default is 60 i.e 60 minutes or 1 hour).": "Legen Sie die Ablaufzeit für den Ausgabelink in Minuten fest (Standardmäßig 60 Minuten oder 1 Stunde).",
|
||||
"Password if the source PDF is protected.": "Passwort wenn die Quell-PDF geschützt ist.",
|
||||
"HTTP auth username if required to access source url.": "HTTP auth Benutzername falls erforderlich, um auf Quell-URL zuzugreifen.",
|
||||
"HTTP auth password if required to access source url.": "HTTP Authentifizierungskennwort falls erforderlich, um auf Quell-URL zuzugreifen.",
|
||||
"URL of the PDF file to modify.": "URL der zu ändernden PDF-Datei.",
|
||||
"X coordinate (from top-left corner) to place the image.": "X-Koordinate (von oben links) um das Bild zu platzieren.",
|
||||
"Y coordinate (from top-left corner) to place the image.": "Y-Koordinate (von oben links) um das Bild zu platzieren.",
|
||||
"Optional width for the image on the PDF (in points). Aspect ratio is kept by default.": "Optionale Breite für das Bild im PDF (in Punkten). Das Seitenverhältnis wird standardmäßig beibehalten.",
|
||||
"Optional height for the image on the PDF (in points). Aspect ratio is kept by default.": "Optionale Höhe für das Bild im PDF (in Punkten). Das Seitenverhältnis wird standardmäßig beibehalten.",
|
||||
"Specify page indices as comma-separated values or ranges to process (e.g. \"0, 1, 2-\" or \"1, 2, 3-7\").": "Geben Sie Seitenindizes als kommaseparierte Werte oder zu verarbeitende Bereiche an (z.B. \"0, 1, 2-\" oder \"1, 2, 3-7\").",
|
||||
"The HTML code to convert to PDF.": "Der HTML-Code zum Konvertieren in PDF.",
|
||||
"CSS style margins (e.g., \"10px\", \"5mm 5mm 5mm 5mm\" for top, right, bottom, left).": "CSS-Ränder (z.B. \"10px\", \"5mm 5mm 5mm 5mm\" für oben, rechts, unten, links).",
|
||||
"Select a paper size. For custom sizes, input the value directly (e.g., '200mm 300mm') if your desired size isn't listed. Refer to PDF.co docs.": "Wählen Sie eine Papiergröße. Geben Sie für benutzerdefinierte Größen den Wert direkt ein (z.B. '200mm 300mm'), falls Ihre gewünschte Größe nicht aufgeführt ist. Lesen Sie PDF.co docs.",
|
||||
"Set page orientation.": "Seitenausrichtung festlegen.",
|
||||
"Set to true to print background graphics and colors (default is true).": "Auf true setzen um Hintergrundgrafiken und Farben zu drucken (Standard ist wahr).",
|
||||
"CSS media type to emulate.": "Zu emulierender CSS-Medientyp.",
|
||||
"HTML content for the page header.": "HTML-Inhalt für den Seitenheader.",
|
||||
"HTML content for the page footer.": "HTML-Inhalt für die Fußzeile der Seite.",
|
||||
"Set the expiration time for the output link in minutes (default is 60).": "Legen Sie die Ablaufzeit für den Ausgabelink in Minuten fest (Standard ist 60).",
|
||||
"JSON object for additional configurations.": "JSON-Objekt für zusätzliche Konfigurationen.",
|
||||
"URL of the PDF file to convert.": "URL der zu konvertierenden PDF-Datei.",
|
||||
"Select the desired structured output format.": "Wählen Sie das gewünschte strukturierte Ausgabeformat aus.",
|
||||
"Comma-separated page numbers or ranges (e.g., \"0,2,5-10\"). Leave empty for all pages.": "Durch Komma getrennte Seitenzahlen oder Bereiche (z.B. \"0,2,5-10\"). Leer lassen für alle Seiten.",
|
||||
"Language for OCR if processing scanned documents (e.g., \"eng\", \"deu\", \"eng+deu\"). See PDF.co docs for list.": "Language for OCR if processing scanned documents (z.B. \"ger\", \"deu\", \"ger+deu\"). Siehe PDF.co docs for list.",
|
||||
"URL of the PDF file to extract tables from.": "URL der PDF-Datei, aus der Tabellen extrahiert werden.",
|
||||
"The ID of your Document Parser template (created in PDF.co dashboard) designed to extract the table(s).": "Die ID Ihres Document Parser-Templates (erstellt in PDF.co Dashboard), um die Tabellen zu extrahieren.",
|
||||
"Comma-separated page numbers or ranges (e.g., \"0,2,5-10\"). Overrides template settings if provided.": "Durch Kommas getrennte Seitennummern oder Bereiche (z.B. \"0,2,5-10\"). Überschreibt Template-Einstellungen, wenn angegeben.",
|
||||
"URL of the PDF file to extract text from.": "URL der PDF-Datei, aus der Text extrahiert wird.",
|
||||
"URL to the source PDF file.": "URL zur Quell-PDF-Datei.",
|
||||
"Set to true for case-sensitive search, false otherwise.": "Setzen Sie auf true für die Groß-/Kleinschreibung, sonst falsch.",
|
||||
"Set to true to use regular expressions for search texts.": "Auf true setzen, um reguläre Ausdrücke für die Suche von Texten zu verwenden.",
|
||||
"QR Code (Default)": "QR Code (Default)",
|
||||
"DataMatrix": "DataMatrix",
|
||||
"Code 128": "Code 128",
|
||||
"Code 39": "Code 39",
|
||||
"PDF417": "PDF417",
|
||||
"EAN-13": "EAN-13",
|
||||
"UPC-A": "UPC-A",
|
||||
"left": "links",
|
||||
"right": "rechts",
|
||||
"center": "mitte",
|
||||
"A4 (Default)": "A4 (Standard)",
|
||||
"Letter": "Brief",
|
||||
"Legal": "Rechtlich",
|
||||
"Tabloid": "Tabloid",
|
||||
"Ledger": "Ledger",
|
||||
"A0": "A0",
|
||||
"A1": "A1",
|
||||
"A2": "A2",
|
||||
"A3": "A3",
|
||||
"A5": "A5",
|
||||
"A6": "A6",
|
||||
"Portrait (Default)": "Hochformat (Standard)",
|
||||
"Landscape": "Querformat",
|
||||
"print (Default)": "print (Default)",
|
||||
"screen": "bildschirm",
|
||||
"none": "keine",
|
||||
"JSON": "JSON",
|
||||
"CSV": "CSV",
|
||||
"XML": "XML"
|
||||
}
|
||||
@@ -0,0 +1,136 @@
|
||||
{
|
||||
"Automate PDF conversion, editing, extraction": "Automatizar conversión PDF, edición, extracción",
|
||||
"To get your PDF.co API key please [click here to create your account](https://app.pdf.co/).": "Para obtener tu clave API PDF.co por favor [haz clic aquí para crear tu cuenta](https://app.pdf.co/).",
|
||||
"Add Barcode to PDF": "Añadir código de barras a PDF",
|
||||
"Add Image to PDF": "Añadir imagen a PDF",
|
||||
"Add Text to PDF": "Añadir texto a PDF",
|
||||
"Convert HTML to PDF": "Convertir HTML a PDF",
|
||||
"Convert PDF to JSON/CSV/XML": "Convertir PDF a JSON/CSV/XML",
|
||||
"Extract Tables from PDF (using Template)": "Extraer Tablas de PDF (usando Plantilla)",
|
||||
"Extract Plain Text from PDF": "Extraer texto plano de PDF",
|
||||
"Search and Replace Text in PDF": "Buscar y reemplazar texto en PDF",
|
||||
"Generate a barcode image and add it to a specific location on a PDF.": "Generar una imagen de código de barras y añadirla a una ubicación específica en un PDF.",
|
||||
"Add image to a PDF document.": "Añadir imagen a un documento PDF.",
|
||||
"Adds text to PDF.": "Añade texto a PDF.",
|
||||
"Convert HTML code into a downloadable PDF document.": "Convierte código HTML en un documento PDF descargable.",
|
||||
"Convert PDF content into structured formats (JSON, CSV, or XML).": "Convierte contenido PDF en formatos estructurados (JSON, CSV, o XML).",
|
||||
"Extracts table data from a PDF using a predefined PDF.co Document Parser template.": "Extrae datos de tabla de un PDF usando una plantilla predefinida PDF.co Document Anser template.",
|
||||
"Extracts plain text content from a PDF document.": "Extrae contenido de texto plano de un documento PDF.",
|
||||
"Search for specific text or patterns in a PDF and replace it with new text.": "Busca un texto o patrones específicos en un PDF y reemplázalo con un texto nuevo.",
|
||||
"Source PDF URL": "URL fuente PDF",
|
||||
"Barcode Value": "Valor del código de barras",
|
||||
"Barcode Type": "Tipo de código de barras",
|
||||
"X Coordinate": "Coordenada X",
|
||||
"Y Coordinate": "Coordenada Y",
|
||||
"Width (optional)": "Ancho (opcional)",
|
||||
"Height (optional)": "Altura (opcional)",
|
||||
"Pages": "Páginas",
|
||||
"File Name": "Nombre del archivo",
|
||||
"Expiration Time in Minutes": "Tiempo de caducidad en minutos",
|
||||
"Source PDF Password": "Contraseña de origen PDF",
|
||||
"HTTP Username": "Usuario HTTP",
|
||||
"HTTP Password": "Contraseña HTTP",
|
||||
"Image URL": "URL de imagen",
|
||||
"Width": "Width",
|
||||
"Height": "Altura",
|
||||
"Target Pages": "Páginas de destino",
|
||||
"Text to Add": "Texto a añadir",
|
||||
"Font Size": "Font Size",
|
||||
"Color": "Color",
|
||||
"Bold Font ?": "Bold Font ?",
|
||||
"Stikeout Font ?": "Stikeout Font ?",
|
||||
"Underline Font ?": "Underline Font ?",
|
||||
"Font Name": "Font Name",
|
||||
"Text Box Height": "Altura del cuadro de texto",
|
||||
"Text Box Width": "Ancho de caja de texto",
|
||||
"Text Box Alignment": "Alineación de caja de texto",
|
||||
"HTML Content": "Contenido HTML",
|
||||
"Output File Name": "Nombre del archivo de salida",
|
||||
"Margins": "Márgenes",
|
||||
"Paper Size": "Tamaño del papel",
|
||||
"Orientation": "Orientación",
|
||||
"Print Background ?": "¿Imprimir fondo?",
|
||||
"Media Type": "Tipo de medio",
|
||||
"Header HTML": "Encabezado HTML",
|
||||
"Footer HTML": "HTML del pie",
|
||||
"Do not wait till full page load ?": "¿No esperar hasta que se carga la página completa?",
|
||||
"Output Link Expiration (minutes)": "Caducidad del enlace de salida (minutos)",
|
||||
"Profiles": "Profiles",
|
||||
"Output Format": "Formato de salida",
|
||||
"OCR Language": "Idioma OCR",
|
||||
"Template ID": "ID de plantilla",
|
||||
"PDF URL": "URL PDF",
|
||||
"Text to Locate": "Texto a localizar",
|
||||
"Replacement Text": "Texto de reemplazo",
|
||||
"Case Sensitive": "Sensitivo mayúsculas",
|
||||
"Use Regular Expressions ?": "¿Usar expresiones regulares?",
|
||||
"URL of the PDF file to add the barcode to.": "URL del archivo PDF al que agregar el código de barras.",
|
||||
"The text or data to encode in the barcode.": "El texto o datos a codificar en el código de barras.",
|
||||
"Select the type of barcode to generate.": "Seleccione el tipo de código de barras a generar.",
|
||||
"X coordinate (from top-left corner) to place the barcode.": "Coordenada X (desde la esquina superior izquierda) para colocar el código de barras.",
|
||||
"Y coordinate (from top-left corner) to place the barcode.": "Coordenada Y (de la esquina superior izquierda) para colocar el código de barras.",
|
||||
"Optional width for the barcode image on the PDF (in points). Aspect ratio is kept by default.": "Ancho opcional para la imagen de código de barras en el PDF (en puntos). La proporción de aspecto se mantiene por defecto.",
|
||||
"Optional height for the barcode image on the PDF (in points). Aspect ratio is kept by default.": "Altura opcional para la imagen de código de barras en el PDF (en puntos). La proporción de aspecto se mantiene por defecto.",
|
||||
"Comma-separated page numbers or ranges to add the barcode (e.g., \"0,2,5-10\"). Leave empty for all pages.": "Números o rangos separados por comas para añadir el código de barras (por ejemplo, \"0,2,5-10\"). Dejar en blanco para todas las páginas.",
|
||||
"Desired name for the output PDF file (e.g., \"result.pdf\").": "Nombre deseado para el archivo PDF de salida (por ej., \"result.pdf\").",
|
||||
"Set the expiration time for the output link in minutes (default is 60 i.e 60 minutes or 1 hour).": "Establezca el tiempo de caducidad del enlace de salida en minutos (el valor por defecto es 60 es 60 minutos o 1 hora).",
|
||||
"Password if the source PDF is protected.": "Contraseña si el PDF fuente está protegido.",
|
||||
"HTTP auth username if required to access source url.": "Nombre de usuario de autenticación HTTP si es necesario para acceder a la url fuente.",
|
||||
"HTTP auth password if required to access source url.": "Contraseña de autenticación HTTP si es necesario para acceder a la url fuente.",
|
||||
"URL of the PDF file to modify.": "URL del archivo PDF para modificar.",
|
||||
"X coordinate (from top-left corner) to place the image.": "Coordenada X (desde la esquina superior izquierda) para colocar la imagen.",
|
||||
"Y coordinate (from top-left corner) to place the image.": "Coordenada Y (desde la esquina superior izquierda) para colocar la imagen.",
|
||||
"Optional width for the image on the PDF (in points). Aspect ratio is kept by default.": "Ancho opcional para la imagen en el PDF (en puntos). La proporción de aspecto se mantiene por defecto.",
|
||||
"Optional height for the image on the PDF (in points). Aspect ratio is kept by default.": "Altura opcional de la imagen en el PDF (en puntos). La proporción de aspecto se mantiene por defecto.",
|
||||
"Specify page indices as comma-separated values or ranges to process (e.g. \"0, 1, 2-\" or \"1, 2, 3-7\").": "Especifique los índices de la página como valores separados por comas o rangos a procesar (por ejemplo, \"0, 1, 2-\" o \"1, 2, 3-7\").",
|
||||
"The HTML code to convert to PDF.": "El código HTML a convertir a PDF.",
|
||||
"CSS style margins (e.g., \"10px\", \"5mm 5mm 5mm 5mm\" for top, right, bottom, left).": "márgenes de estilo CSS (por ejemplo, \"10px\", \"5mm 5mm 5mm 5mm\" para arriba, derecha, abajo, izquierda).",
|
||||
"Select a paper size. For custom sizes, input the value directly (e.g., '200mm 300mm') if your desired size isn't listed. Refer to PDF.co docs.": "Seleccione un tamaño de papel. Para tamaños personalizados, introduzca el valor directamente (por ejemplo, '200mm 300mm') si el tamaño deseado no aparece en la lista. Consulte los documentos PDF.co.",
|
||||
"Set page orientation.": "Establecer orientación de página.",
|
||||
"Set to true to print background graphics and colors (default is true).": "Establecer en true para imprimir gráficos de fondo y colores (el valor por defecto es verdadero).",
|
||||
"CSS media type to emulate.": "CSS tipo de medio para emular.",
|
||||
"HTML content for the page header.": "Contenido HTML para el encabezado de la página.",
|
||||
"HTML content for the page footer.": "Contenido HTML para el pie de página de página.",
|
||||
"Set the expiration time for the output link in minutes (default is 60).": "Ajuste el tiempo de caducidad del enlace de salida en minutos (el valor predeterminado es 60).",
|
||||
"JSON object for additional configurations.": "Objeto JSON para configuraciones adicionales.",
|
||||
"URL of the PDF file to convert.": "URL del archivo PDF a convertir.",
|
||||
"Select the desired structured output format.": "Seleccione el formato de salida estructurado deseado.",
|
||||
"Comma-separated page numbers or ranges (e.g., \"0,2,5-10\"). Leave empty for all pages.": "Separar números o rangos de página separados por comas (por ejemplo, \"0,2,5-10\"). Dejar en blanco para todas las páginas.",
|
||||
"Language for OCR if processing scanned documents (e.g., \"eng\", \"deu\", \"eng+deu\"). See PDF.co docs for list.": "Language for OCR if processing scanned documents (e.g., \"eng\", \"deu\", \"eng+deu\").",
|
||||
"URL of the PDF file to extract tables from.": "URL del archivo PDF del que extraer tablas.",
|
||||
"The ID of your Document Parser template (created in PDF.co dashboard) designed to extract the table(s).": "El ID de la plantilla de Analizador de Documentos (creada en el dashboard PDF.co) diseñada para extraer la(s) tabla(s).",
|
||||
"Comma-separated page numbers or ranges (e.g., \"0,2,5-10\"). Overrides template settings if provided.": "Separados por comas números de página o rangos (por ejemplo, \"0,2,5-10\"). Reemplaza la configuración de la plantilla si se proporciona.",
|
||||
"URL of the PDF file to extract text from.": "URL del archivo PDF del que extraer texto.",
|
||||
"URL to the source PDF file.": "URL al archivo PDF de origen.",
|
||||
"Set to true for case-sensitive search, false otherwise.": "Establecer como verdadero para búsquedas sensibles a mayúsculas, de lo contrario falsas.",
|
||||
"Set to true to use regular expressions for search texts.": "Establecer en true para usar expresiones regulares para textos de búsqueda.",
|
||||
"QR Code (Default)": "QR Code (Default)",
|
||||
"DataMatrix": "Cuadro de datos",
|
||||
"Code 128": "Código 128",
|
||||
"Code 39": "Código 39",
|
||||
"PDF417": "PDF417",
|
||||
"EAN-13": "EAN-13",
|
||||
"UPC-A": "UPC-A",
|
||||
"left": "queda",
|
||||
"right": "derecha",
|
||||
"center": "centro",
|
||||
"A4 (Default)": "A4 (por defecto)",
|
||||
"Letter": "Letra",
|
||||
"Legal": "Legal",
|
||||
"Tabloid": "Tabloide",
|
||||
"Ledger": "Libro",
|
||||
"A0": "A0",
|
||||
"A1": "R1",
|
||||
"A2": "R2",
|
||||
"A3": "R3",
|
||||
"A5": "R5",
|
||||
"A6": "R6",
|
||||
"Portrait (Default)": "Retrato (por defecto)",
|
||||
"Landscape": "Paisaje",
|
||||
"print (Default)": "print (Default)",
|
||||
"screen": "pantalla",
|
||||
"none": "ninguna",
|
||||
"JSON": "JSON",
|
||||
"CSV": "CSV",
|
||||
"XML": "XML"
|
||||
}
|
||||
@@ -0,0 +1,136 @@
|
||||
{
|
||||
"Automate PDF conversion, editing, extraction": "Automatiser la conversion de PDF, l'édition, l'extraction",
|
||||
"To get your PDF.co API key please [click here to create your account](https://app.pdf.co/).": "Pour obtenir votre clé API PDF.co, veuillez [cliquer ici pour créer votre compte](https://app.pdf.co/).",
|
||||
"Add Barcode to PDF": "Ajouter le code-barres au PDF",
|
||||
"Add Image to PDF": "Ajouter une image au PDF",
|
||||
"Add Text to PDF": "Ajouter du texte au PDF",
|
||||
"Convert HTML to PDF": "Convertir le HTML en PDF",
|
||||
"Convert PDF to JSON/CSV/XML": "Convertir le PDF en JSON/CSV/XML",
|
||||
"Extract Tables from PDF (using Template)": "Extraire les tables du PDF (à l'aide d'un modèle)",
|
||||
"Extract Plain Text from PDF": "Extraire le texte brut du PDF",
|
||||
"Search and Replace Text in PDF": "Rechercher et remplacer le texte en PDF",
|
||||
"Generate a barcode image and add it to a specific location on a PDF.": "Générer une image de code-barres et l'ajouter à un emplacement spécifique sur un PDF.",
|
||||
"Add image to a PDF document.": "Ajouter une image à un document PDF.",
|
||||
"Adds text to PDF.": "Ajoute du texte au PDF.",
|
||||
"Convert HTML code into a downloadable PDF document.": "Convertissez le code HTML en un document PDF téléchargeable.",
|
||||
"Convert PDF content into structured formats (JSON, CSV, or XML).": "Convertissez le contenu PDF en formats structurés (JSON, CSV ou XML).",
|
||||
"Extracts table data from a PDF using a predefined PDF.co Document Parser template.": "Extrait les données de la table d'un PDF à l'aide d'un modèle PDF.co analyseur de documents prédéfini.",
|
||||
"Extracts plain text content from a PDF document.": "Extrait le contenu en texte brut d'un document PDF.",
|
||||
"Search for specific text or patterns in a PDF and replace it with new text.": "Recherchez du texte ou des motifs spécifiques dans un PDF et remplacez-les par un nouveau texte.",
|
||||
"Source PDF URL": "URL du PDF source",
|
||||
"Barcode Value": "Valeur du code-barres",
|
||||
"Barcode Type": "Type de code-barres",
|
||||
"X Coordinate": "Coordonnées X",
|
||||
"Y Coordinate": "Coordonnées Y",
|
||||
"Width (optional)": "Largeur (optionnel)",
|
||||
"Height (optional)": "Hauteur (optionnel)",
|
||||
"Pages": "Pages",
|
||||
"File Name": "Nom du fichier",
|
||||
"Expiration Time in Minutes": "Temps d'expiration en minutes",
|
||||
"Source PDF Password": "Mot de passe source PDF",
|
||||
"HTTP Username": "Nom d'utilisateur HTTP",
|
||||
"HTTP Password": "Mot de passe HTTP",
|
||||
"Image URL": "URL de l'image",
|
||||
"Width": "Width",
|
||||
"Height": "Hauteur",
|
||||
"Target Pages": "Pages Cibles",
|
||||
"Text to Add": "Texte à ajouter",
|
||||
"Font Size": "Font Size",
|
||||
"Color": "Couleur",
|
||||
"Bold Font ?": "Bold Font ?",
|
||||
"Stikeout Font ?": "Stikeout Font ?",
|
||||
"Underline Font ?": "Underline Font ?",
|
||||
"Font Name": "Font Name",
|
||||
"Text Box Height": "Hauteur de la zone de texte",
|
||||
"Text Box Width": "Largeur de la zone de texte",
|
||||
"Text Box Alignment": "Alignement de la zone de texte",
|
||||
"HTML Content": "Contenu HTML",
|
||||
"Output File Name": "Nom du fichier de sortie",
|
||||
"Margins": "Marges",
|
||||
"Paper Size": "Taille du papier",
|
||||
"Orientation": "Orientation",
|
||||
"Print Background ?": "Imprimer l'arrière-plan ?",
|
||||
"Media Type": "Type de média",
|
||||
"Header HTML": "En-tête HTML",
|
||||
"Footer HTML": "Pied de page HTML",
|
||||
"Do not wait till full page load ?": "N'attendez pas le chargement complet de la page ?",
|
||||
"Output Link Expiration (minutes)": "Expiration du lien de sortie (minutes)",
|
||||
"Profiles": "Profiles",
|
||||
"Output Format": "Format de sortie",
|
||||
"OCR Language": "Langue de la ROC",
|
||||
"Template ID": "ID du modèle",
|
||||
"PDF URL": "URL PDF",
|
||||
"Text to Locate": "Texte à localiser",
|
||||
"Replacement Text": "Texte de remplacement",
|
||||
"Case Sensitive": "Sensible à la casse",
|
||||
"Use Regular Expressions ?": "Utiliser des expressions régulières ?",
|
||||
"URL of the PDF file to add the barcode to.": "URL du fichier PDF auquel ajouter le code-barre.",
|
||||
"The text or data to encode in the barcode.": "Le texte ou les données à encoder dans le code-barres.",
|
||||
"Select the type of barcode to generate.": "Sélectionnez le type de code-barres à générer.",
|
||||
"X coordinate (from top-left corner) to place the barcode.": "Coordonnées X (en haut à gauche) pour placer le code-barres.",
|
||||
"Y coordinate (from top-left corner) to place the barcode.": "Coordonnée Y (en haut à gauche) pour placer le code-barres.",
|
||||
"Optional width for the barcode image on the PDF (in points). Aspect ratio is kept by default.": "Largeur optionnelle de l'image de code-barres du PDF (en points). Le ratio d'aspect est conservé par défaut.",
|
||||
"Optional height for the barcode image on the PDF (in points). Aspect ratio is kept by default.": "Hauteur optionnelle de l'image de code-barres sur le PDF (en points). Le ratio d'aspect est conservé par défaut.",
|
||||
"Comma-separated page numbers or ranges to add the barcode (e.g., \"0,2,5-10\"). Leave empty for all pages.": "Les numéros de pages ou les plages séparées par des virgules pour ajouter le code-barres (par exemple, \"0,2,5-10\"). Laisser vide pour toutes les pages.",
|
||||
"Desired name for the output PDF file (e.g., \"result.pdf\").": "Nom souhaité pour le fichier PDF de sortie (par exemple, \"result.pdf\").",
|
||||
"Set the expiration time for the output link in minutes (default is 60 i.e 60 minutes or 1 hour).": "Définissez le délai d'expiration du lien de sortie en minutes (60 minutes par défaut ou 1 heure).",
|
||||
"Password if the source PDF is protected.": "Mot de passe si le PDF source est protégé.",
|
||||
"HTTP auth username if required to access source url.": "Nom d'utilisateur d'authentification HTTP si nécessaire pour accéder à l'URL source.",
|
||||
"HTTP auth password if required to access source url.": "Mot de passe d'authentification HTTP si nécessaire pour accéder à l'URL source.",
|
||||
"URL of the PDF file to modify.": "URL du fichier PDF à modifier.",
|
||||
"X coordinate (from top-left corner) to place the image.": "Coordonnées X (en haut à gauche) pour placer l'image.",
|
||||
"Y coordinate (from top-left corner) to place the image.": "Coordonnée Y (en haut à gauche) pour placer l'image.",
|
||||
"Optional width for the image on the PDF (in points). Aspect ratio is kept by default.": "Largeur optionnelle de l'image sur le PDF (en points). Le ratio d'aspect est conservé par défaut.",
|
||||
"Optional height for the image on the PDF (in points). Aspect ratio is kept by default.": "Hauteur optionnelle de l'image sur le PDF (en points). Le ratio d'aspect est conservé par défaut.",
|
||||
"Specify page indices as comma-separated values or ranges to process (e.g. \"0, 1, 2-\" or \"1, 2, 3-7\").": "Spécifiez les indices de page comme des valeurs séparées par des virgules ou des plages à traiter (par exemple \"0, 1, 2-\" ou \"1, 2, 3-7\").",
|
||||
"The HTML code to convert to PDF.": "Le code HTML à convertir en PDF.",
|
||||
"CSS style margins (e.g., \"10px\", \"5mm 5mm 5mm 5mm\" for top, right, bottom, left).": "Les marges de style CSS (par exemple, \"10px\", \"5mm 5mm 5mm 5mm\" pour le haut, à droite, en bas, à gauche).",
|
||||
"Select a paper size. For custom sizes, input the value directly (e.g., '200mm 300mm') if your desired size isn't listed. Refer to PDF.co docs.": "Sélectionnez une taille de papier. Pour les tailles personnalisées, saisissez la valeur directement (par exemple, '200mm 300mm') si la taille désirée n'est pas listée. Reportez-vous à la documentation PDF.co.",
|
||||
"Set page orientation.": "Définir l'orientation de la page.",
|
||||
"Set to true to print background graphics and colors (default is true).": "Définir à true pour imprimer les graphiques de fond et les couleurs (par défaut est vrai).",
|
||||
"CSS media type to emulate.": "Type de média CSS à émuler.",
|
||||
"HTML content for the page header.": "Contenu HTML pour l'en-tête de la page.",
|
||||
"HTML content for the page footer.": "Contenu HTML pour le pied de page.",
|
||||
"Set the expiration time for the output link in minutes (default is 60).": "Définissez le délai d'expiration du lien de sortie en minutes (60 par défaut).",
|
||||
"JSON object for additional configurations.": "Objet JSON pour des configurations supplémentaires.",
|
||||
"URL of the PDF file to convert.": "URL du fichier PDF à convertir.",
|
||||
"Select the desired structured output format.": "Sélectionnez le format de sortie structuré souhaité.",
|
||||
"Comma-separated page numbers or ranges (e.g., \"0,2,5-10\"). Leave empty for all pages.": "Séparés par des virgules par des numéros de page ou des plages (par exemple, \"0,2,5-10\"). Laisser vide pour toutes les pages.",
|
||||
"Language for OCR if processing scanned documents (e.g., \"eng\", \"deu\", \"eng+deu\"). See PDF.co docs for list.": "Reportez-vous à la documentation PDF.co pour plus de détails.",
|
||||
"URL of the PDF file to extract tables from.": "URL du fichier PDF à partir duquel extraire les tables.",
|
||||
"The ID of your Document Parser template (created in PDF.co dashboard) designed to extract the table(s).": "L'ID de votre modèle d'analyseur de documents (créé dans le tableau de bord PDF.co) conçu pour extraire le(s) tableau(s).",
|
||||
"Comma-separated page numbers or ranges (e.g., \"0,2,5-10\"). Overrides template settings if provided.": "Les numéros de pages ou les plages séparées par des virgules (par exemple, \"0,2,5-10\"). Remplace les paramètres du modèle si fourni.",
|
||||
"URL of the PDF file to extract text from.": "URL du fichier PDF à partir duquel extraire du texte.",
|
||||
"URL to the source PDF file.": "URL vers le fichier PDF source.",
|
||||
"Set to true for case-sensitive search, false otherwise.": "Réglez sur true pour la recherche sensible à la casse, false sinon.",
|
||||
"Set to true to use regular expressions for search texts.": "Définir à vrai pour utiliser des expressions régulières pour les textes de recherche.",
|
||||
"QR Code (Default)": "QR Code (Default)",
|
||||
"DataMatrix": "Matrice de données",
|
||||
"Code 128": "Code 128",
|
||||
"Code 39": "Code 39",
|
||||
"PDF417": "PDF417",
|
||||
"EAN-13": "EAN-13",
|
||||
"UPC-A": "UPC-A",
|
||||
"left": "gauche",
|
||||
"right": "à droite",
|
||||
"center": "au centre",
|
||||
"A4 (Default)": "A4 (par défaut)",
|
||||
"Letter": "Lettre",
|
||||
"Legal": "Mentions légales",
|
||||
"Tabloid": "Tabloïde",
|
||||
"Ledger": "Ledger",
|
||||
"A0": "A0",
|
||||
"A1": "A1",
|
||||
"A2": "A2",
|
||||
"A3": "A3",
|
||||
"A5": "A5",
|
||||
"A6": "A6",
|
||||
"Portrait (Default)": "Portrait (par défaut)",
|
||||
"Landscape": "Paysage",
|
||||
"print (Default)": "print (Default)",
|
||||
"screen": "Ecran",
|
||||
"none": "aucun",
|
||||
"JSON": "JSON",
|
||||
"CSV": "CSV",
|
||||
"XML": "XML"
|
||||
}
|
||||
@@ -0,0 +1,136 @@
|
||||
{
|
||||
"Automate PDF conversion, editing, extraction": "PDF変換、編集、抽出を自動化する",
|
||||
"To get your PDF.co API key please [click here to create your account](https://app.pdf.co/).": "PDF.co APIキーを取得するには、[ここをクリックしてアカウントを作成](https://app.pdf.co/) してください。",
|
||||
"Add Barcode to PDF": "バーコードをPDFに追加",
|
||||
"Add Image to PDF": "PDFに画像を追加",
|
||||
"Add Text to PDF": "PDFにテキストを追加",
|
||||
"Convert HTML to PDF": "HTMLをPDFに変換",
|
||||
"Convert PDF to JSON/CSV/XML": "PDFをJSON/CSV/XMLに変換する",
|
||||
"Extract Tables from PDF (using Template)": "PDFからテーブルを抽出 (テンプレートを使用)",
|
||||
"Extract Plain Text from PDF": "PDFからプレーンテキストを抽出",
|
||||
"Search and Replace Text in PDF": "PDF内のテキストの検索と置換",
|
||||
"Generate a barcode image and add it to a specific location on a PDF.": "バーコード画像を生成し、PDF上の特定の場所に追加します。",
|
||||
"Add image to a PDF document.": "PDFドキュメントに画像を追加します。",
|
||||
"Adds text to PDF.": "PDFにテキストを追加します。",
|
||||
"Convert HTML code into a downloadable PDF document.": "HTMLコードをダウンロード可能なPDFドキュメントに変換します。",
|
||||
"Convert PDF content into structured formats (JSON, CSV, or XML).": "PDF コンテンツを構造化フォーマット(JSON、CSV、または XML)に変換します。",
|
||||
"Extracts table data from a PDF using a predefined PDF.co Document Parser template.": "定義済みのPDF.co Document Parserテンプレートを使用して、PDFからテーブルデータを抽出します。",
|
||||
"Extracts plain text content from a PDF document.": "PDF ドキュメントからプレーンテキストの内容を抽出します。",
|
||||
"Search for specific text or patterns in a PDF and replace it with new text.": "PDF 内の特定のテキストやパターンを検索し、新しいテキストに置き換えます。",
|
||||
"Source PDF URL": "ソース PDF URL",
|
||||
"Barcode Value": "バーコード値",
|
||||
"Barcode Type": "バーコードタイプ",
|
||||
"X Coordinate": "X座標",
|
||||
"Y Coordinate": "Y座標",
|
||||
"Width (optional)": "幅 (オプション)",
|
||||
"Height (optional)": "高さ (オプション)",
|
||||
"Pages": "ページ",
|
||||
"File Name": "ファイル名",
|
||||
"Expiration Time in Minutes": "有効期限 (分)",
|
||||
"Source PDF Password": "ソースPDFパスワード",
|
||||
"HTTP Username": "HTTP ユーザー名",
|
||||
"HTTP Password": "HTTP パスワード",
|
||||
"Image URL": "画像URL",
|
||||
"Width": "Width",
|
||||
"Height": "高さ",
|
||||
"Target Pages": "ターゲットページ",
|
||||
"Text to Add": "追加するテキスト",
|
||||
"Font Size": "Font Size",
|
||||
"Color": "色",
|
||||
"Bold Font ?": "Bold Font ?",
|
||||
"Stikeout Font ?": "Stikeout Font ?",
|
||||
"Underline Font ?": "Underline Font ?",
|
||||
"Font Name": "Font Name",
|
||||
"Text Box Height": "テキストボックスの高さ",
|
||||
"Text Box Width": "テキストボックスの幅",
|
||||
"Text Box Alignment": "テキストボックスの配置",
|
||||
"HTML Content": "HTML コンテンツ",
|
||||
"Output File Name": "出力ファイル名",
|
||||
"Margins": "margins",
|
||||
"Paper Size": "用紙サイズ",
|
||||
"Orientation": "方向",
|
||||
"Print Background ?": "背景を印刷?",
|
||||
"Media Type": "メディアタイプ",
|
||||
"Header HTML": "ヘッダー HTML",
|
||||
"Footer HTML": "フッターHTML",
|
||||
"Do not wait till full page load ?": "全ページを読み込むまで待たないでください?",
|
||||
"Output Link Expiration (minutes)": "出力リンク有効期限 (分)",
|
||||
"Profiles": "Profiles",
|
||||
"Output Format": "出力形式",
|
||||
"OCR Language": "OCR 言語",
|
||||
"Template ID": "テンプレートID",
|
||||
"PDF URL": "PDF URL",
|
||||
"Text to Locate": "検索するテキスト",
|
||||
"Replacement Text": "置換テキスト",
|
||||
"Case Sensitive": "大文字と小文字を区別する",
|
||||
"Use Regular Expressions ?": "正規表現を使用?",
|
||||
"URL of the PDF file to add the barcode to.": "バーコードを追加するPDFファイルのURL。",
|
||||
"The text or data to encode in the barcode.": "バーコードにエンコードするテキストまたはデータ。",
|
||||
"Select the type of barcode to generate.": "生成するバーコードの種類を選択します。",
|
||||
"X coordinate (from top-left corner) to place the barcode.": "X 座標(左上隅から)でバーコードを配置します。",
|
||||
"Y coordinate (from top-left corner) to place the barcode.": "Y座標(左上隅から)でバーコードを配置します。",
|
||||
"Optional width for the barcode image on the PDF (in points). Aspect ratio is kept by default.": "PDF上のバーコード画像のオプション幅(点数)。アスペクト比はデフォルトで保持されます。",
|
||||
"Optional height for the barcode image on the PDF (in points). Aspect ratio is kept by default.": "PDF上のバーコード画像のオプションの高さ(点数)。アスペクト比はデフォルトで保持されます。",
|
||||
"Comma-separated page numbers or ranges to add the barcode (e.g., \"0,2,5-10\"). Leave empty for all pages.": "バーコードを追加するためにカンマ区切りのページ番号または範囲(例:\"0,2,5-10\")。すべてのページで空のままにしてください。",
|
||||
"Desired name for the output PDF file (e.g., \"result.pdf\").": "出力PDFファイルの希望する名前(例: \"result.pdf\")。",
|
||||
"Set the expiration time for the output link in minutes (default is 60 i.e 60 minutes or 1 hour).": "出力リンクの有効期限を分単位で設定します(デフォルトでは60分または1時間)。",
|
||||
"Password if the source PDF is protected.": "ソースPDFが保護されている場合のパスワード",
|
||||
"HTTP auth username if required to access source url.": "ソース URL にアクセスするために必要な場合は HTTP 認証ユーザー名です。",
|
||||
"HTTP auth password if required to access source url.": "ソースURLにアクセスするために必要な場合はHTTP認証パスワードです。",
|
||||
"URL of the PDF file to modify.": "変更するPDFファイルのURL。",
|
||||
"X coordinate (from top-left corner) to place the image.": "画像を配置するためのX座標(左上隅から)。",
|
||||
"Y coordinate (from top-left corner) to place the image.": "Y座標(左上隅から)で画像を配置します。",
|
||||
"Optional width for the image on the PDF (in points). Aspect ratio is kept by default.": "PDF上の画像のオプション幅(点数)。アスペクト比はデフォルトで保持されます。",
|
||||
"Optional height for the image on the PDF (in points). Aspect ratio is kept by default.": "PDF上の画像のオプションの高さ(点数)。アスペクト比はデフォルトで保持されます。",
|
||||
"Specify page indices as comma-separated values or ranges to process (e.g. \"0, 1, 2-\" or \"1, 2, 3-7\").": "処理するページインデックスをカンマ区切りの値または範囲として指定します(例: \"0, 1, 2, 3-7\")。",
|
||||
"The HTML code to convert to PDF.": "PDFに変換するHTMLコード。",
|
||||
"CSS style margins (e.g., \"10px\", \"5mm 5mm 5mm 5mm\" for top, right, bottom, left).": "CSS スタイルの余白(例: \"10px\", \"5mm 5mm 5mm\" 上部, 右下, 左下)。",
|
||||
"Select a paper size. For custom sizes, input the value directly (e.g., '200mm 300mm') if your desired size isn't listed. Refer to PDF.co docs.": "用紙サイズを選択します。カスタムサイズについては、目的のサイズが表示されていない場合は、値を直接入力します(例: 200mm 300mm)。",
|
||||
"Set page orientation.": "ページ方向を設定します。",
|
||||
"Set to true to print background graphics and colors (default is true).": "背景画像と色を印刷する場合は true に設定します(デフォルトは true です)。",
|
||||
"CSS media type to emulate.": "エミュレートする CSS メディアタイプ。",
|
||||
"HTML content for the page header.": "ページヘッダーの HTML コンテンツ。",
|
||||
"HTML content for the page footer.": "ページフッターのHTMLコンテンツ。",
|
||||
"Set the expiration time for the output link in minutes (default is 60).": "出力リンクの有効期限を分単位で設定します(デフォルトは60)。",
|
||||
"JSON object for additional configurations.": "追加の設定のための JSON オブジェクト。",
|
||||
"URL of the PDF file to convert.": "変換するPDFファイルのURL。",
|
||||
"Select the desired structured output format.": "任意の構造化出力形式を選択します。",
|
||||
"Comma-separated page numbers or ranges (e.g., \"0,2,5-10\"). Leave empty for all pages.": "カンマ区切りのページ番号または範囲(例:\"0,2,5-10\")。すべてのページで空のままにしてください。",
|
||||
"Language for OCR if processing scanned documents (e.g., \"eng\", \"deu\", \"eng+deu\"). See PDF.co docs for list.": "スキャンされたドキュメントを処理する場合のOCRの言語(例:\"eng\", \"deu\", \"eng+deu\")。一覧はPDF.codocsを参照のこと。",
|
||||
"URL of the PDF file to extract tables from.": "テーブルを抽出するPDFファイルのURL。",
|
||||
"The ID of your Document Parser template (created in PDF.co dashboard) designed to extract the table(s).": "テーブルを抽出するために設計されたドキュメントパーサーテンプレート(PDF.co ダッシュボードで作成された)のID。",
|
||||
"Comma-separated page numbers or ranges (e.g., \"0,2,5-10\"). Overrides template settings if provided.": "カンマ区切りのページ番号または範囲(例:\"0,2,5-10\")。指定されている場合はテンプレートの設定を上書きします。",
|
||||
"URL of the PDF file to extract text from.": "テキストを抽出するPDFファイルのURL。",
|
||||
"URL to the source PDF file.": "ソースPDFファイルへのURL。",
|
||||
"Set to true for case-sensitive search, false otherwise.": "大文字小文字を区別する検索にはtrueに設定します。そうでない場合はfalseに設定します。",
|
||||
"Set to true to use regular expressions for search texts.": "検索テキストに正規表現を使用する場合は true に設定します。",
|
||||
"QR Code (Default)": "QR Code (Default)",
|
||||
"DataMatrix": "データマトリクス",
|
||||
"Code 128": "コード 128",
|
||||
"Code 39": "Code 39",
|
||||
"PDF417": "PDF417",
|
||||
"EAN-13": "EAN-13",
|
||||
"UPC-A": "UPC-A",
|
||||
"left": "左",
|
||||
"right": "右|右",
|
||||
"center": "中央揃え",
|
||||
"A4 (Default)": "A4 (デフォルト)",
|
||||
"Letter": "手紙",
|
||||
"Legal": "Legal",
|
||||
"Tabloid": "タブロイド",
|
||||
"Ledger": "Ledger",
|
||||
"A0": "A0",
|
||||
"A1": "A1",
|
||||
"A2": "A2",
|
||||
"A3": "A3",
|
||||
"A5": "A5",
|
||||
"A6": "A6",
|
||||
"Portrait (Default)": "縦向き(デフォルト)",
|
||||
"Landscape": "ランドスケープ",
|
||||
"print (Default)": "print (Default)",
|
||||
"screen": "スクリーン",
|
||||
"none": "なし",
|
||||
"JSON": "JSON",
|
||||
"CSV": "CSV",
|
||||
"XML": "XML"
|
||||
}
|
||||
@@ -0,0 +1,136 @@
|
||||
{
|
||||
"Automate PDF conversion, editing, extraction": "Automatiseer PDF conversie, bewerken, uitpakken",
|
||||
"To get your PDF.co API key please [click here to create your account](https://app.pdf.co/).": "Om uw PDF.co API-sleutel te verkrijgen, gelieve [Klik hier om uw account aan te maken](https://app.pdf.co/).",
|
||||
"Add Barcode to PDF": "Barcode toevoegen aan PDF",
|
||||
"Add Image to PDF": "Afbeelding toevoegen aan PDF",
|
||||
"Add Text to PDF": "Tekst toevoegen aan PDF",
|
||||
"Convert HTML to PDF": "HTML converteren naar PDF",
|
||||
"Convert PDF to JSON/CSV/XML": "Converteer PDF naar JSON/CSV/XML",
|
||||
"Extract Tables from PDF (using Template)": "Verwijder tabellen uit PDF (met behulp van Template)",
|
||||
"Extract Plain Text from PDF": "Verwijder platte tekst uit PDF",
|
||||
"Search and Replace Text in PDF": "Zoek en vervang tekst in PDF",
|
||||
"Generate a barcode image and add it to a specific location on a PDF.": "Genereer een barcode afbeelding en voeg deze toe aan een specifieke locatie op een PDF.",
|
||||
"Add image to a PDF document.": "Afbeelding toevoegen aan een PDF-document.",
|
||||
"Adds text to PDF.": "Voegt tekst aan PDF toe.",
|
||||
"Convert HTML code into a downloadable PDF document.": "Zet HTML-code om in een downloadbaar PDF-document.",
|
||||
"Convert PDF content into structured formats (JSON, CSV, or XML).": "Converteer PDF-inhoud naar gestructureerde formaten (JSON, CSV, of XML).",
|
||||
"Extracts table data from a PDF using a predefined PDF.co Document Parser template.": "Hiermee haalt u tabelgegevens uit een PDF via een vooraf gedefinieerd PDF.co Document Parser sjabloon.",
|
||||
"Extracts plain text content from a PDF document.": "Extraheert platte tekst inhoud uit een PDF-document.",
|
||||
"Search for specific text or patterns in a PDF and replace it with new text.": "Zoek naar specifieke tekst of patronen in een PDF en vervang deze door nieuwe tekst.",
|
||||
"Source PDF URL": "Bron PDF-URL",
|
||||
"Barcode Value": "Barcode waarde",
|
||||
"Barcode Type": "Streepjescode type",
|
||||
"X Coordinate": "X Coördinaat",
|
||||
"Y Coordinate": "Y Coördinaat",
|
||||
"Width (optional)": "Breedte (optioneel)",
|
||||
"Height (optional)": "Hoogte (optioneel)",
|
||||
"Pages": "Pagina's",
|
||||
"File Name": "File Name",
|
||||
"Expiration Time in Minutes": "Vervaltijd in minuten",
|
||||
"Source PDF Password": "Bron PDF-wachtwoord",
|
||||
"HTTP Username": "HTTP Gebruikersnaam",
|
||||
"HTTP Password": "HTTP wachtwoord",
|
||||
"Image URL": "Afbeelding URL",
|
||||
"Width": "Width",
|
||||
"Height": "Højde",
|
||||
"Target Pages": "Doel pagina's",
|
||||
"Text to Add": "Tekst toevoegen",
|
||||
"Font Size": "Font Size",
|
||||
"Color": "Kleur",
|
||||
"Bold Font ?": "Bold Font ?",
|
||||
"Stikeout Font ?": "Stikeout Font ?",
|
||||
"Underline Font ?": "Underline Font ?",
|
||||
"Font Name": "Font Name",
|
||||
"Text Box Height": "Hoogte tekstvak",
|
||||
"Text Box Width": "Tekstvak breedte",
|
||||
"Text Box Alignment": "Tekstvak Uitlijning",
|
||||
"HTML Content": "HTML inhoud",
|
||||
"Output File Name": "Uitvoer bestandsnaam",
|
||||
"Margins": "Marges",
|
||||
"Paper Size": "Papieren grootte",
|
||||
"Orientation": "Oriëntatie",
|
||||
"Print Background ?": "Achtergrond afdrukken?",
|
||||
"Media Type": "Media type",
|
||||
"Header HTML": "Koptekst HTML",
|
||||
"Footer HTML": "HTML voettekst",
|
||||
"Do not wait till full page load ?": "Wacht niet tot de volledige pagina laden?",
|
||||
"Output Link Expiration (minutes)": "Uitgang Link Vervaldatum (minuten)",
|
||||
"Profiles": "Profiles",
|
||||
"Output Format": "Uitvoer formaat",
|
||||
"OCR Language": "OCR taal",
|
||||
"Template ID": "Sjabloon ID",
|
||||
"PDF URL": "PDF URL",
|
||||
"Text to Locate": "Tekst lokaliseren",
|
||||
"Replacement Text": "Vervangende tekst",
|
||||
"Case Sensitive": "Kist gevoelig",
|
||||
"Use Regular Expressions ?": "Reguliere expressies gebruiken?",
|
||||
"URL of the PDF file to add the barcode to.": "URL van het PDF-bestand waar de barcode aan moet worden toegevoegd.",
|
||||
"The text or data to encode in the barcode.": "De tekst of gegevens om in de barcode te coderen.",
|
||||
"Select the type of barcode to generate.": "Selecteer het type streepjescode om te genereren.",
|
||||
"X coordinate (from top-left corner) to place the barcode.": "X coördinaat (van linksbovenhoek) om de barcode te plaatsen.",
|
||||
"Y coordinate (from top-left corner) to place the barcode.": "Y-coördinaat (van linksbovenhoek) om de barcode te plaatsen.",
|
||||
"Optional width for the barcode image on the PDF (in points). Aspect ratio is kept by default.": "Optionele breedte voor de afbeelding van de barcode op de PDF (in punten). Aspect ratio wordt standaard bewaard.",
|
||||
"Optional height for the barcode image on the PDF (in points). Aspect ratio is kept by default.": "Optionele hoogte voor de afbeelding van de barcode op de PDF (in punten). Aspect ratio wordt standaard bewaard.",
|
||||
"Comma-separated page numbers or ranges to add the barcode (e.g., \"0,2,5-10\"). Leave empty for all pages.": "Kommagescheiden paginanummers of bereiken om de barcode toe te voegen (bijv. \"0,2,5-10\"). Laat leeg voor alle pagina's.",
|
||||
"Desired name for the output PDF file (e.g., \"result.pdf\").": "Gewenste naam voor het PDF bestand (bijv. \"result.pdf\").",
|
||||
"Set the expiration time for the output link in minutes (default is 60 i.e 60 minutes or 1 hour).": "Stel de vervaltijd in voor de uitvoerlink in minuten (standaard is 60 dus 60 minuten of 1 uur).",
|
||||
"Password if the source PDF is protected.": "Wachtwoord als de bron PDF is beveiligd.",
|
||||
"HTTP auth username if required to access source url.": "HTTP auth-gebruikersnaam indien nodig voor toegang tot de bron-url.",
|
||||
"HTTP auth password if required to access source url.": "Wachtwoord HTTP-authenticatie indien nodig voor toegang tot de bron-url.",
|
||||
"URL of the PDF file to modify.": "URL van het PDF-bestand om aan te passen.",
|
||||
"X coordinate (from top-left corner) to place the image.": "X coördinaat (van linksbovenhoek) om de afbeelding te plaatsen.",
|
||||
"Y coordinate (from top-left corner) to place the image.": "Y-coördinaat (van linksbovenhoek) om de afbeelding te plaatsen.",
|
||||
"Optional width for the image on the PDF (in points). Aspect ratio is kept by default.": "Optionele breedte voor de afbeelding op de PDF (in punten). Aspect ratio wordt standaard bewaard.",
|
||||
"Optional height for the image on the PDF (in points). Aspect ratio is kept by default.": "Optionele hoogte voor de afbeelding op de PDF (in punten). Aspect ratio wordt standaard bewaard.",
|
||||
"Specify page indices as comma-separated values or ranges to process (e.g. \"0, 1, 2-\" or \"1, 2, 3-7\").": "Specificeer pagina indices als door komma's gescheiden waarden of bereiken (bijvoorbeeld \"0, 1, 2-\" of \"1, 2, 3-7\").",
|
||||
"The HTML code to convert to PDF.": "De HTML-code om naar PDF te converteren.",
|
||||
"CSS style margins (e.g., \"10px\", \"5mm 5mm 5mm 5mm\" for top, right, bottom, left).": "CSS stijlmarges (bijv. \"10px\", \"5mm 5mm 5mm 5mm\" voor boven, rechts, onder, links).",
|
||||
"Select a paper size. For custom sizes, input the value directly (e.g., '200mm 300mm') if your desired size isn't listed. Refer to PDF.co docs.": "Selecteer een papiergrootte. Voer de waarde direct in (bijv. '200mm 300mm') als de gewenste grootte niet in de lijst staat. Raadpleeg de PDF.co documenten.",
|
||||
"Set page orientation.": "Stel pagina oriëntatie in.",
|
||||
"Set to true to print background graphics and colors (default is true).": "Stel in op 'waar' om achtergrond afbeeldingen en kleuren te printen (standaard is waar).",
|
||||
"CSS media type to emulate.": "CSS-mediatype om te emuleren.",
|
||||
"HTML content for the page header.": "HTML inhoud voor de pagina kop.",
|
||||
"HTML content for the page footer.": "HTML-inhoud voor de voettekst van de pagina.",
|
||||
"Set the expiration time for the output link in minutes (default is 60).": "Stel de vervaltijd in voor de uitvoerlink in minuten (standaard is 60).",
|
||||
"JSON object for additional configurations.": "JSON object voor extra configuraties.",
|
||||
"URL of the PDF file to convert.": "URL van het te converteren PDF-bestand",
|
||||
"Select the desired structured output format.": "Selecteer het gewenste gestructureerde uitvoerformaat.",
|
||||
"Comma-separated page numbers or ranges (e.g., \"0,2,5-10\"). Leave empty for all pages.": "Kommagescheiden paginanummers of bereiken (bijv. \"0,2,5-10\"). Laat leeg voor alle pagina's.",
|
||||
"Language for OCR if processing scanned documents (e.g., \"eng\", \"deu\", \"eng+deu\"). See PDF.co docs for list.": "Taal voor OCR bij het verwerken van gescande documenten (bijv. \"eng\", \"deu\", \"eng+deu\"). Zie PDF.co docs voor lijst.",
|
||||
"URL of the PDF file to extract tables from.": "URL van het PDF-bestand om tabellen uit te pakken.",
|
||||
"The ID of your Document Parser template (created in PDF.co dashboard) designed to extract the table(s).": "De ID van uw Document Parser-sjabloon (gemaakt in PDF.co dashboard) ontworpen om de table(s) uit te pakken.",
|
||||
"Comma-separated page numbers or ranges (e.g., \"0,2,5-10\"). Overrides template settings if provided.": "Door komma's gescheiden paginanummers of bereiken (bijv. \"0,2,5-10\"). Overschrijft sjablooninstellingen indien gegeven.",
|
||||
"URL of the PDF file to extract text from.": "URL van het PDF-bestand om tekst van uit te pakken.",
|
||||
"URL to the source PDF file.": "URL naar het bron PDF-bestand.",
|
||||
"Set to true for case-sensitive search, false otherwise.": "Stel in op waar voor hoofdlettergevoelig zoeken, anders onwaar.",
|
||||
"Set to true to use regular expressions for search texts.": "Zet op 'true' om reguliere expressies te gebruiken voor het zoeken van teksten.",
|
||||
"QR Code (Default)": "QR Code (Default)",
|
||||
"DataMatrix": "DataMatrix",
|
||||
"Code 128": "Code 128",
|
||||
"Code 39": "Code 39",
|
||||
"PDF417": "PDF417",
|
||||
"EAN-13": "EAN-13",
|
||||
"UPC-A": "UPC-A",
|
||||
"left": "linkerkant",
|
||||
"right": "rechts",
|
||||
"center": "midden",
|
||||
"A4 (Default)": "A4 (standaard)",
|
||||
"Letter": "Brief",
|
||||
"Legal": "Juridisch",
|
||||
"Tabloid": "Tabloïd",
|
||||
"Ledger": "Grootboek",
|
||||
"A0": "A0",
|
||||
"A1": "A1",
|
||||
"A2": "A2",
|
||||
"A3": "A3",
|
||||
"A5": "A5",
|
||||
"A6": "A6",
|
||||
"Portrait (Default)": "Portrait (standaard)",
|
||||
"Landscape": "Liggend",
|
||||
"print (Default)": "print (Default)",
|
||||
"screen": "scherm",
|
||||
"none": "geen",
|
||||
"JSON": "JSON",
|
||||
"CSV": "csv",
|
||||
"XML": "XML"
|
||||
}
|
||||
@@ -0,0 +1,136 @@
|
||||
{
|
||||
"Automate PDF conversion, editing, extraction": "Automatize a conversão de PDF, editando, extração",
|
||||
"To get your PDF.co API key please [click here to create your account](https://app.pdf.co/).": "Para obter a sua chave de API PDF.co [clique aqui para criar a sua conta](https://app.pdf.co/).",
|
||||
"Add Barcode to PDF": "Adicionar Código de Barras para PDF",
|
||||
"Add Image to PDF": "Adicionar Imagem ao PDF",
|
||||
"Add Text to PDF": "Adicionar Texto ao PDF",
|
||||
"Convert HTML to PDF": "Converter HTML para PDF",
|
||||
"Convert PDF to JSON/CSV/XML": "Converter PDF para JSON/CSV/XML",
|
||||
"Extract Tables from PDF (using Template)": "Extrair tabelas a partir de PDF (usando modelo)",
|
||||
"Extract Plain Text from PDF": "Extrair texto sem formatação do PDF",
|
||||
"Search and Replace Text in PDF": "Pesquisar e substituir texto no PDF",
|
||||
"Generate a barcode image and add it to a specific location on a PDF.": "Gere uma imagem de código de barras e adicione-o a um local específico em um PDF.",
|
||||
"Add image to a PDF document.": "Adicionar imagem a um documento PDF.",
|
||||
"Adds text to PDF.": "Adiciona texto a PDF.",
|
||||
"Convert HTML code into a downloadable PDF document.": "Converta o código HTML em um PDF disponível para download.",
|
||||
"Convert PDF content into structured formats (JSON, CSV, or XML).": "Converter conteúdo PDF em formatos estruturados (JSON, CSS ou XML).",
|
||||
"Extracts table data from a PDF using a predefined PDF.co Document Parser template.": "Extrai dados de tabela de um PDF usando um modelo de analisador de documento PDF.co predefinido.",
|
||||
"Extracts plain text content from a PDF document.": "Extrai conteúdo de texto de um documento PDF.",
|
||||
"Search for specific text or patterns in a PDF and replace it with new text.": "Procurar por textos ou padrões específicos em um PDF e substituí-los por um novo texto.",
|
||||
"Source PDF URL": "URL do PDF de origem",
|
||||
"Barcode Value": "Valor do Código de Barras",
|
||||
"Barcode Type": "Tipo de código de barras",
|
||||
"X Coordinate": "Coordenada X",
|
||||
"Y Coordinate": "Coordenada Y",
|
||||
"Width (optional)": "Largura (opcional)",
|
||||
"Height (optional)": "Altura (opcional)",
|
||||
"Pages": "páginas",
|
||||
"File Name": "Nome do arquivo",
|
||||
"Expiration Time in Minutes": "Tempo de expiração em minutos",
|
||||
"Source PDF Password": "Senha do PDF de origem",
|
||||
"HTTP Username": "Usuário HTTP",
|
||||
"HTTP Password": "Senha HTTP",
|
||||
"Image URL": "URL da imagem",
|
||||
"Width": "Width",
|
||||
"Height": "Altura",
|
||||
"Target Pages": "Páginas de Destino",
|
||||
"Text to Add": "Texto para adicionar",
|
||||
"Font Size": "Font Size",
|
||||
"Color": "Cor",
|
||||
"Bold Font ?": "Bold Font ?",
|
||||
"Stikeout Font ?": "Stikeout Font ?",
|
||||
"Underline Font ?": "Underline Font ?",
|
||||
"Font Name": "Font Name",
|
||||
"Text Box Height": "Altura da Caixa de Texto",
|
||||
"Text Box Width": "Largura da Caixa de Texto",
|
||||
"Text Box Alignment": "Alinhamento da Caixa de Texto",
|
||||
"HTML Content": "Conteúdo HTML",
|
||||
"Output File Name": "Nome do arquivo de saída",
|
||||
"Margins": "Margens",
|
||||
"Paper Size": "Tamanho do papel",
|
||||
"Orientation": "Orientação",
|
||||
"Print Background ?": "Imprimir o fundo ?",
|
||||
"Media Type": "Tipo de mídia",
|
||||
"Header HTML": "HTML de cabeçalho",
|
||||
"Footer HTML": "HTML do Rodapé",
|
||||
"Do not wait till full page load ?": "Não esperar até o carregamento da página completa?",
|
||||
"Output Link Expiration (minutes)": "Expiração do link de saída (minutos)",
|
||||
"Profiles": "Profiles",
|
||||
"Output Format": "Formato de saída",
|
||||
"OCR Language": "Língua OCR",
|
||||
"Template ID": "ID do modelo",
|
||||
"PDF URL": "URL do PDF",
|
||||
"Text to Locate": "Texto para localizar",
|
||||
"Replacement Text": "Texto de substituição",
|
||||
"Case Sensitive": "Caso sensível",
|
||||
"Use Regular Expressions ?": "Usar Expressões Regulares ?",
|
||||
"URL of the PDF file to add the barcode to.": "URL do arquivo PDF para adicionar o código de barras.",
|
||||
"The text or data to encode in the barcode.": "O texto ou dados para codificar no código de barras.",
|
||||
"Select the type of barcode to generate.": "Selecione o tipo de código de barras a ser gerado.",
|
||||
"X coordinate (from top-left corner) to place the barcode.": "Coordenada X (do canto superior esquerdo) para posicionar o código de barras.",
|
||||
"Y coordinate (from top-left corner) to place the barcode.": "Coordenada Y (do canto superior esquerdo) para posicionar o código de barras.",
|
||||
"Optional width for the barcode image on the PDF (in points). Aspect ratio is kept by default.": "Largura opcional para a imagem de código de barras no PDF (em pontos). A proporção de aspecto é mantida por padrão.",
|
||||
"Optional height for the barcode image on the PDF (in points). Aspect ratio is kept by default.": "Altura opcional para a imagem de código de barras no PDF (em pontos). A proporção de aspecto é mantida por padrão.",
|
||||
"Comma-separated page numbers or ranges to add the barcode (e.g., \"0,2,5-10\"). Leave empty for all pages.": "Números de página ou intervalos separados por vírgula para adicionar o código de barras (por exemplo, \"0,2,5-10\"). Deixe em branco para todas as páginas.",
|
||||
"Desired name for the output PDF file (e.g., \"result.pdf\").": "Nome desejado para o arquivo PDF de saída (por exemplo, \"resultado.pdf\").",
|
||||
"Set the expiration time for the output link in minutes (default is 60 i.e 60 minutes or 1 hour).": "Defina o tempo de expiração do link de saída em minutos (o padrão é 60 ou 60 minutos ou 1 hora).",
|
||||
"Password if the source PDF is protected.": "Senha se o PDF de origem estiver protegido.",
|
||||
"HTTP auth username if required to access source url.": "Usuário de autenticação HTTP se necessário para acessar a url de origem.",
|
||||
"HTTP auth password if required to access source url.": "Senha de autenticação HTTP se necessário para acessar o URL de origem.",
|
||||
"URL of the PDF file to modify.": "URL do arquivo PDF a ser modificado.",
|
||||
"X coordinate (from top-left corner) to place the image.": "Coordenada X (do canto superior esquerdo) para colocar a imagem.",
|
||||
"Y coordinate (from top-left corner) to place the image.": "Coordenada Y (do canto superior esquerdo) para colocar a imagem.",
|
||||
"Optional width for the image on the PDF (in points). Aspect ratio is kept by default.": "Largura opcional para a imagem em PDF (em pontos). A proporção de aspecto é mantida por padrão.",
|
||||
"Optional height for the image on the PDF (in points). Aspect ratio is kept by default.": "Altura opcional para a imagem em PDF (em pontos). A proporção de aspecto é mantida por padrão.",
|
||||
"Specify page indices as comma-separated values or ranges to process (e.g. \"0, 1, 2-\" or \"1, 2, 3-7\").": "Especificar índices de página como valores separados por vírgula ou intervalos de processo (por exemplo, \"0, 1, 2-\" ou \"1, 2, 3-7\").",
|
||||
"The HTML code to convert to PDF.": "O código HTML para converter para PDF.",
|
||||
"CSS style margins (e.g., \"10px\", \"5mm 5mm 5mm 5mm\" for top, right, bottom, left).": "Margens de estilo CSS (ex.: \"10px\", \"5mm 5mm 5mm\" for top, right, bottom, left).",
|
||||
"Select a paper size. For custom sizes, input the value directly (e.g., '200mm 300mm') if your desired size isn't listed. Refer to PDF.co docs.": "Selecione um tamanho de papel. Para tamanhos personalizados, insira o valor diretamente (por exemplo, '200mm 300mm') se o tamanho desejado não estiver listado. Consulte documentos PDF.co.",
|
||||
"Set page orientation.": "Definir orientação da página.",
|
||||
"Set to true to print background graphics and colors (default is true).": "Defina como verdadeiro para imprimir gráficos e cores de fundo (padrão é verdadeiro).",
|
||||
"CSS media type to emulate.": "Tipo de mídia CSS para emular.",
|
||||
"HTML content for the page header.": "Conteúdo HTML para o cabeçalho da página.",
|
||||
"HTML content for the page footer.": "Conteúdo HTML para o rodapé da página.",
|
||||
"Set the expiration time for the output link in minutes (default is 60).": "Defina o tempo de expiração para o link de saída em minutos (o padrão é 60).",
|
||||
"JSON object for additional configurations.": "Objeto JSON para configurações adicionais.",
|
||||
"URL of the PDF file to convert.": "URL do arquivo PDF a ser convertido.",
|
||||
"Select the desired structured output format.": "Selecione o formato de saída estruturada desejado.",
|
||||
"Comma-separated page numbers or ranges (e.g., \"0,2,5-10\"). Leave empty for all pages.": "Números de página ou intervalos separados por vírgula (por exemplo, \"0,2,5-10\"). Deixe em branco para todas as páginas.",
|
||||
"Language for OCR if processing scanned documents (e.g., \"eng\", \"deu\", \"eng+deu\"). See PDF.co docs for list.": "Idioma para OCR se estiver processando documentos digitalizados (ex.: \"eng\", \"deu\", \"eng+deu\"). Veja documentos PDF.co para listas.",
|
||||
"URL of the PDF file to extract tables from.": "URL do arquivo PDF para extrair as tabelas.",
|
||||
"The ID of your Document Parser template (created in PDF.co dashboard) designed to extract the table(s).": "A ID do seu modelo do Analisador de Documento (criado no painel de PDF.co) projetado para extrair a(s) tabela(s).",
|
||||
"Comma-separated page numbers or ranges (e.g., \"0,2,5-10\"). Overrides template settings if provided.": "Número de páginas ou intervalos separados por vírgula (por exemplo, \"0,2,5-10\"). Sobrescreve configurações de modelo, se fornecido.",
|
||||
"URL of the PDF file to extract text from.": "URL do arquivo PDF para extrair texto.",
|
||||
"URL to the source PDF file.": "URL para o arquivo PDF de origem.",
|
||||
"Set to true for case-sensitive search, false otherwise.": "Defina como verdadeiro para uma busca com distinção entre maiúsculas e minúsculas, falso caso contrário.",
|
||||
"Set to true to use regular expressions for search texts.": "Defina como verdadeiro para usar expressões regulares para a busca de textos.",
|
||||
"QR Code (Default)": "QR Code (Default)",
|
||||
"DataMatrix": "Matriz",
|
||||
"Code 128": "Código 128",
|
||||
"Code 39": "Código 39",
|
||||
"PDF417": "PDF417",
|
||||
"EAN-13": "EAN-13",
|
||||
"UPC-A": "UPC-A",
|
||||
"left": "esquerda",
|
||||
"right": "Direita",
|
||||
"center": "Centro",
|
||||
"A4 (Default)": "A4 (Padrão)",
|
||||
"Letter": "Letra",
|
||||
"Legal": "Informações",
|
||||
"Tabloid": "Tablóide",
|
||||
"Ledger": "Contabilidade",
|
||||
"A0": "A0",
|
||||
"A1": "A1",
|
||||
"A2": "A2",
|
||||
"A3": "A3",
|
||||
"A5": "A5",
|
||||
"A6": "A6",
|
||||
"Portrait (Default)": "Retrato (Padrão)",
|
||||
"Landscape": "Paisagem",
|
||||
"print (Default)": "print (Default)",
|
||||
"screen": "Tela",
|
||||
"none": "nenhuma",
|
||||
"JSON": "JSON",
|
||||
"CSV": "Csv",
|
||||
"XML": "XML"
|
||||
}
|
||||
@@ -0,0 +1,137 @@
|
||||
{
|
||||
"PDF.co": "PDF.co",
|
||||
"Automate PDF conversion, editing, extraction": "Автоматическое преобразование PDF, редактирование, извлечение",
|
||||
"To get your PDF.co API key please [click here to create your account](https://app.pdf.co/).": "Для получения ключа PDF.co API, пожалуйста, [нажмите здесь, чтобы создать свой аккаунт](https://app.pdf.co/).",
|
||||
"Add Barcode to PDF": "Добавить штрихкод в PDF",
|
||||
"Add Image to PDF": "Добавить изображение в PDF",
|
||||
"Add Text to PDF": "Добавить текст в PDF",
|
||||
"Convert HTML to PDF": "Конвертировать HTML в PDF",
|
||||
"Convert PDF to JSON/CSV/XML": "Конвертировать PDF в JSON/CSV/XML",
|
||||
"Extract Tables from PDF (using Template)": "Извлечь таблицы из PDF (используя шаблон)",
|
||||
"Extract Plain Text from PDF": "Извлечь обычный текст из PDF",
|
||||
"Search and Replace Text in PDF": "Поиск и замена текста в PDF",
|
||||
"Generate a barcode image and add it to a specific location on a PDF.": "Создать образ штрих-кода и добавить его в определенное место в PDF.",
|
||||
"Add image to a PDF document.": "Добавить изображение в PDF-документ.",
|
||||
"Adds text to PDF.": "Добавляет текст в PDF.",
|
||||
"Convert HTML code into a downloadable PDF document.": "Конвертируйте HTML код в загружаемый PDF-документ.",
|
||||
"Convert PDF content into structured formats (JSON, CSV, or XML).": "Конвертируйте содержимое PDF в структурированные форматы (JSON, CSV или XML).",
|
||||
"Extracts table data from a PDF using a predefined PDF.co Document Parser template.": "Извлекает данные таблиц из PDF, используя шаблон PDF.co документа Parser.",
|
||||
"Extracts plain text content from a PDF document.": "Извлекает текстовое содержимое из PDF документа.",
|
||||
"Search for specific text or patterns in a PDF and replace it with new text.": "Поиск по определенному тексту или шаблонам в PDF и замена его новым текстом.",
|
||||
"Source PDF URL": "Исходный PDF URL",
|
||||
"Barcode Value": "Штрих-код значение",
|
||||
"Barcode Type": "Тип штрих-кода",
|
||||
"X Coordinate": "Координата X",
|
||||
"Y Coordinate": "Координата Y",
|
||||
"Width (optional)": "Ширина (необязательно)",
|
||||
"Height (optional)": "Высота (опционально)",
|
||||
"Pages": "Страницы",
|
||||
"File Name": "Имя файла",
|
||||
"Expiration Time in Minutes": "Время истечения в минутах",
|
||||
"Source PDF Password": "Исходный PDF пароль",
|
||||
"HTTP Username": "HTTP логин",
|
||||
"HTTP Password": "Пароль HTTP",
|
||||
"Image URL": "URL изображения",
|
||||
"Width": "Width",
|
||||
"Height": "Высота",
|
||||
"Target Pages": "Целевые страницы",
|
||||
"Text to Add": "Текст для добавления",
|
||||
"Font Size": "Font Size",
|
||||
"Color": "Цвет",
|
||||
"Bold Font ?": "Bold Font ?",
|
||||
"Stikeout Font ?": "Stikeout Font ?",
|
||||
"Underline Font ?": "Underline Font ?",
|
||||
"Font Name": "Font Name",
|
||||
"Text Box Height": "Высота текстового поля",
|
||||
"Text Box Width": "Ширина текстового поля",
|
||||
"Text Box Alignment": "Выравнивание текстового поля",
|
||||
"HTML Content": "Содержимое HTML",
|
||||
"Output File Name": "Имя файла вывода",
|
||||
"Margins": "Поля",
|
||||
"Paper Size": "Размер бумаги",
|
||||
"Orientation": "Направление",
|
||||
"Print Background ?": "Печать фона ?",
|
||||
"Media Type": "Тип медиа",
|
||||
"Header HTML": "HTML заголовка",
|
||||
"Footer HTML": "HTML нижний колонтитул",
|
||||
"Do not wait till full page load ?": "Не ждите до полной загрузки страницы?",
|
||||
"Output Link Expiration (minutes)": "Истечение выходной ссылки (минуты)",
|
||||
"Profiles": "Profiles",
|
||||
"Output Format": "Формат вывода",
|
||||
"OCR Language": "Язык распознавания",
|
||||
"Template ID": "ID шаблона",
|
||||
"PDF URL": "URL PDF",
|
||||
"Text to Locate": "Текст для поиска",
|
||||
"Replacement Text": "Текст замены",
|
||||
"Case Sensitive": "Учитывать регистр",
|
||||
"Use Regular Expressions ?": "Использовать регулярные выражения ?",
|
||||
"URL of the PDF file to add the barcode to.": "URL файла PDF для добавления штрих-кода.",
|
||||
"The text or data to encode in the barcode.": "Текст или данные для кодирования в штрих-код.",
|
||||
"Select the type of barcode to generate.": "Выберите тип штрих-кода для генерации.",
|
||||
"X coordinate (from top-left corner) to place the barcode.": "Координата X (от верхнего левого угла) для размещения штрих-кода.",
|
||||
"Y coordinate (from top-left corner) to place the barcode.": "Координата Y (от верхнего левого угла) для размещения штрих-кода.",
|
||||
"Optional width for the barcode image on the PDF (in points). Aspect ratio is kept by default.": "Необязательная ширина изображения штрих-кода в PDF (в точках). Соотношение сторон сохраняется по умолчанию.",
|
||||
"Optional height for the barcode image on the PDF (in points). Aspect ratio is kept by default.": "Необязательная высота изображения штрих-кода в PDF (в точках). Соотношение сторон сохраняется по умолчанию.",
|
||||
"Comma-separated page numbers or ranges to add the barcode (e.g., \"0,2,5-10\"). Leave empty for all pages.": "Разделенные запятыми номера страниц или диапазоны для добавления штрих-кода (например, «0,2,5-10»). Оставьте пустым для всех страниц.",
|
||||
"Desired name for the output PDF file (e.g., \"result.pdf\").": "Желаемое имя выходного файла PDF (например, \"result.pdf\").",
|
||||
"Set the expiration time for the output link in minutes (default is 60 i.e 60 minutes or 1 hour).": "Установите срок действия выходной ссылки в минутах (по умолчанию 60 минут или 1 час).",
|
||||
"Password if the source PDF is protected.": "Пароль для защиты исходного PDF файла.",
|
||||
"HTTP auth username if required to access source url.": "Имя пользователя HTTP аутентификации при необходимости для доступа к исходному url.",
|
||||
"HTTP auth password if required to access source url.": "Пароль HTTP при необходимости для доступа к исходному url.",
|
||||
"URL of the PDF file to modify.": "URL файла PDF для изменения.",
|
||||
"X coordinate (from top-left corner) to place the image.": "X координата (от верхнего левого угла) для размещения изображения.",
|
||||
"Y coordinate (from top-left corner) to place the image.": "Координата Y (от верхнего левого угла) для размещения изображения.",
|
||||
"Optional width for the image on the PDF (in points). Aspect ratio is kept by default.": "Необязательная ширина изображения в PDF (в точках). Соотношение сторон сохраняется по умолчанию.",
|
||||
"Optional height for the image on the PDF (in points). Aspect ratio is kept by default.": "Необязательная высота изображения в PDF (в точках). Соотношение сторон сохраняется по умолчанию.",
|
||||
"Specify page indices as comma-separated values or ranges to process (e.g. \"0, 1, 2-\" or \"1, 2, 3-7\").": "Укажите индексы страницы как значения, разделенные запятыми, или диапазоны для процесса (например, \"0, 1, 2-\" или \"1, 2, 3-7\").",
|
||||
"The HTML code to convert to PDF.": "HTML-код для преобразования в PDF.",
|
||||
"CSS style margins (e.g., \"10px\", \"5mm 5mm 5mm 5mm\" for top, right, bottom, left).": "Поля стиля CSS (например, \"10px\", \"5mm 5mm 5mm 5mm\" для сверху, справа вниз, слева).",
|
||||
"Select a paper size. For custom sizes, input the value directly (e.g., '200mm 300mm') if your desired size isn't listed. Refer to PDF.co docs.": "Выберите размер бумаги. Для пользовательских размеров введите значение непосредственно (например, '200mm 300mm'), если желаемый размер не указан. Обратитесь к документации PDF.co.",
|
||||
"Set page orientation.": "Установить ориентацию страницы.",
|
||||
"Set to true to print background graphics and colors (default is true).": "Установите значение true для печати фоновой графики и цветов (по умолчанию верно).",
|
||||
"CSS media type to emulate.": "CSS-медиа тип для эмуляции.",
|
||||
"HTML content for the page header.": "Содержимое HTML для заголовка страницы.",
|
||||
"HTML content for the page footer.": "Содержимое HTML для нижнего колонтитула страницы.",
|
||||
"Set the expiration time for the output link in minutes (default is 60).": "Задать время истечения срока действия выходной ссылки в минутах (по умолчанию — 60).",
|
||||
"JSON object for additional configurations.": "JSON объект для дополнительных конфигураций.",
|
||||
"URL of the PDF file to convert.": "URL файла PDF для конвертирования.",
|
||||
"Select the desired structured output format.": "Выберите нужный структурированный формат вывода.",
|
||||
"Comma-separated page numbers or ranges (e.g., \"0,2,5-10\"). Leave empty for all pages.": "Разделенные запятыми номера страниц или диапазоны страниц (например, \"0,2,5-10\"). Оставьте пустым для всех страниц.",
|
||||
"Language for OCR if processing scanned documents (e.g., \"eng\", \"deu\", \"eng+deu\"). See PDF.co docs for list.": "Язык распознавания при обработке отсканированных документов (например, \"eng\", \"deu\", \"eng+deu\"). См. PDF.co docs для списка.",
|
||||
"URL of the PDF file to extract tables from.": "URL файла PDF для извлечения таблиц.",
|
||||
"The ID of your Document Parser template (created in PDF.co dashboard) designed to extract the table(s).": "Идентификатор шаблона Parser документа (созданного в PDF.co приборной панели), предназначенного для извлечения таблиц.",
|
||||
"Comma-separated page numbers or ranges (e.g., \"0,2,5-10\"). Overrides template settings if provided.": "Разделенные запятыми номера страниц или диапазоны страниц (например, \"0,2,5-10\"). Если указано, переопределяет настройки шаблона.",
|
||||
"URL of the PDF file to extract text from.": "URL файла PDF для извлечения текста.",
|
||||
"URL to the source PDF file.": "URL исходного PDF-файла.",
|
||||
"Set to true for case-sensitive search, false otherwise.": "Установите значение true для поиска, чувствительного к регистру, иначе false.",
|
||||
"Set to true to use regular expressions for search texts.": "Установите значение true, чтобы использовать регулярные выражения для поиска текстов.",
|
||||
"QR Code (Default)": "QR Code (Default)",
|
||||
"DataMatrix": "DataMatrix",
|
||||
"Code 128": "Код 128",
|
||||
"Code 39": "Код 39",
|
||||
"PDF417": "PDF417",
|
||||
"EAN-13": "EAN-13",
|
||||
"UPC-A": "UPC-A",
|
||||
"left": "слева",
|
||||
"right": "справа",
|
||||
"center": "центр",
|
||||
"A4 (Default)": "A4 (по умолчанию)",
|
||||
"Letter": "Буква",
|
||||
"Legal": "Юридическая информация",
|
||||
"Tabloid": "Таблоид",
|
||||
"Ledger": "Лёгкий",
|
||||
"A0": "A0",
|
||||
"A1": "A1",
|
||||
"A2": "A2",
|
||||
"A3": "A3",
|
||||
"A5": "A5",
|
||||
"A6": "A6",
|
||||
"Portrait (Default)": "Портретная (По умолчанию)",
|
||||
"Landscape": "Горизонтальный",
|
||||
"print (Default)": "print (Default)",
|
||||
"screen": "экран",
|
||||
"none": "нет",
|
||||
"JSON": "JSON",
|
||||
"CSV": "CSV",
|
||||
"XML": "XML"
|
||||
}
|
||||
@@ -0,0 +1,136 @@
|
||||
{
|
||||
"Automate PDF conversion, editing, extraction": "Automate PDF conversion, editing, extraction",
|
||||
"To get your PDF.co API key please [click here to create your account](https://app.pdf.co/).": "To get your PDF.co API key please [click here to create your account](https://app.pdf.co/).",
|
||||
"Add Barcode to PDF": "Add Barcode to PDF",
|
||||
"Add Image to PDF": "Add Image to PDF",
|
||||
"Add Text to PDF": "Add Text to PDF",
|
||||
"Convert HTML to PDF": "Convert HTML to PDF",
|
||||
"Convert PDF to JSON/CSV/XML": "Convert PDF to JSON/CSV/XML",
|
||||
"Extract Tables from PDF (using Template)": "Extract Tables from PDF (using Template)",
|
||||
"Extract Plain Text from PDF": "Extract Plain Text from PDF",
|
||||
"Search and Replace Text in PDF": "Search and Replace Text in PDF",
|
||||
"Generate a barcode image and add it to a specific location on a PDF.": "Generate a barcode image and add it to a specific location on a PDF.",
|
||||
"Add image to a PDF document.": "Add image to a PDF document.",
|
||||
"Adds text to PDF.": "Adds text to PDF.",
|
||||
"Convert HTML code into a downloadable PDF document.": "Convert HTML code into a downloadable PDF document.",
|
||||
"Convert PDF content into structured formats (JSON, CSV, or XML).": "Convert PDF content into structured formats (JSON, CSV, or XML).",
|
||||
"Extracts table data from a PDF using a predefined PDF.co Document Parser template.": "Extracts table data from a PDF using a predefined PDF.co Document Parser template.",
|
||||
"Extracts plain text content from a PDF document.": "Extracts plain text content from a PDF document.",
|
||||
"Search for specific text or patterns in a PDF and replace it with new text.": "Search for specific text or patterns in a PDF and replace it with new text.",
|
||||
"Source PDF URL": "Source PDF URL",
|
||||
"Barcode Value": "Barcode Value",
|
||||
"Barcode Type": "Barcode Type",
|
||||
"X Coordinate": "X Coordinate",
|
||||
"Y Coordinate": "Y Coordinate",
|
||||
"Width (optional)": "Width (optional)",
|
||||
"Height (optional)": "Height (optional)",
|
||||
"Pages": "Pages",
|
||||
"File Name": "File Name",
|
||||
"Expiration Time in Minutes": "Expiration Time in Minutes",
|
||||
"Source PDF Password": "Source PDF Password",
|
||||
"HTTP Username": "HTTP Username",
|
||||
"HTTP Password": "HTTP Password",
|
||||
"Image URL": "Image URL",
|
||||
"Width": "Width",
|
||||
"Height": "Height",
|
||||
"Target Pages": "Target Pages",
|
||||
"Text to Add": "Text to Add",
|
||||
"Font Size": "Font Size",
|
||||
"Color": "Color",
|
||||
"Bold Font ?": "Bold Font ?",
|
||||
"Stikeout Font ?": "Stikeout Font ?",
|
||||
"Underline Font ?": "Underline Font ?",
|
||||
"Font Name": "Font Name",
|
||||
"Text Box Height": "Text Box Height",
|
||||
"Text Box Width": "Text Box Width",
|
||||
"Text Box Alignment": "Text Box Alignment",
|
||||
"HTML Content": "HTML Content",
|
||||
"Output File Name": "Output File Name",
|
||||
"Margins": "Margins",
|
||||
"Paper Size": "Paper Size",
|
||||
"Orientation": "Orientation",
|
||||
"Print Background ?": "Print Background ?",
|
||||
"Media Type": "Media Type",
|
||||
"Header HTML": "Header HTML",
|
||||
"Footer HTML": "Footer HTML",
|
||||
"Do not wait till full page load ?": "Do not wait till full page load ?",
|
||||
"Output Link Expiration (minutes)": "Output Link Expiration (minutes)",
|
||||
"Profiles": "Profiles",
|
||||
"Output Format": "Output Format",
|
||||
"OCR Language": "OCR Language",
|
||||
"Template ID": "Template ID",
|
||||
"PDF URL": "PDF URL",
|
||||
"Text to Locate": "Text to Locate",
|
||||
"Replacement Text": "Replacement Text",
|
||||
"Case Sensitive": "Case Sensitive",
|
||||
"Use Regular Expressions ?": "Use Regular Expressions ?",
|
||||
"URL of the PDF file to add the barcode to.": "URL of the PDF file to add the barcode to.",
|
||||
"The text or data to encode in the barcode.": "The text or data to encode in the barcode.",
|
||||
"Select the type of barcode to generate.": "Select the type of barcode to generate.",
|
||||
"X coordinate (from top-left corner) to place the barcode.": "X coordinate (from top-left corner) to place the barcode.",
|
||||
"Y coordinate (from top-left corner) to place the barcode.": "Y coordinate (from top-left corner) to place the barcode.",
|
||||
"Optional width for the barcode image on the PDF (in points). Aspect ratio is kept by default.": "Optional width for the barcode image on the PDF (in points). Aspect ratio is kept by default.",
|
||||
"Optional height for the barcode image on the PDF (in points). Aspect ratio is kept by default.": "Optional height for the barcode image on the PDF (in points). Aspect ratio is kept by default.",
|
||||
"Comma-separated page numbers or ranges to add the barcode (e.g., \"0,2,5-10\"). Leave empty for all pages.": "Comma-separated page numbers or ranges to add the barcode (e.g., \"0,2,5-10\"). Leave empty for all pages.",
|
||||
"Desired name for the output PDF file (e.g., \"result.pdf\").": "Desired name for the output PDF file (e.g., \"result.pdf\").",
|
||||
"Set the expiration time for the output link in minutes (default is 60 i.e 60 minutes or 1 hour).": "Set the expiration time for the output link in minutes (default is 60 i.e 60 minutes or 1 hour).",
|
||||
"Password if the source PDF is protected.": "Password if the source PDF is protected.",
|
||||
"HTTP auth username if required to access source url.": "HTTP auth username if required to access source url.",
|
||||
"HTTP auth password if required to access source url.": "HTTP auth password if required to access source url.",
|
||||
"URL of the PDF file to modify.": "URL of the PDF file to modify.",
|
||||
"X coordinate (from top-left corner) to place the image.": "X coordinate (from top-left corner) to place the image.",
|
||||
"Y coordinate (from top-left corner) to place the image.": "Y coordinate (from top-left corner) to place the image.",
|
||||
"Optional width for the image on the PDF (in points). Aspect ratio is kept by default.": "Optional width for the image on the PDF (in points). Aspect ratio is kept by default.",
|
||||
"Optional height for the image on the PDF (in points). Aspect ratio is kept by default.": "Optional height for the image on the PDF (in points). Aspect ratio is kept by default.",
|
||||
"Specify page indices as comma-separated values or ranges to process (e.g. \"0, 1, 2-\" or \"1, 2, 3-7\").": "Specify page indices as comma-separated values or ranges to process (e.g. \"0, 1, 2-\" or \"1, 2, 3-7\").",
|
||||
"The HTML code to convert to PDF.": "The HTML code to convert to PDF.",
|
||||
"CSS style margins (e.g., \"10px\", \"5mm 5mm 5mm 5mm\" for top, right, bottom, left).": "CSS style margins (e.g., \"10px\", \"5mm 5mm 5mm 5mm\" for top, right, bottom, left).",
|
||||
"Select a paper size. For custom sizes, input the value directly (e.g., '200mm 300mm') if your desired size isn't listed. Refer to PDF.co docs.": "Select a paper size. For custom sizes, input the value directly (e.g., '200mm 300mm') if your desired size isn't listed. Refer to PDF.co docs.",
|
||||
"Set page orientation.": "Set page orientation.",
|
||||
"Set to true to print background graphics and colors (default is true).": "Set to true to print background graphics and colors (default is true).",
|
||||
"CSS media type to emulate.": "CSS media type to emulate.",
|
||||
"HTML content for the page header.": "HTML content for the page header.",
|
||||
"HTML content for the page footer.": "HTML content for the page footer.",
|
||||
"Set the expiration time for the output link in minutes (default is 60).": "Set the expiration time for the output link in minutes (default is 60).",
|
||||
"JSON object for additional configurations.": "JSON object for additional configurations.",
|
||||
"URL of the PDF file to convert.": "URL of the PDF file to convert.",
|
||||
"Select the desired structured output format.": "Select the desired structured output format.",
|
||||
"Comma-separated page numbers or ranges (e.g., \"0,2,5-10\"). Leave empty for all pages.": "Comma-separated page numbers or ranges (e.g., \"0,2,5-10\"). Leave empty for all pages.",
|
||||
"Language for OCR if processing scanned documents (e.g., \"eng\", \"deu\", \"eng+deu\"). See PDF.co docs for list.": "Language for OCR if processing scanned documents (e.g., \"eng\", \"deu\", \"eng+deu\"). See PDF.co docs for list.",
|
||||
"URL of the PDF file to extract tables from.": "URL of the PDF file to extract tables from.",
|
||||
"The ID of your Document Parser template (created in PDF.co dashboard) designed to extract the table(s).": "The ID of your Document Parser template (created in PDF.co dashboard) designed to extract the table(s).",
|
||||
"Comma-separated page numbers or ranges (e.g., \"0,2,5-10\"). Overrides template settings if provided.": "Comma-separated page numbers or ranges (e.g., \"0,2,5-10\"). Overrides template settings if provided.",
|
||||
"URL of the PDF file to extract text from.": "URL of the PDF file to extract text from.",
|
||||
"URL to the source PDF file.": "URL to the source PDF file.",
|
||||
"Set to true for case-sensitive search, false otherwise.": "Set to true for case-sensitive search, false otherwise.",
|
||||
"Set to true to use regular expressions for search texts.": "Set to true to use regular expressions for search texts.",
|
||||
"QR Code (Default)": "QR Code (Default)",
|
||||
"DataMatrix": "DataMatrix",
|
||||
"Code 128": "Code 128",
|
||||
"Code 39": "Code 39",
|
||||
"PDF417": "PDF417",
|
||||
"EAN-13": "EAN-13",
|
||||
"UPC-A": "UPC-A",
|
||||
"left": "left",
|
||||
"right": "right",
|
||||
"center": "center",
|
||||
"A4 (Default)": "A4 (Default)",
|
||||
"Letter": "Letter",
|
||||
"Legal": "Legal",
|
||||
"Tabloid": "Tabloid",
|
||||
"Ledger": "Ledger",
|
||||
"A0": "A0",
|
||||
"A1": "A1",
|
||||
"A2": "A2",
|
||||
"A3": "A3",
|
||||
"A5": "A5",
|
||||
"A6": "A6",
|
||||
"Portrait (Default)": "Portrait (Default)",
|
||||
"Landscape": "Landscape",
|
||||
"print (Default)": "print (Default)",
|
||||
"screen": "screen",
|
||||
"none": "none",
|
||||
"JSON": "JSON",
|
||||
"CSV": "CSV",
|
||||
"XML": "XML"
|
||||
}
|
||||
@@ -0,0 +1,137 @@
|
||||
{
|
||||
"PDF.co": "PDF.co",
|
||||
"Automate PDF conversion, editing, extraction": "Automate PDF conversion, editing, extraction",
|
||||
"To get your PDF.co API key please [click here to create your account](https://app.pdf.co/).": "To get your PDF.co API key please [click here to create your account](https://app.pdf.co/).",
|
||||
"Add Barcode to PDF": "Add Barcode to PDF",
|
||||
"Add Image to PDF": "Add Image to PDF",
|
||||
"Add Text to PDF": "Add Text to PDF",
|
||||
"Convert HTML to PDF": "Convert HTML to PDF",
|
||||
"Convert PDF to JSON/CSV/XML": "Convert PDF to JSON/CSV/XML",
|
||||
"Extract Tables from PDF (using Template)": "Extract Tables from PDF (using Template)",
|
||||
"Extract Plain Text from PDF": "Extract Plain Text from PDF",
|
||||
"Search and Replace Text in PDF": "Search and Replace Text in PDF",
|
||||
"Generate a barcode image and add it to a specific location on a PDF.": "Generate a barcode image and add it to a specific location on a PDF.",
|
||||
"Add image to a PDF document.": "Add image to a PDF document.",
|
||||
"Adds text to PDF.": "Adds text to PDF.",
|
||||
"Convert HTML code into a downloadable PDF document.": "Convert HTML code into a downloadable PDF document.",
|
||||
"Convert PDF content into structured formats (JSON, CSV, or XML).": "Convert PDF content into structured formats (JSON, CSV, or XML).",
|
||||
"Extracts table data from a PDF using a predefined PDF.co Document Parser template.": "Extracts table data from a PDF using a predefined PDF.co Document Parser template.",
|
||||
"Extracts plain text content from a PDF document.": "Extracts plain text content from a PDF document.",
|
||||
"Search for specific text or patterns in a PDF and replace it with new text.": "Search for specific text or patterns in a PDF and replace it with new text.",
|
||||
"Source PDF URL": "Source PDF URL",
|
||||
"Barcode Value": "Barcode Value",
|
||||
"Barcode Type": "Barcode Type",
|
||||
"X Coordinate": "X Coordinate",
|
||||
"Y Coordinate": "Y Coordinate",
|
||||
"Width (optional)": "Width (optional)",
|
||||
"Height (optional)": "Height (optional)",
|
||||
"Pages": "Pages",
|
||||
"File Name": "File Name",
|
||||
"Expiration Time in Minutes": "Expiration Time in Minutes",
|
||||
"Source PDF Password": "Source PDF Password",
|
||||
"HTTP Username": "HTTP Username",
|
||||
"HTTP Password": "HTTP Password",
|
||||
"Image URL": "Image URL",
|
||||
"Width": "Width",
|
||||
"Height": "Height",
|
||||
"Target Pages": "Target Pages",
|
||||
"Text to Add": "Text to Add",
|
||||
"Font Size": "Font Size",
|
||||
"Color": "Color",
|
||||
"Bold Font ?": "Bold Font ?",
|
||||
"Stikeout Font ?": "Stikeout Font ?",
|
||||
"Underline Font ?": "Underline Font ?",
|
||||
"Font Name": "Font Name",
|
||||
"Text Box Height": "Text Box Height",
|
||||
"Text Box Width": "Text Box Width",
|
||||
"Text Box Alignment": "Text Box Alignment",
|
||||
"HTML Content": "HTML Content",
|
||||
"Output File Name": "Output File Name",
|
||||
"Margins": "Margins",
|
||||
"Paper Size": "Paper Size",
|
||||
"Orientation": "Orientation",
|
||||
"Print Background ?": "Print Background ?",
|
||||
"Media Type": "Media Type",
|
||||
"Header HTML": "Header HTML",
|
||||
"Footer HTML": "Footer HTML",
|
||||
"Do not wait till full page load ?": "Do not wait till full page load ?",
|
||||
"Output Link Expiration (minutes)": "Output Link Expiration (minutes)",
|
||||
"Profiles": "Profiles",
|
||||
"Output Format": "Output Format",
|
||||
"OCR Language": "OCR Language",
|
||||
"Template ID": "Template ID",
|
||||
"PDF URL": "PDF URL",
|
||||
"Text to Locate": "Text to Locate",
|
||||
"Replacement Text": "Replacement Text",
|
||||
"Case Sensitive": "Case Sensitive",
|
||||
"Use Regular Expressions ?": "Use Regular Expressions ?",
|
||||
"URL of the PDF file to add the barcode to.": "URL of the PDF file to add the barcode to.",
|
||||
"The text or data to encode in the barcode.": "The text or data to encode in the barcode.",
|
||||
"Select the type of barcode to generate.": "Select the type of barcode to generate.",
|
||||
"X coordinate (from top-left corner) to place the barcode.": "X coordinate (from top-left corner) to place the barcode.",
|
||||
"Y coordinate (from top-left corner) to place the barcode.": "Y coordinate (from top-left corner) to place the barcode.",
|
||||
"Optional width for the barcode image on the PDF (in points). Aspect ratio is kept by default.": "Optional width for the barcode image on the PDF (in points). Aspect ratio is kept by default.",
|
||||
"Optional height for the barcode image on the PDF (in points). Aspect ratio is kept by default.": "Optional height for the barcode image on the PDF (in points). Aspect ratio is kept by default.",
|
||||
"Comma-separated page numbers or ranges to add the barcode (e.g., \"0,2,5-10\"). Leave empty for all pages.": "Comma-separated page numbers or ranges to add the barcode (e.g., \"0,2,5-10\"). Leave empty for all pages.",
|
||||
"Desired name for the output PDF file (e.g., \"result.pdf\").": "Desired name for the output PDF file (e.g., \"result.pdf\").",
|
||||
"Set the expiration time for the output link in minutes (default is 60 i.e 60 minutes or 1 hour).": "Set the expiration time for the output link in minutes (default is 60 i.e 60 minutes or 1 hour).",
|
||||
"Password if the source PDF is protected.": "Password if the source PDF is protected.",
|
||||
"HTTP auth username if required to access source url.": "HTTP auth username if required to access source url.",
|
||||
"HTTP auth password if required to access source url.": "HTTP auth password if required to access source url.",
|
||||
"URL of the PDF file to modify.": "URL of the PDF file to modify.",
|
||||
"X coordinate (from top-left corner) to place the image.": "X coordinate (from top-left corner) to place the image.",
|
||||
"Y coordinate (from top-left corner) to place the image.": "Y coordinate (from top-left corner) to place the image.",
|
||||
"Optional width for the image on the PDF (in points). Aspect ratio is kept by default.": "Optional width for the image on the PDF (in points). Aspect ratio is kept by default.",
|
||||
"Optional height for the image on the PDF (in points). Aspect ratio is kept by default.": "Optional height for the image on the PDF (in points). Aspect ratio is kept by default.",
|
||||
"Specify page indices as comma-separated values or ranges to process (e.g. \"0, 1, 2-\" or \"1, 2, 3-7\").": "Specify page indices as comma-separated values or ranges to process (e.g. \"0, 1, 2-\" or \"1, 2, 3-7\").",
|
||||
"The HTML code to convert to PDF.": "The HTML code to convert to PDF.",
|
||||
"CSS style margins (e.g., \"10px\", \"5mm 5mm 5mm 5mm\" for top, right, bottom, left).": "CSS style margins (e.g., \"10px\", \"5mm 5mm 5mm 5mm\" for top, right, bottom, left).",
|
||||
"Select a paper size. For custom sizes, input the value directly (e.g., '200mm 300mm') if your desired size isn't listed. Refer to PDF.co docs.": "Select a paper size. For custom sizes, input the value directly (e.g., '200mm 300mm') if your desired size isn't listed. Refer to PDF.co docs.",
|
||||
"Set page orientation.": "Set page orientation.",
|
||||
"Set to true to print background graphics and colors (default is true).": "Set to true to print background graphics and colors (default is true).",
|
||||
"CSS media type to emulate.": "CSS media type to emulate.",
|
||||
"HTML content for the page header.": "HTML content for the page header.",
|
||||
"HTML content for the page footer.": "HTML content for the page footer.",
|
||||
"Set the expiration time for the output link in minutes (default is 60).": "Set the expiration time for the output link in minutes (default is 60).",
|
||||
"JSON object for additional configurations.": "JSON object for additional configurations.",
|
||||
"URL of the PDF file to convert.": "URL of the PDF file to convert.",
|
||||
"Select the desired structured output format.": "Select the desired structured output format.",
|
||||
"Comma-separated page numbers or ranges (e.g., \"0,2,5-10\"). Leave empty for all pages.": "Comma-separated page numbers or ranges (e.g., \"0,2,5-10\"). Leave empty for all pages.",
|
||||
"Language for OCR if processing scanned documents (e.g., \"eng\", \"deu\", \"eng+deu\"). See PDF.co docs for list.": "Language for OCR if processing scanned documents (e.g., \"eng\", \"deu\", \"eng+deu\"). See PDF.co docs for list.",
|
||||
"URL of the PDF file to extract tables from.": "URL of the PDF file to extract tables from.",
|
||||
"The ID of your Document Parser template (created in PDF.co dashboard) designed to extract the table(s).": "The ID of your Document Parser template (created in PDF.co dashboard) designed to extract the table(s).",
|
||||
"Comma-separated page numbers or ranges (e.g., \"0,2,5-10\"). Overrides template settings if provided.": "Comma-separated page numbers or ranges (e.g., \"0,2,5-10\"). Overrides template settings if provided.",
|
||||
"URL of the PDF file to extract text from.": "URL of the PDF file to extract text from.",
|
||||
"URL to the source PDF file.": "URL to the source PDF file.",
|
||||
"Set to true for case-sensitive search, false otherwise.": "Set to true for case-sensitive search, false otherwise.",
|
||||
"Set to true to use regular expressions for search texts.": "Set to true to use regular expressions for search texts.",
|
||||
"QR Code (Default)": "QR Code (Default)",
|
||||
"DataMatrix": "DataMatrix",
|
||||
"Code 128": "Code 128",
|
||||
"Code 39": "Code 39",
|
||||
"PDF417": "PDF417",
|
||||
"EAN-13": "EAN-13",
|
||||
"UPC-A": "UPC-A",
|
||||
"left": "left",
|
||||
"right": "right",
|
||||
"center": "center",
|
||||
"A4 (Default)": "A4 (Default)",
|
||||
"Letter": "Letter",
|
||||
"Legal": "Legal",
|
||||
"Tabloid": "Tabloid",
|
||||
"Ledger": "Ledger",
|
||||
"A0": "A0",
|
||||
"A1": "A1",
|
||||
"A2": "A2",
|
||||
"A3": "A3",
|
||||
"A5": "A5",
|
||||
"A6": "A6",
|
||||
"Portrait (Default)": "Portrait (Default)",
|
||||
"Landscape": "Landscape",
|
||||
"print (Default)": "print (Default)",
|
||||
"screen": "screen",
|
||||
"none": "none",
|
||||
"JSON": "JSON",
|
||||
"CSV": "CSV",
|
||||
"XML": "XML"
|
||||
}
|
||||
@@ -0,0 +1,136 @@
|
||||
{
|
||||
"Automate PDF conversion, editing, extraction": "Automate PDF conversion, editing, extraction",
|
||||
"To get your PDF.co API key please [click here to create your account](https://app.pdf.co/).": "To get your PDF.co API key please [click here to create your account](https://app.pdf.co/).",
|
||||
"Add Barcode to PDF": "Add Barcode to PDF",
|
||||
"Add Image to PDF": "Add Image to PDF",
|
||||
"Add Text to PDF": "Add Text to PDF",
|
||||
"Convert HTML to PDF": "Convert HTML to PDF",
|
||||
"Convert PDF to JSON/CSV/XML": "Convert PDF to JSON/CSV/XML",
|
||||
"Extract Tables from PDF (using Template)": "Extract Tables from PDF (using Template)",
|
||||
"Extract Plain Text from PDF": "Extract Plain Text from PDF",
|
||||
"Search and Replace Text in PDF": "Search and Replace Text in PDF",
|
||||
"Generate a barcode image and add it to a specific location on a PDF.": "Generate a barcode image and add it to a specific location on a PDF.",
|
||||
"Add image to a PDF document.": "Add image to a PDF document.",
|
||||
"Adds text to PDF.": "Adds text to PDF.",
|
||||
"Convert HTML code into a downloadable PDF document.": "Convert HTML code into a downloadable PDF document.",
|
||||
"Convert PDF content into structured formats (JSON, CSV, or XML).": "Convert PDF content into structured formats (JSON, CSV, or XML).",
|
||||
"Extracts table data from a PDF using a predefined PDF.co Document Parser template.": "Extracts table data from a PDF using a predefined PDF.co Document Parser template.",
|
||||
"Extracts plain text content from a PDF document.": "Extracts plain text content from a PDF document.",
|
||||
"Search for specific text or patterns in a PDF and replace it with new text.": "Search for specific text or patterns in a PDF and replace it with new text.",
|
||||
"Source PDF URL": "Source PDF URL",
|
||||
"Barcode Value": "Barcode Value",
|
||||
"Barcode Type": "Barcode Type",
|
||||
"X Coordinate": "X Coordinate",
|
||||
"Y Coordinate": "Y Coordinate",
|
||||
"Width (optional)": "Width (optional)",
|
||||
"Height (optional)": "Height (optional)",
|
||||
"Pages": "Pages",
|
||||
"File Name": "File Name",
|
||||
"Expiration Time in Minutes": "Expiration Time in Minutes",
|
||||
"Source PDF Password": "Source PDF Password",
|
||||
"HTTP Username": "HTTP Username",
|
||||
"HTTP Password": "HTTP Password",
|
||||
"Image URL": "Image URL",
|
||||
"Width": "Width",
|
||||
"Height": "Height",
|
||||
"Target Pages": "Target Pages",
|
||||
"Text to Add": "Text to Add",
|
||||
"Font Size": "Font Size",
|
||||
"Color": "Color",
|
||||
"Bold Font ?": "Bold Font ?",
|
||||
"Stikeout Font ?": "Stikeout Font ?",
|
||||
"Underline Font ?": "Underline Font ?",
|
||||
"Font Name": "Font Name",
|
||||
"Text Box Height": "Text Box Height",
|
||||
"Text Box Width": "Text Box Width",
|
||||
"Text Box Alignment": "Text Box Alignment",
|
||||
"HTML Content": "HTML Content",
|
||||
"Output File Name": "Output File Name",
|
||||
"Margins": "Margins",
|
||||
"Paper Size": "Paper Size",
|
||||
"Orientation": "Orientation",
|
||||
"Print Background ?": "Print Background ?",
|
||||
"Media Type": "Media Type",
|
||||
"Header HTML": "Header HTML",
|
||||
"Footer HTML": "Footer HTML",
|
||||
"Do not wait till full page load ?": "Do not wait till full page load ?",
|
||||
"Output Link Expiration (minutes)": "Output Link Expiration (minutes)",
|
||||
"Profiles": "Profiles",
|
||||
"Output Format": "Output Format",
|
||||
"OCR Language": "OCR Language",
|
||||
"Template ID": "Template ID",
|
||||
"PDF URL": "PDF URL",
|
||||
"Text to Locate": "Text to Locate",
|
||||
"Replacement Text": "Replacement Text",
|
||||
"Case Sensitive": "Case Sensitive",
|
||||
"Use Regular Expressions ?": "Use Regular Expressions ?",
|
||||
"URL of the PDF file to add the barcode to.": "URL of the PDF file to add the barcode to.",
|
||||
"The text or data to encode in the barcode.": "The text or data to encode in the barcode.",
|
||||
"Select the type of barcode to generate.": "Select the type of barcode to generate.",
|
||||
"X coordinate (from top-left corner) to place the barcode.": "X coordinate (from top-left corner) to place the barcode.",
|
||||
"Y coordinate (from top-left corner) to place the barcode.": "Y coordinate (from top-left corner) to place the barcode.",
|
||||
"Optional width for the barcode image on the PDF (in points). Aspect ratio is kept by default.": "Optional width for the barcode image on the PDF (in points). Aspect ratio is kept by default.",
|
||||
"Optional height for the barcode image on the PDF (in points). Aspect ratio is kept by default.": "Optional height for the barcode image on the PDF (in points). Aspect ratio is kept by default.",
|
||||
"Comma-separated page numbers or ranges to add the barcode (e.g., \"0,2,5-10\"). Leave empty for all pages.": "Comma-separated page numbers or ranges to add the barcode (e.g., \"0,2,5-10\"). Leave empty for all pages.",
|
||||
"Desired name for the output PDF file (e.g., \"result.pdf\").": "Desired name for the output PDF file (e.g., \"result.pdf\").",
|
||||
"Set the expiration time for the output link in minutes (default is 60 i.e 60 minutes or 1 hour).": "Set the expiration time for the output link in minutes (default is 60 i.e 60 minutes or 1 hour).",
|
||||
"Password if the source PDF is protected.": "Password if the source PDF is protected.",
|
||||
"HTTP auth username if required to access source url.": "HTTP auth username if required to access source url.",
|
||||
"HTTP auth password if required to access source url.": "HTTP auth password if required to access source url.",
|
||||
"URL of the PDF file to modify.": "URL of the PDF file to modify.",
|
||||
"X coordinate (from top-left corner) to place the image.": "X coordinate (from top-left corner) to place the image.",
|
||||
"Y coordinate (from top-left corner) to place the image.": "Y coordinate (from top-left corner) to place the image.",
|
||||
"Optional width for the image on the PDF (in points). Aspect ratio is kept by default.": "Optional width for the image on the PDF (in points). Aspect ratio is kept by default.",
|
||||
"Optional height for the image on the PDF (in points). Aspect ratio is kept by default.": "Optional height for the image on the PDF (in points). Aspect ratio is kept by default.",
|
||||
"Specify page indices as comma-separated values or ranges to process (e.g. \"0, 1, 2-\" or \"1, 2, 3-7\").": "Specify page indices as comma-separated values or ranges to process (e.g. \"0, 1, 2-\" or \"1, 2, 3-7\").",
|
||||
"The HTML code to convert to PDF.": "The HTML code to convert to PDF.",
|
||||
"CSS style margins (e.g., \"10px\", \"5mm 5mm 5mm 5mm\" for top, right, bottom, left).": "CSS style margins (e.g., \"10px\", \"5mm 5mm 5mm 5mm\" for top, right, bottom, left).",
|
||||
"Select a paper size. For custom sizes, input the value directly (e.g., '200mm 300mm') if your desired size isn't listed. Refer to PDF.co docs.": "Select a paper size. For custom sizes, input the value directly (e.g., '200mm 300mm') if your desired size isn't listed. Refer to PDF.co docs.",
|
||||
"Set page orientation.": "Set page orientation.",
|
||||
"Set to true to print background graphics and colors (default is true).": "Set to true to print background graphics and colors (default is true).",
|
||||
"CSS media type to emulate.": "CSS media type to emulate.",
|
||||
"HTML content for the page header.": "HTML content for the page header.",
|
||||
"HTML content for the page footer.": "HTML content for the page footer.",
|
||||
"Set the expiration time for the output link in minutes (default is 60).": "Set the expiration time for the output link in minutes (default is 60).",
|
||||
"JSON object for additional configurations.": "JSON object for additional configurations.",
|
||||
"URL of the PDF file to convert.": "URL of the PDF file to convert.",
|
||||
"Select the desired structured output format.": "Select the desired structured output format.",
|
||||
"Comma-separated page numbers or ranges (e.g., \"0,2,5-10\"). Leave empty for all pages.": "Comma-separated page numbers or ranges (e.g., \"0,2,5-10\"). Leave empty for all pages.",
|
||||
"Language for OCR if processing scanned documents (e.g., \"eng\", \"deu\", \"eng+deu\"). See PDF.co docs for list.": "Language for OCR if processing scanned documents (e.g., \"eng\", \"deu\", \"eng+deu\"). See PDF.co docs for list.",
|
||||
"URL of the PDF file to extract tables from.": "URL of the PDF file to extract tables from.",
|
||||
"The ID of your Document Parser template (created in PDF.co dashboard) designed to extract the table(s).": "The ID of your Document Parser template (created in PDF.co dashboard) designed to extract the table(s).",
|
||||
"Comma-separated page numbers or ranges (e.g., \"0,2,5-10\"). Overrides template settings if provided.": "Comma-separated page numbers or ranges (e.g., \"0,2,5-10\"). Overrides template settings if provided.",
|
||||
"URL of the PDF file to extract text from.": "URL of the PDF file to extract text from.",
|
||||
"URL to the source PDF file.": "URL to the source PDF file.",
|
||||
"Set to true for case-sensitive search, false otherwise.": "Set to true for case-sensitive search, false otherwise.",
|
||||
"Set to true to use regular expressions for search texts.": "Set to true to use regular expressions for search texts.",
|
||||
"QR Code (Default)": "QR Code (Default)",
|
||||
"DataMatrix": "DataMatrix",
|
||||
"Code 128": "Code 128",
|
||||
"Code 39": "Code 39",
|
||||
"PDF417": "PDF417",
|
||||
"EAN-13": "EAN-13",
|
||||
"UPC-A": "UPC-A",
|
||||
"left": "left",
|
||||
"right": "right",
|
||||
"center": "center",
|
||||
"A4 (Default)": "A4 (Default)",
|
||||
"Letter": "Letter",
|
||||
"Legal": "Legal",
|
||||
"Tabloid": "Tabloid",
|
||||
"Ledger": "Ledger",
|
||||
"A0": "A0",
|
||||
"A1": "A1",
|
||||
"A2": "A2",
|
||||
"A3": "A3",
|
||||
"A5": "A5",
|
||||
"A6": "A6",
|
||||
"Portrait (Default)": "Portrait (Default)",
|
||||
"Landscape": "Landscape",
|
||||
"print (Default)": "print (Default)",
|
||||
"screen": "screen",
|
||||
"none": "无",
|
||||
"JSON": "JSON",
|
||||
"CSV": "CSV",
|
||||
"XML": "XML"
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
import { PieceAuth, createPiece } from '@activepieces/pieces-framework';
|
||||
import {
|
||||
searchAndReplaceText,
|
||||
addTextToPdf,
|
||||
addImageToPdf,
|
||||
convertHtmlToPdf,
|
||||
extractTextFromPdf,
|
||||
convertPdfToStructuredFormat,
|
||||
extractTablesFromPdf,
|
||||
addBarcodeToPdf,
|
||||
} from './lib/actions';
|
||||
import { PieceCategory } from '@activepieces/shared';
|
||||
|
||||
export const pdfCoAuth = PieceAuth.SecretText({
|
||||
displayName: 'API Key',
|
||||
description: `To get your PDF.co API key please [click here to create your account](https://app.pdf.co/).`,
|
||||
required: true,
|
||||
});
|
||||
|
||||
export const pdfCo = createPiece({
|
||||
displayName: 'PDF.co',
|
||||
description: 'Automate PDF conversion, editing, extraction',
|
||||
categories: [PieceCategory.PRODUCTIVITY, PieceCategory.CONTENT_AND_FILES],
|
||||
logoUrl: 'https://cdn.activepieces.com/pieces/pdf-co.png',
|
||||
auth: pdfCoAuth,
|
||||
authors: ['onyedikachi-david', 'kishanprmr'],
|
||||
actions: [
|
||||
addBarcodeToPdf,
|
||||
addImageToPdf,
|
||||
addTextToPdf,
|
||||
convertHtmlToPdf,
|
||||
convertPdfToStructuredFormat,
|
||||
extractTablesFromPdf,
|
||||
extractTextFromPdf,
|
||||
searchAndReplaceText,
|
||||
],
|
||||
triggers: [],
|
||||
});
|
||||
@@ -0,0 +1,223 @@
|
||||
import { Property, DropdownOption, createAction } from '@activepieces/pieces-framework';
|
||||
import { httpClient, HttpMethod, HttpError } from '@activepieces/pieces-common';
|
||||
import {
|
||||
PdfCoSuccessResponse,
|
||||
PdfCoErrorResponse,
|
||||
PdfCoImageAnnotation,
|
||||
PdfCoAddImagesRequestBody,
|
||||
} from '../common/types';
|
||||
import { pdfCoAuth } from '../../index';
|
||||
import { BASE_URL, commonProps } from '../common/props';
|
||||
|
||||
// Interface for /barcode/generate request
|
||||
interface BarcodeGenerateRequestBody {
|
||||
value: string;
|
||||
type?: string;
|
||||
async: boolean;
|
||||
inline: boolean; // Must be false to get URL
|
||||
name?: string;
|
||||
decorationImage?: string;
|
||||
profiles?: Record<string, unknown>;
|
||||
}
|
||||
|
||||
// Interface for /barcode/generate success response (when inline=false)
|
||||
interface BarcodeGenerateSuccessResponse {
|
||||
url: string; // URL to the generated barcode image
|
||||
error: false;
|
||||
status: number;
|
||||
name: string;
|
||||
duration: number;
|
||||
remainingCredits: number;
|
||||
credits: number;
|
||||
}
|
||||
|
||||
// Supported Barcode Types
|
||||
const barcodeTypes: DropdownOption<string>[] = [
|
||||
{ label: 'QR Code (Default)', value: 'QRCode' },
|
||||
{ label: 'DataMatrix', value: 'DataMatrix' },
|
||||
{ label: 'Code 128', value: 'Code128' },
|
||||
{ label: 'Code 39', value: 'Code39' },
|
||||
{ label: 'PDF417', value: 'PDF417' },
|
||||
{ label: 'EAN-13', value: 'EAN13' },
|
||||
{ label: 'UPC-A', value: 'UPCA' },
|
||||
];
|
||||
|
||||
export const addBarcodeToPdf = createAction({
|
||||
name: 'add_barcode_to_pdf',
|
||||
displayName: 'Add Barcode to PDF',
|
||||
description: 'Generate a barcode image and add it to a specific location on a PDF.',
|
||||
auth: pdfCoAuth,
|
||||
props: {
|
||||
sourcePdfUrl: Property.ShortText({
|
||||
displayName: 'Source PDF URL',
|
||||
description: 'URL of the PDF file to add the barcode to.',
|
||||
required: true,
|
||||
}),
|
||||
barcodeValue: Property.ShortText({
|
||||
displayName: 'Barcode Value',
|
||||
description: 'The text or data to encode in the barcode.',
|
||||
required: true,
|
||||
}),
|
||||
barcodeType: Property.StaticDropdown({
|
||||
displayName: 'Barcode Type',
|
||||
description: 'Select the type of barcode to generate.',
|
||||
required: true,
|
||||
options: { disabled: false, options: barcodeTypes, placeholder: 'Select Barcode Type' },
|
||||
}),
|
||||
x: Property.Number({
|
||||
displayName: 'X Coordinate',
|
||||
description: 'X coordinate (from top-left corner) to place the barcode.',
|
||||
required: true,
|
||||
}),
|
||||
y: Property.Number({
|
||||
displayName: 'Y Coordinate',
|
||||
description: 'Y coordinate (from top-left corner) to place the barcode.',
|
||||
required: true,
|
||||
}),
|
||||
width: Property.Number({
|
||||
displayName: 'Width (optional)',
|
||||
description:
|
||||
'Optional width for the barcode image on the PDF (in points). Aspect ratio is kept by default.',
|
||||
required: false,
|
||||
}),
|
||||
height: Property.Number({
|
||||
displayName: 'Height (optional)',
|
||||
description:
|
||||
'Optional height for the barcode image on the PDF (in points). Aspect ratio is kept by default.',
|
||||
required: false,
|
||||
}),
|
||||
pages: Property.ShortText({
|
||||
displayName: 'Pages',
|
||||
description:
|
||||
'Comma-separated page numbers or ranges to add the barcode (e.g., "0,2,5-10"). Leave empty for all pages.',
|
||||
required: false,
|
||||
}),
|
||||
...commonProps,
|
||||
},
|
||||
async run(context) {
|
||||
const { auth, propsValue } = context;
|
||||
const {
|
||||
sourcePdfUrl,
|
||||
barcodeValue,
|
||||
barcodeType,
|
||||
x,
|
||||
y,
|
||||
width,
|
||||
height,
|
||||
pages,
|
||||
fileName,
|
||||
pdfPassword,
|
||||
httpPassword,
|
||||
httpUsername,
|
||||
expiration,
|
||||
} = propsValue;
|
||||
|
||||
let barcodeImageUrl = '';
|
||||
|
||||
// --- Step 1: Generate Barcode ---
|
||||
const generateBarcodeBody: BarcodeGenerateRequestBody = {
|
||||
value: barcodeValue,
|
||||
type: barcodeType,
|
||||
async: false,
|
||||
inline: false, // Need the URL
|
||||
};
|
||||
|
||||
try {
|
||||
const generateResponse = await httpClient.sendRequest<
|
||||
BarcodeGenerateSuccessResponse | PdfCoErrorResponse
|
||||
>({
|
||||
method: HttpMethod.POST,
|
||||
url: `${BASE_URL}/barcode/generate`,
|
||||
headers: {
|
||||
'x-api-key': auth.secret_text,
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
body: generateBarcodeBody,
|
||||
});
|
||||
|
||||
if (generateResponse.body.error) {
|
||||
const errorBody = generateResponse.body as PdfCoErrorResponse;
|
||||
throw new Error(
|
||||
`PDF.co Barcode Generation Error: Status ${errorBody.status}. ${
|
||||
errorBody.message || 'Unknown error.'
|
||||
}`,
|
||||
);
|
||||
}
|
||||
|
||||
barcodeImageUrl = (generateResponse.body as BarcodeGenerateSuccessResponse).url;
|
||||
if (!barcodeImageUrl) {
|
||||
throw new Error('Failed to get barcode image URL from PDF.co response.');
|
||||
}
|
||||
} catch (error) {
|
||||
if (error instanceof HttpError) {
|
||||
const responseBody = error.response?.body as PdfCoErrorResponse | undefined;
|
||||
throw new Error(
|
||||
`HTTP Error generating barcode: ${error.message}. ${
|
||||
responseBody?.message
|
||||
? 'Server message: ' + responseBody.message
|
||||
: 'Raw response: ' + JSON.stringify(responseBody)
|
||||
}`,
|
||||
);
|
||||
}
|
||||
throw error; // Re-throw other errors
|
||||
}
|
||||
|
||||
// --- Step 2: Add Barcode Image to PDF ---
|
||||
const imageAnnotation: PdfCoImageAnnotation = {
|
||||
url: barcodeImageUrl,
|
||||
x: x,
|
||||
y: y,
|
||||
width,
|
||||
height,
|
||||
pages,
|
||||
};
|
||||
|
||||
const addImageBody: PdfCoAddImagesRequestBody = {
|
||||
url: sourcePdfUrl,
|
||||
images: [imageAnnotation],
|
||||
async: false,
|
||||
inline: false, // Get final PDF URL
|
||||
name: fileName,
|
||||
expiration,
|
||||
httppassword: httpPassword,
|
||||
httpusername: httpUsername,
|
||||
password: pdfPassword,
|
||||
};
|
||||
|
||||
try {
|
||||
const addResponse = await httpClient.sendRequest<PdfCoSuccessResponse | PdfCoErrorResponse>({
|
||||
method: HttpMethod.POST,
|
||||
url: `${BASE_URL}/pdf/edit/add`,
|
||||
headers: {
|
||||
'x-api-key': auth.secret_text,
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
body: addImageBody,
|
||||
});
|
||||
|
||||
if (addResponse.body.error) {
|
||||
const errorBody = addResponse.body as PdfCoErrorResponse;
|
||||
throw new Error(
|
||||
`PDF.co Add Image Error: Status ${errorBody.status}. ${
|
||||
errorBody.message || 'Unknown error.'
|
||||
}`,
|
||||
);
|
||||
}
|
||||
|
||||
// Return the successful response containing the final PDF URL
|
||||
return addResponse.body as PdfCoSuccessResponse;
|
||||
} catch (error) {
|
||||
if (error instanceof HttpError) {
|
||||
const responseBody = error.response?.body as PdfCoErrorResponse | undefined;
|
||||
throw new Error(
|
||||
`HTTP Error adding barcode image to PDF: ${error.message}. ${
|
||||
responseBody?.message
|
||||
? 'Server message: ' + responseBody.message
|
||||
: 'Raw response: ' + JSON.stringify(responseBody)
|
||||
}`,
|
||||
);
|
||||
}
|
||||
throw error; // Re-throw other errors
|
||||
}
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,142 @@
|
||||
import { Property, createAction } from '@activepieces/pieces-framework';
|
||||
import { httpClient, HttpMethod, HttpError } from '@activepieces/pieces-common';
|
||||
import {
|
||||
PdfCoSuccessResponse,
|
||||
PdfCoErrorResponse,
|
||||
PdfCoImageAnnotation,
|
||||
PdfCoAddImagesRequestBody,
|
||||
} from '../common/types';
|
||||
import { pdfCoAuth } from '../../index';
|
||||
import { BASE_URL, commonProps } from '../common/props';
|
||||
|
||||
export const addImageToPdf = createAction({
|
||||
name: 'add_image_to_pdf',
|
||||
displayName: 'Add Image to PDF',
|
||||
description: 'Add image to a PDF document.',
|
||||
auth: pdfCoAuth,
|
||||
props: {
|
||||
url: Property.ShortText({
|
||||
displayName: 'Source PDF URL',
|
||||
description: 'URL of the PDF file to modify.',
|
||||
required: true,
|
||||
}),
|
||||
imageUrl: Property.ShortText({
|
||||
displayName: 'Image URL',
|
||||
required: true,
|
||||
}),
|
||||
xCoordinate: Property.Number({
|
||||
displayName: 'X Coordinate',
|
||||
description: 'X coordinate (from top-left corner) to place the image.',
|
||||
required: true,
|
||||
}),
|
||||
yCoordinate: Property.Number({
|
||||
displayName: 'Y Coordinate',
|
||||
required: true,
|
||||
description: 'Y coordinate (from top-left corner) to place the image.',
|
||||
}),
|
||||
width: Property.Number({
|
||||
displayName: 'Width',
|
||||
description:
|
||||
'Optional width for the image on the PDF (in points). Aspect ratio is kept by default.',
|
||||
required: false,
|
||||
}),
|
||||
height: Property.Number({
|
||||
displayName: 'Height',
|
||||
description:
|
||||
'Optional height for the image on the PDF (in points). Aspect ratio is kept by default.',
|
||||
required: false,
|
||||
}),
|
||||
pages: Property.ShortText({
|
||||
displayName: 'Target Pages',
|
||||
description:
|
||||
'Specify page indices as comma-separated values or ranges to process (e.g. "0, 1, 2-" or "1, 2, 3-7").',
|
||||
required: false,
|
||||
}),
|
||||
...commonProps,
|
||||
},
|
||||
async run(context) {
|
||||
const { auth, propsValue } = context;
|
||||
const {
|
||||
url,
|
||||
imageUrl,
|
||||
fileName,
|
||||
pdfPassword,
|
||||
xCoordinate,
|
||||
pages,
|
||||
yCoordinate,
|
||||
width,
|
||||
height,
|
||||
expiration,
|
||||
httpPassword,
|
||||
httpUsername,
|
||||
} = propsValue;
|
||||
|
||||
const imageAnnotationPayload: PdfCoImageAnnotation = {
|
||||
url: imageUrl,
|
||||
x: xCoordinate,
|
||||
y: yCoordinate,
|
||||
pages,
|
||||
height,
|
||||
width,
|
||||
};
|
||||
|
||||
const requestBody: PdfCoAddImagesRequestBody = {
|
||||
url: url,
|
||||
images: [imageAnnotationPayload],
|
||||
async: false,
|
||||
name: fileName,
|
||||
expiration,
|
||||
httppassword: httpPassword,
|
||||
httpusername: httpUsername,
|
||||
password: pdfPassword,
|
||||
inline: false,
|
||||
};
|
||||
|
||||
try {
|
||||
const response = await httpClient.sendRequest<PdfCoSuccessResponse | PdfCoErrorResponse>({
|
||||
method: HttpMethod.POST,
|
||||
url: `${BASE_URL}/pdf/edit/add`,
|
||||
headers: {
|
||||
'x-api-key': auth.secret_text,
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
body: requestBody,
|
||||
});
|
||||
|
||||
console.log(JSON.stringify(response, null, 2));
|
||||
|
||||
if (response.body.error) {
|
||||
const errorBody = response.body as PdfCoErrorResponse;
|
||||
let errorMessage = `PDF.co API Error (Add Image): Status ${errorBody.status}.`;
|
||||
if (errorBody.message) {
|
||||
errorMessage += ` Message: ${errorBody.message}.`;
|
||||
} else {
|
||||
errorMessage += ` An unspecified error occurred.`;
|
||||
}
|
||||
errorMessage += ` Raw response: ${JSON.stringify(errorBody)}`;
|
||||
throw new Error(errorMessage);
|
||||
}
|
||||
|
||||
const successBody = response.body as PdfCoSuccessResponse;
|
||||
return {
|
||||
outputUrl: successBody.url,
|
||||
pageCount: successBody.pageCount,
|
||||
outputName: successBody.name,
|
||||
creditsUsed: successBody.credits,
|
||||
remainingCredits: successBody.remainingCredits,
|
||||
};
|
||||
} catch (error) {
|
||||
if (error instanceof HttpError) {
|
||||
const responseBody = error.response?.body as PdfCoErrorResponse | undefined;
|
||||
let detailedMessage = `HTTP Error calling PDF.co API (Add Image): ${error.message}.`;
|
||||
if (responseBody && responseBody.message) {
|
||||
detailedMessage += ` Server message: ${responseBody.message}.`;
|
||||
} else if (responseBody) {
|
||||
detailedMessage += ` Server response: ${JSON.stringify(responseBody)}.`;
|
||||
}
|
||||
throw new Error(detailedMessage);
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,218 @@
|
||||
import { Property, createAction } from '@activepieces/pieces-framework';
|
||||
import { httpClient, HttpMethod, HttpError } from '@activepieces/pieces-common';
|
||||
import { PdfCoSuccessResponse, PdfCoErrorResponse } from '../common/types';
|
||||
import { pdfCoAuth } from '../../index';
|
||||
import { BASE_URL, commonProps } from '../common/props';
|
||||
|
||||
// Interface for a single text annotation object based on PDF.co docs
|
||||
interface PdfCoTextAnnotation {
|
||||
text: string;
|
||||
x: number;
|
||||
y: number;
|
||||
pages?: string;
|
||||
size?: number;
|
||||
fontName?: string;
|
||||
color?: string;
|
||||
link?: string;
|
||||
width?: number;
|
||||
height?: number;
|
||||
fontBold?: boolean;
|
||||
fontUnderline?: boolean;
|
||||
fontStrikeout?: boolean;
|
||||
alignment?: string;
|
||||
type?: 'text' | 'textField' | 'TextFieldMultiline' | 'checkbox';
|
||||
id?: string;
|
||||
transparent?: boolean;
|
||||
RotationAngle?: number;
|
||||
}
|
||||
|
||||
// Interface for the main request body for /pdf/edit/add
|
||||
interface PdfCoAddAnnotationsRequestBody {
|
||||
url: string;
|
||||
annotations: PdfCoTextAnnotation[];
|
||||
async: boolean;
|
||||
name?: string;
|
||||
password?: string;
|
||||
expiration?: number;
|
||||
inline?: boolean;
|
||||
profiles?: Record<string, unknown>; // JSON object for profiles
|
||||
httpusername?: string;
|
||||
httppassword?: string;
|
||||
}
|
||||
|
||||
export const addTextToPdf = createAction({
|
||||
name: 'add_text_to_pdf',
|
||||
displayName: 'Add Text to PDF',
|
||||
description: 'Adds text to PDF.',
|
||||
auth: pdfCoAuth,
|
||||
props: {
|
||||
url: Property.ShortText({
|
||||
displayName: 'Source PDF URL',
|
||||
description: 'URL of the PDF file to modify.',
|
||||
required: true,
|
||||
}),
|
||||
text: Property.LongText({
|
||||
displayName: 'Text to Add',
|
||||
required: true,
|
||||
}),
|
||||
xCoordinate: Property.Number({
|
||||
displayName: 'X Coordinate',
|
||||
required: true,
|
||||
}),
|
||||
yCoordinate: Property.Number({
|
||||
displayName: 'Y Coordinate',
|
||||
required: true,
|
||||
}),
|
||||
fontSize: Property.Number({
|
||||
displayName: 'Font Size',
|
||||
required: false,
|
||||
}),
|
||||
color: Property.ShortText({
|
||||
displayName: 'Color',
|
||||
defaultValue: '#000000',
|
||||
required: false,
|
||||
}),
|
||||
fontBold: Property.Checkbox({
|
||||
displayName: 'Bold Font ?',
|
||||
required: false,
|
||||
}),
|
||||
fontStrikeout: Property.Checkbox({
|
||||
displayName: 'Stikeout Font ?',
|
||||
required: false,
|
||||
}),
|
||||
fontUnderline: Property.Checkbox({
|
||||
displayName: 'Underline Font ?',
|
||||
required: false,
|
||||
}),
|
||||
fontName: Property.ShortText({
|
||||
displayName: 'Font Name',
|
||||
defaultValue: 'Arial',
|
||||
required: false,
|
||||
}),
|
||||
pages: Property.ShortText({
|
||||
displayName: 'Target Pages',
|
||||
description:
|
||||
'Specify page indices as comma-separated values or ranges to process (e.g. "0, 1, 2-" or "1, 2, 3-7").',
|
||||
required: false,
|
||||
}),
|
||||
textBoxHeight: Property.Number({
|
||||
displayName: 'Text Box Height',
|
||||
required: false,
|
||||
}),
|
||||
textBoxWidth: Property.Number({
|
||||
displayName: 'Text Box Width',
|
||||
required: false,
|
||||
}),
|
||||
textBoxAlignment: Property.StaticDropdown({
|
||||
displayName: 'Text Box Alignment',
|
||||
required: false,
|
||||
defaultValue: 'left',
|
||||
options: {
|
||||
disabled: false,
|
||||
options: [
|
||||
{ label: 'left', value: 'left' },
|
||||
{ label: 'right', value: 'right' },
|
||||
{ label: 'center', value: 'center' },
|
||||
],
|
||||
},
|
||||
}),
|
||||
...commonProps,
|
||||
},
|
||||
async run(context) {
|
||||
const { auth, propsValue } = context;
|
||||
const {
|
||||
url,
|
||||
xCoordinate,
|
||||
yCoordinate,
|
||||
fontSize,
|
||||
fontName,
|
||||
fontBold,
|
||||
fontStrikeout,
|
||||
fontUnderline,
|
||||
color,
|
||||
pages,
|
||||
textBoxAlignment,
|
||||
textBoxHeight,
|
||||
textBoxWidth,
|
||||
text,
|
||||
fileName,
|
||||
pdfPassword,
|
||||
httpPassword,
|
||||
httpUsername,
|
||||
expiration,
|
||||
} = propsValue;
|
||||
|
||||
const textAnnotationPayload: PdfCoTextAnnotation = {
|
||||
x: xCoordinate,
|
||||
y: yCoordinate,
|
||||
text,
|
||||
type: 'text',
|
||||
color,
|
||||
pages,
|
||||
width: textBoxWidth,
|
||||
height: textBoxHeight,
|
||||
alignment: textBoxAlignment,
|
||||
size: fontSize,
|
||||
fontName,
|
||||
fontBold,
|
||||
fontStrikeout,
|
||||
fontUnderline,
|
||||
};
|
||||
|
||||
const requestBody: PdfCoAddAnnotationsRequestBody = {
|
||||
url: url,
|
||||
annotations: [textAnnotationPayload],
|
||||
async: false,
|
||||
name: fileName,
|
||||
expiration,
|
||||
httppassword: httpPassword,
|
||||
httpusername: httpUsername,
|
||||
password: pdfPassword,
|
||||
};
|
||||
|
||||
try {
|
||||
const response = await httpClient.sendRequest<PdfCoSuccessResponse | PdfCoErrorResponse>({
|
||||
method: HttpMethod.POST,
|
||||
url: `${BASE_URL}/pdf/edit/add`,
|
||||
headers: {
|
||||
'x-api-key': auth.secret_text,
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
body: requestBody,
|
||||
});
|
||||
|
||||
if (response.body.error) {
|
||||
const errorBody = response.body as PdfCoErrorResponse;
|
||||
let errorMessage = `PDF.co API Error (Add Text): Status ${errorBody.status}.`;
|
||||
if (errorBody.message) {
|
||||
errorMessage += ` Message: ${errorBody.message}.`;
|
||||
} else {
|
||||
errorMessage += ` An unspecified error occurred.`;
|
||||
}
|
||||
errorMessage += ` Raw response: ${JSON.stringify(errorBody)}`;
|
||||
throw new Error(errorMessage);
|
||||
}
|
||||
|
||||
const successBody = response.body as PdfCoSuccessResponse;
|
||||
return {
|
||||
outputUrl: successBody.url,
|
||||
pageCount: successBody.pageCount,
|
||||
outputName: successBody.name,
|
||||
creditsUsed: successBody.credits,
|
||||
remainingCredits: successBody.remainingCredits,
|
||||
};
|
||||
} catch (error) {
|
||||
if (error instanceof HttpError) {
|
||||
const responseBody = error.response?.body as PdfCoErrorResponse | undefined;
|
||||
let detailedMessage = `HTTP Error calling PDF.co API (Add Text): ${error.message}.`;
|
||||
if (responseBody && responseBody.message) {
|
||||
detailedMessage += ` Server message: ${responseBody.message}.`;
|
||||
} else if (responseBody) {
|
||||
detailedMessage += ` Server response: ${JSON.stringify(responseBody)}.`;
|
||||
}
|
||||
throw new Error(detailedMessage);
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,191 @@
|
||||
import { Property, createAction } from "@activepieces/pieces-framework";
|
||||
import { httpClient, HttpMethod, HttpError } from "@activepieces/pieces-common";
|
||||
import { PdfCoSuccessResponse, PdfCoErrorResponse } from "../common/types";
|
||||
import { pdfCoAuth } from "../../index";
|
||||
import { BASE_URL } from "../common/props";
|
||||
interface PdfConvertFromHtmlRequestBody {
|
||||
html: string;
|
||||
async: boolean;
|
||||
name?: string;
|
||||
margins?: string; // e.g., "10px", "5mm 5mm 5mm 5mm"
|
||||
paperSize?: string; // "A4", "Letter", "200mm 300mm", etc.
|
||||
orientation?: 'Portrait' | 'Landscape';
|
||||
printBackground?: boolean;
|
||||
mediaType?: 'print' | 'screen' | 'none';
|
||||
header?: string; // HTML content
|
||||
footer?: string; // HTML content
|
||||
expiration?: number;
|
||||
profiles?: Record<string, unknown>;
|
||||
DoNotWaitFullLoad?:boolean
|
||||
}
|
||||
|
||||
export const convertHtmlToPdf = createAction({
|
||||
name: 'convert_html_to_pdf',
|
||||
displayName: 'Convert HTML to PDF',
|
||||
description: 'Convert HTML code into a downloadable PDF document.',
|
||||
auth: pdfCoAuth,
|
||||
props: {
|
||||
html: Property.LongText({
|
||||
displayName: 'HTML Content',
|
||||
description: 'The HTML code to convert to PDF.',
|
||||
required: true,
|
||||
}),
|
||||
name: Property.ShortText({
|
||||
displayName: 'Output File Name',
|
||||
description: 'Desired name for the output PDF file (e.g., "result.pdf").',
|
||||
required: false,
|
||||
}),
|
||||
margins: Property.ShortText({
|
||||
displayName: 'Margins',
|
||||
description: 'CSS style margins (e.g., "10px", "5mm 5mm 5mm 5mm" for top, right, bottom, left).',
|
||||
required: false,
|
||||
}),
|
||||
paperSize: Property.StaticDropdown({
|
||||
displayName: 'Paper Size',
|
||||
description: 'Select a paper size. For custom sizes, input the value directly (e.g., \'200mm 300mm\') if your desired size isn\'t listed. Refer to PDF.co docs.',
|
||||
required: false,
|
||||
options: {
|
||||
disabled: false,
|
||||
placeholder: 'Select paper size or input custom',
|
||||
options: [
|
||||
{ label: "A4 (Default)", value: "A4" },
|
||||
{ label: "Letter", value: "Letter" },
|
||||
{ label: "Legal", value: "Legal" },
|
||||
{ label: "Tabloid", value: "Tabloid" },
|
||||
{ label: "Ledger", value: "Ledger" },
|
||||
{ label: "A0", value: "A0" },
|
||||
{ label: "A1", value: "A1" },
|
||||
{ label: "A2", value: "A2" },
|
||||
{ label: "A3", value: "A3" },
|
||||
{ label: "A5", value: "A5" },
|
||||
{ label: "A6", value: "A6" },
|
||||
]
|
||||
}
|
||||
}),
|
||||
orientation: Property.StaticDropdown ({
|
||||
displayName: 'Orientation',
|
||||
description: 'Set page orientation.',
|
||||
required: false,
|
||||
options: {
|
||||
disabled: false,
|
||||
placeholder: 'Portrait (Default)',
|
||||
options: [
|
||||
{ label: "Portrait (Default)", value: "Portrait" },
|
||||
{ label: "Landscape", value: "Landscape" },
|
||||
] ,
|
||||
}
|
||||
}),
|
||||
printBackground: Property.Checkbox({
|
||||
displayName: 'Print Background ?',
|
||||
description: 'Set to true to print background graphics and colors (default is true).',
|
||||
required: false,
|
||||
defaultValue: true,
|
||||
}),
|
||||
mediaType: Property.StaticDropdown({
|
||||
displayName: 'Media Type',
|
||||
description: 'CSS media type to emulate.',
|
||||
required: false,
|
||||
options: {
|
||||
disabled: false,
|
||||
placeholder: 'print (Default)',
|
||||
options: [
|
||||
{ label: "print (Default)", value: "print" },
|
||||
{ label: "screen", value: "screen" },
|
||||
{ label: "none", value: "none" },
|
||||
],
|
||||
}
|
||||
}),
|
||||
header: Property.LongText({
|
||||
displayName: 'Header HTML',
|
||||
description: 'HTML content for the page header.',
|
||||
required: false,
|
||||
}),
|
||||
footer: Property.LongText({
|
||||
displayName: 'Footer HTML',
|
||||
description: 'HTML content for the page footer.',
|
||||
required: false,
|
||||
}),
|
||||
doNotWaitFullLoad:Property.Checkbox({
|
||||
displayName:'Do not wait till full page load ?',
|
||||
required:false
|
||||
}),
|
||||
expiration: Property.Number({
|
||||
displayName: 'Output Link Expiration (minutes)',
|
||||
description: 'Set the expiration time for the output link in minutes (default is 60).',
|
||||
required: false,
|
||||
}),
|
||||
profiles: Property.Json({
|
||||
displayName: 'Profiles',
|
||||
description: 'JSON object for additional configurations.',
|
||||
required: false,
|
||||
})
|
||||
},
|
||||
async run(context) {
|
||||
const { auth, propsValue } = context;
|
||||
|
||||
const requestBody: PdfConvertFromHtmlRequestBody = {
|
||||
html: propsValue.html,
|
||||
async: false,
|
||||
DoNotWaitFullLoad:propsValue.doNotWaitFullLoad
|
||||
};
|
||||
|
||||
if (propsValue.name !== undefined && propsValue.name !== '') requestBody.name = propsValue.name;
|
||||
if (propsValue.margins !== undefined && propsValue.margins !== '') requestBody.margins = propsValue.margins;
|
||||
if (propsValue.paperSize !== undefined) requestBody.paperSize = propsValue.paperSize;
|
||||
if (propsValue.orientation !== undefined) requestBody.orientation = propsValue.orientation as 'Portrait' | 'Landscape';
|
||||
if (propsValue.printBackground !== undefined) requestBody.printBackground = propsValue.printBackground;
|
||||
if (propsValue.mediaType !== undefined) requestBody.mediaType = propsValue.mediaType as 'print' | 'screen' | 'none';
|
||||
if (propsValue.header !== undefined && propsValue.header !== '') requestBody.header = propsValue.header;
|
||||
if (propsValue.footer !== undefined && propsValue.footer !== '') requestBody.footer = propsValue.footer;
|
||||
if (propsValue.expiration !== undefined) requestBody.expiration = propsValue.expiration;
|
||||
if (propsValue.profiles !== undefined && typeof propsValue.profiles === 'object' && propsValue.profiles !== null) {
|
||||
requestBody.profiles = propsValue.profiles as Record<string, unknown>;
|
||||
}
|
||||
|
||||
try {
|
||||
const response = await httpClient.sendRequest<PdfCoSuccessResponse | PdfCoErrorResponse>({
|
||||
method: HttpMethod.POST,
|
||||
url: `${BASE_URL}/pdf/convert/from/html`,
|
||||
headers: {
|
||||
'x-api-key': auth.secret_text,
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
body: requestBody,
|
||||
});
|
||||
|
||||
if (response.body.error) {
|
||||
const errorBody = response.body as PdfCoErrorResponse;
|
||||
let errorMessage = `PDF.co API Error (Convert HTML to PDF): Status ${errorBody.status}.`;
|
||||
if (errorBody.message) {
|
||||
errorMessage += ` Message: ${errorBody.message}.`;
|
||||
} else {
|
||||
errorMessage += ` An unspecified error occurred.`;
|
||||
}
|
||||
errorMessage += ` Raw response: ${JSON.stringify(errorBody)}`;
|
||||
throw new Error(errorMessage);
|
||||
}
|
||||
|
||||
const successBody = response.body as PdfCoSuccessResponse;
|
||||
return {
|
||||
outputUrl: successBody.url,
|
||||
pageCount: successBody.pageCount,
|
||||
outputName: successBody.name,
|
||||
creditsUsed: successBody.credits,
|
||||
remainingCredits: successBody.remainingCredits,
|
||||
};
|
||||
|
||||
} catch (error) {
|
||||
if (error instanceof HttpError) {
|
||||
const responseBody = error.response?.body as (PdfCoErrorResponse | undefined);
|
||||
let detailedMessage = `HTTP Error calling PDF.co API (Convert HTML to PDF): ${error.message}.`;
|
||||
if (responseBody && responseBody.message) {
|
||||
detailedMessage += ` Server message: ${responseBody.message}.`;
|
||||
} else if (responseBody) {
|
||||
detailedMessage += ` Server response: ${JSON.stringify(responseBody)}.`;
|
||||
}
|
||||
throw new Error(detailedMessage);
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,149 @@
|
||||
import { Property, DropdownOption, createAction } from "@activepieces/pieces-framework";
|
||||
import { httpClient, HttpMethod, HttpError } from "@activepieces/pieces-common";
|
||||
import { PdfCoSuccessResponse, PdfCoErrorResponse } from "../common/types";
|
||||
import { pdfCoAuth } from "../../index";
|
||||
import { BASE_URL, commonProps } from "../common/props";
|
||||
// Interface for the request body (common params for CSV/JSON/XML conversion)
|
||||
interface PdfConvertToStructuredFormatRequestBody {
|
||||
url: string;
|
||||
async: boolean;
|
||||
inline: boolean; // Should typically be false to get output URL
|
||||
name?: string;
|
||||
pages?: string;
|
||||
password?: string;
|
||||
lang?: string;
|
||||
expiration?: number;
|
||||
profiles?: Record<string, unknown>;
|
||||
httpusername?: string;
|
||||
httppassword?: string;
|
||||
}
|
||||
|
||||
export const convertPdfToStructuredFormat = createAction({
|
||||
name: 'convert_pdf_to_structured_format',
|
||||
displayName: 'Convert PDF to JSON/CSV/XML',
|
||||
description: 'Convert PDF content into structured formats (JSON, CSV, or XML).',
|
||||
auth: pdfCoAuth,
|
||||
props: {
|
||||
url: Property.ShortText({
|
||||
displayName: 'Source PDF URL',
|
||||
description: 'URL of the PDF file to convert.',
|
||||
required: true,
|
||||
}),
|
||||
outputFormat: Property.StaticDropdown ({
|
||||
displayName: 'Output Format',
|
||||
description: 'Select the desired structured output format.',
|
||||
required: true,
|
||||
options: {
|
||||
disabled:false,
|
||||
options: [
|
||||
{ label: "JSON", value: "json" },
|
||||
{ label: "CSV", value: "csv" },
|
||||
{ label: "XML", value: "xml" },
|
||||
] as DropdownOption<'json' | 'csv' | 'xml'>[],
|
||||
|
||||
}
|
||||
}),
|
||||
pages: Property.ShortText({
|
||||
displayName: 'Pages',
|
||||
description: 'Comma-separated page numbers or ranges (e.g., "0,2,5-10"). Leave empty for all pages.',
|
||||
required: false,
|
||||
}),
|
||||
lang: Property.ShortText({
|
||||
displayName: 'OCR Language',
|
||||
description: 'Language for OCR if processing scanned documents (e.g., "eng", "deu", "eng+deu"). See PDF.co docs for list.',
|
||||
required: false,
|
||||
}),
|
||||
profiles: Property.Json({
|
||||
displayName: 'Profiles',
|
||||
description: 'JSON object for additional configurations.',
|
||||
required: false,
|
||||
}),
|
||||
...commonProps
|
||||
},
|
||||
async run(context) {
|
||||
const { auth, propsValue } = context;
|
||||
const {
|
||||
url,
|
||||
outputFormat,
|
||||
pages,
|
||||
lang,
|
||||
pdfPassword,
|
||||
fileName,
|
||||
httpPassword,
|
||||
httpUsername,
|
||||
expiration,
|
||||
profiles
|
||||
} = propsValue;
|
||||
|
||||
let endpoint = '';
|
||||
switch (outputFormat) {
|
||||
case 'json':
|
||||
endpoint = `${BASE_URL}/pdf/convert/to/json2`;
|
||||
break;
|
||||
case 'csv':
|
||||
endpoint = `${BASE_URL}/pdf/convert/to/csv`;
|
||||
break;
|
||||
case 'xml':
|
||||
endpoint = `${BASE_URL}/pdf/convert/to/xml`;
|
||||
break;
|
||||
default:
|
||||
throw new Error(`Unsupported output format: ${outputFormat}`);
|
||||
}
|
||||
|
||||
const requestBody: PdfConvertToStructuredFormatRequestBody = {
|
||||
url: url,
|
||||
async: false,
|
||||
httppassword:httpPassword,
|
||||
httpusername:httpUsername,
|
||||
inline: false, // Ensure we get the URL to the output file
|
||||
};
|
||||
|
||||
if (pages !== undefined && pages !== '') requestBody.pages = pages;
|
||||
if (lang !== undefined && lang !== '') requestBody.lang = lang;
|
||||
if (pdfPassword !== undefined && pdfPassword !== '') requestBody.password = pdfPassword;
|
||||
if (fileName !== undefined && fileName !== '') requestBody.name = fileName;
|
||||
if (expiration !== undefined) requestBody.expiration = expiration;
|
||||
if (profiles !== undefined && typeof profiles === 'object' && profiles !== null) {
|
||||
requestBody.profiles = profiles as Record<string, unknown>;
|
||||
}
|
||||
|
||||
try {
|
||||
const response = await httpClient.sendRequest<PdfCoSuccessResponse | PdfCoErrorResponse>({
|
||||
method: HttpMethod.POST,
|
||||
url: endpoint,
|
||||
headers: {
|
||||
'x-api-key': auth.secret_text,
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
body: requestBody,
|
||||
});
|
||||
|
||||
if (response.body.error) {
|
||||
const errorBody = response.body as PdfCoErrorResponse;
|
||||
let errorMessage = `PDF.co API Error (Convert PDF to ${outputFormat.toUpperCase()}): Status ${errorBody.status}.`;
|
||||
if (errorBody.message) {
|
||||
errorMessage += ` Message: ${errorBody.message}.`;
|
||||
} else {
|
||||
errorMessage += ` An unspecified error occurred.`;
|
||||
}
|
||||
errorMessage += ` Raw response: ${JSON.stringify(errorBody)}`;
|
||||
throw new Error(errorMessage);
|
||||
}
|
||||
|
||||
return response.body;
|
||||
|
||||
} catch (error) {
|
||||
if (error instanceof HttpError) {
|
||||
const responseBody = error.response?.body as (PdfCoErrorResponse | undefined);
|
||||
let detailedMessage = `HTTP Error calling PDF.co API (Convert PDF to ${outputFormat.toUpperCase()}): ${error.message}.`;
|
||||
if (responseBody && responseBody.message) {
|
||||
detailedMessage += ` Server message: ${responseBody.message}.`;
|
||||
} else if (responseBody) {
|
||||
detailedMessage += ` Server response: ${JSON.stringify(responseBody)}.`;
|
||||
}
|
||||
throw new Error(detailedMessage);
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,157 @@
|
||||
import { Property, createAction } from "@activepieces/pieces-framework";
|
||||
import { httpClient, HttpMethod, HttpError } from "@activepieces/pieces-common";
|
||||
import { PdfCoErrorResponse } from "../common/types"; // Use common error response type
|
||||
import { pdfCoAuth } from "../../index";
|
||||
import { BASE_URL, commonProps } from "../common/props";
|
||||
// Interface for the Document Parser API request body
|
||||
interface PdfDocumentParserRequestBody {
|
||||
url: string;
|
||||
templateId: string; // Making this required for table extraction
|
||||
async: boolean;
|
||||
inline: boolean; // Set to true to get data in response
|
||||
outputFormat?: 'JSON' | 'CSV' | 'XML'; // Keep JSON for this action
|
||||
name?: string;
|
||||
pages?: string;
|
||||
password?: string;
|
||||
expiration?: number;
|
||||
profiles?: Record<string, unknown>;
|
||||
httpusername?: string;
|
||||
httppassword?: string;
|
||||
}
|
||||
|
||||
// Interface for the structure within the successful response's 'body' field
|
||||
interface PdfDocumentParserResult {
|
||||
objects: Array<{
|
||||
name: string;
|
||||
objectType: 'field' | 'table' | string; // Can be field, table, etc.
|
||||
value?: unknown; // For fields
|
||||
rows?: unknown[][]; // For tables
|
||||
pageIndex?: number;
|
||||
rectangle?: number[];
|
||||
[key: string]: unknown; // Allow other properties
|
||||
}>;
|
||||
templateName: string;
|
||||
templateVersion: string;
|
||||
timestamp: string;
|
||||
}
|
||||
|
||||
// Interface for the overall successful response from the Document Parser endpoint
|
||||
interface PdfDocumentParserSuccessResponse {
|
||||
body: PdfDocumentParserResult;
|
||||
pageCount: number;
|
||||
error: false;
|
||||
status: number;
|
||||
name: string; // Name of the generated output (e.g., sample-invoice.json)
|
||||
remainingCredits: number;
|
||||
credits: number;
|
||||
url?: string; // URL if inline=false
|
||||
}
|
||||
|
||||
export const extractTablesFromPdf = createAction({
|
||||
name: 'extract_tables_from_pdf',
|
||||
displayName: 'Extract Tables from PDF (using Template)',
|
||||
description: 'Extracts table data from a PDF using a predefined PDF.co Document Parser template.',
|
||||
auth: pdfCoAuth, // Inherits auth from the piece
|
||||
props: {
|
||||
url: Property.ShortText({
|
||||
displayName: 'Source PDF URL',
|
||||
description: 'URL of the PDF file to extract tables from.',
|
||||
required: true,
|
||||
}),
|
||||
templateId: Property.ShortText({
|
||||
displayName: 'Template ID',
|
||||
description: 'The ID of your Document Parser template (created in PDF.co dashboard) designed to extract the table(s).',
|
||||
required: true,
|
||||
}),
|
||||
pages: Property.ShortText({
|
||||
displayName: 'Pages',
|
||||
description: 'Comma-separated page numbers or ranges (e.g., "0,2,5-10"). Overrides template settings if provided.',
|
||||
required: false,
|
||||
}),
|
||||
profiles: Property.Json({
|
||||
displayName: 'Profiles',
|
||||
description: 'JSON object for additional configurations.',
|
||||
required: false,
|
||||
}),
|
||||
...commonProps
|
||||
},
|
||||
async run(context) {
|
||||
const { auth, propsValue } = context;
|
||||
const {
|
||||
url,
|
||||
templateId,
|
||||
pages,
|
||||
pdfPassword,
|
||||
fileName,
|
||||
httpPassword,
|
||||
httpUsername,
|
||||
expiration,
|
||||
profiles
|
||||
} = propsValue;
|
||||
|
||||
const requestBody: PdfDocumentParserRequestBody = {
|
||||
url: url,
|
||||
templateId: templateId,
|
||||
httppassword:httpPassword,
|
||||
httpusername:httpUsername,
|
||||
async: false,
|
||||
inline: true, // Get the parsed data directly
|
||||
outputFormat: 'JSON', // We want JSON to process tables
|
||||
};
|
||||
|
||||
if (pages !== undefined && pages !== '') requestBody.pages = pages;
|
||||
if (pdfPassword !== undefined && pdfPassword !== '') requestBody.password = pdfPassword;
|
||||
if (fileName !== undefined && fileName !== '') requestBody.name = fileName;
|
||||
if (expiration !== undefined) requestBody.expiration = expiration;
|
||||
if (profiles !== undefined && typeof profiles === 'object' && profiles !== null) {
|
||||
requestBody.profiles = profiles as Record<string, unknown>;
|
||||
}
|
||||
|
||||
try {
|
||||
const response = await httpClient.sendRequest<PdfDocumentParserSuccessResponse | PdfCoErrorResponse>({
|
||||
method: HttpMethod.POST,
|
||||
url: `${BASE_URL}/pdf/documentparser`,
|
||||
headers: {
|
||||
'x-api-key': auth.secret_text,
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
body: requestBody,
|
||||
});
|
||||
|
||||
if (response.body.error) {
|
||||
const errorBody = response.body as PdfCoErrorResponse;
|
||||
let errorMessage = `PDF.co API Error (Extract Tables): Status ${errorBody.status}.`;
|
||||
if (errorBody.message) {
|
||||
errorMessage += ` Message: ${errorBody.message}.`;
|
||||
} else {
|
||||
errorMessage += ` An unspecified error occurred.`;
|
||||
}
|
||||
errorMessage += ` Raw response: ${JSON.stringify(errorBody)}`;
|
||||
throw new Error(errorMessage);
|
||||
}
|
||||
|
||||
const successBody = response.body as PdfDocumentParserSuccessResponse;
|
||||
|
||||
// Filter the results to return only table objects
|
||||
const tables = successBody.body.objects.filter(obj => obj.objectType === 'table');
|
||||
|
||||
return {
|
||||
extractedTables: tables, // Array of table objects found by the template
|
||||
templateNameUsed: successBody.body.templateName,
|
||||
};
|
||||
|
||||
} catch (error) {
|
||||
if (error instanceof HttpError) {
|
||||
const responseBody = error.response?.body as (PdfCoErrorResponse | undefined);
|
||||
let detailedMessage = `HTTP Error calling PDF.co API (Extract Tables): ${error.message}.`;
|
||||
if (responseBody && responseBody.message) {
|
||||
detailedMessage += ` Server message: ${responseBody.message}.`;
|
||||
} else if (responseBody) {
|
||||
detailedMessage += ` Server response: ${JSON.stringify(responseBody)}.`;
|
||||
}
|
||||
throw new Error(detailedMessage);
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,128 @@
|
||||
import { Property, createAction } from "@activepieces/pieces-framework";
|
||||
import { httpClient, HttpMethod, HttpError } from "@activepieces/pieces-common";
|
||||
import { pdfCoAuth } from "../../index";
|
||||
import { BASE_URL, commonProps } from "../common/props";
|
||||
|
||||
interface PdfCoExtractTextSuccessResponse {
|
||||
body: string; // The extracted text content
|
||||
pageCount: number;
|
||||
error: false;
|
||||
status: number;
|
||||
name: string; // Output file name (e.g., sample.txt)
|
||||
remainingCredits: number;
|
||||
credits: number;
|
||||
url?: string; // URL to output file if inline=false
|
||||
}
|
||||
|
||||
// Define a type for the expected error response body (can use common one if it matches)
|
||||
interface PdfCoErrorResponse {
|
||||
error: true;
|
||||
status: number;
|
||||
message?: string;
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
// Interface for the request body
|
||||
interface PdfConvertToTextSimpleRequestBody {
|
||||
url: string;
|
||||
async: boolean;
|
||||
inline: boolean; // Keep true to get text directly in response body
|
||||
name?: string;
|
||||
pages?: string;
|
||||
password?: string;
|
||||
httpusername?: string;
|
||||
httppassword?: string;
|
||||
}
|
||||
|
||||
export const extractTextFromPdf = createAction({
|
||||
name: 'extract_text_from_pdf',
|
||||
displayName: 'Extract Plain Text from PDF',
|
||||
description: 'Extracts plain text content from a PDF document.',
|
||||
auth: pdfCoAuth,
|
||||
props: {
|
||||
url: Property.ShortText({
|
||||
displayName: 'Source PDF URL',
|
||||
description: 'URL of the PDF file to extract text from.',
|
||||
required: true,
|
||||
}),
|
||||
pages: Property.ShortText({
|
||||
displayName: 'Pages',
|
||||
description: 'Comma-separated page numbers or ranges (e.g., "0,2,5-10"). Leave empty for all pages.',
|
||||
required: false,
|
||||
}),
|
||||
password: commonProps.pdfPassword,
|
||||
outputName: commonProps.fileName,
|
||||
httpUsername:commonProps.httpUsername,
|
||||
httpPassword:commonProps.httpPassword
|
||||
},
|
||||
async run(context) {
|
||||
const { auth, propsValue } = context;
|
||||
const {
|
||||
url,
|
||||
pages,
|
||||
password,
|
||||
outputName,
|
||||
httpPassword,
|
||||
httpUsername
|
||||
} = propsValue;
|
||||
|
||||
const requestBody: PdfConvertToTextSimpleRequestBody = {
|
||||
url: url,
|
||||
async: false,
|
||||
httpusername:httpUsername,
|
||||
httppassword:httpPassword,
|
||||
inline: true, // Get text directly in response.body.body
|
||||
};
|
||||
|
||||
if (pages !== undefined && pages !== '') requestBody.pages = pages;
|
||||
if (password !== undefined && password !== '') requestBody.password = password;
|
||||
if (outputName !== undefined && outputName !== '') requestBody.name = outputName;
|
||||
|
||||
try {
|
||||
const response = await httpClient.sendRequest<PdfCoExtractTextSuccessResponse | PdfCoErrorResponse>({
|
||||
method: HttpMethod.POST,
|
||||
url: `${BASE_URL}/pdf/convert/to/text-simple`,
|
||||
headers: {
|
||||
'x-api-key': auth.secret_text,
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
body: requestBody,
|
||||
});
|
||||
|
||||
if (response.body.error) {
|
||||
const errorBody = response.body as PdfCoErrorResponse;
|
||||
let errorMessage = `PDF.co API Error (Extract Text): Status ${errorBody.status}.`;
|
||||
if (errorBody.message) {
|
||||
errorMessage += ` Message: ${errorBody.message}.`;
|
||||
} else {
|
||||
errorMessage += ` An unspecified error occurred.`;
|
||||
}
|
||||
errorMessage += ` Raw response: ${JSON.stringify(errorBody)}`;
|
||||
throw new Error(errorMessage);
|
||||
}
|
||||
|
||||
const successBody = response.body as PdfCoExtractTextSuccessResponse;
|
||||
|
||||
return {
|
||||
extractedText: successBody.body,
|
||||
pageCount: successBody.pageCount,
|
||||
outputName: successBody.name,
|
||||
creditsUsed: successBody.credits,
|
||||
remainingCredits: successBody.remainingCredits,
|
||||
};
|
||||
|
||||
} catch (error) {
|
||||
if (error instanceof HttpError) {
|
||||
const responseBody = error.response?.body as (PdfCoErrorResponse | undefined);
|
||||
let detailedMessage = `HTTP Error calling PDF.co API (Extract Text): ${error.message}.`;
|
||||
if (responseBody && responseBody.message) {
|
||||
detailedMessage += ` Server message: ${responseBody.message}.`;
|
||||
} else if (responseBody) {
|
||||
detailedMessage += ` Server response: ${JSON.stringify(responseBody)}.`;
|
||||
}
|
||||
throw new Error(detailedMessage);
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,8 @@
|
||||
export * from './search-and-replace-text';
|
||||
export * from './add-text-to-pdf';
|
||||
export * from './add-image-to-pdf';
|
||||
export * from './convert-html-to-pdf';
|
||||
export * from './extract-text-from-pdf';
|
||||
export * from './convert-pdf-to-structured-format';
|
||||
export * from './extract-tables-from-pdf';
|
||||
export * from './add-barcode-to-pdf';
|
||||
@@ -0,0 +1,132 @@
|
||||
import { Property, createAction } from '@activepieces/pieces-framework';
|
||||
import { httpClient, HttpMethod, HttpError } from '@activepieces/pieces-common';
|
||||
import { PdfCoSuccessResponse, PdfCoErrorResponse } from '../common/types';
|
||||
import { pdfCoAuth } from '../../index';
|
||||
import { BASE_URL, commonProps } from '../common/props';
|
||||
|
||||
interface PdfCoSearchAndReplaceRequestBody {
|
||||
url: string;
|
||||
searchStrings: string[];
|
||||
replaceStrings: string[];
|
||||
async: boolean;
|
||||
caseSensitive?: boolean;
|
||||
regex?: boolean;
|
||||
pages?: string;
|
||||
name?: string;
|
||||
expiration?: number;
|
||||
httpusername?: string;
|
||||
httppassword?: string;
|
||||
password?: string;
|
||||
}
|
||||
|
||||
export const searchAndReplaceText = createAction({
|
||||
name: 'search_and_replace_text',
|
||||
displayName: 'Search and Replace Text in PDF',
|
||||
description: 'Search for specific text or patterns in a PDF and replace it with new text.',
|
||||
auth: pdfCoAuth,
|
||||
props: {
|
||||
url: Property.ShortText({
|
||||
displayName: 'PDF URL',
|
||||
description: 'URL to the source PDF file.',
|
||||
required: true,
|
||||
}),
|
||||
searchStrings: Property.Array({
|
||||
displayName: 'Text to Locate',
|
||||
required: true,
|
||||
}),
|
||||
replaceStrings: Property.Array({
|
||||
displayName: 'Replacement Text',
|
||||
required: true,
|
||||
}),
|
||||
caseSensitive: Property.Checkbox({
|
||||
displayName: 'Case Sensitive',
|
||||
description: 'Set to true for case-sensitive search, false otherwise.',
|
||||
required: false,
|
||||
defaultValue: true,
|
||||
}),
|
||||
regex: Property.Checkbox({
|
||||
displayName: 'Use Regular Expressions ?',
|
||||
description: 'Set to true to use regular expressions for search texts.',
|
||||
required: false,
|
||||
defaultValue: false,
|
||||
}),
|
||||
pages: Property.ShortText({
|
||||
displayName: 'Pages',
|
||||
description:
|
||||
'Comma-separated page numbers or ranges (e.g., "0,2,5-10"). Leave empty for all pages.',
|
||||
required: false,
|
||||
}),
|
||||
...commonProps,
|
||||
},
|
||||
async run(context) {
|
||||
const { auth, propsValue } = context;
|
||||
const {
|
||||
url,
|
||||
searchStrings,
|
||||
replaceStrings,
|
||||
caseSensitive,
|
||||
regex,
|
||||
pages,
|
||||
fileName,
|
||||
httpPassword,
|
||||
httpUsername,
|
||||
pdfPassword,
|
||||
expiration,
|
||||
} = propsValue;
|
||||
|
||||
const requestBody: PdfCoSearchAndReplaceRequestBody = {
|
||||
url: url,
|
||||
searchStrings: searchStrings as string[],
|
||||
replaceStrings: replaceStrings as string[],
|
||||
async: false,
|
||||
caseSensitive: caseSensitive,
|
||||
regex,
|
||||
pages,
|
||||
name: fileName,
|
||||
expiration,
|
||||
httppassword: httpPassword,
|
||||
httpusername: httpUsername,
|
||||
password: pdfPassword,
|
||||
};
|
||||
|
||||
try {
|
||||
const response = await httpClient.sendRequest<PdfCoSuccessResponse | PdfCoErrorResponse>({
|
||||
method: HttpMethod.POST,
|
||||
url: `${BASE_URL}/pdf/edit/replace-text`,
|
||||
headers: {
|
||||
'x-api-key': auth.secret_text,
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
body: requestBody,
|
||||
});
|
||||
|
||||
if (response.body.error) {
|
||||
const errorBody = response.body as PdfCoErrorResponse;
|
||||
let errorMessage = `PDF.co API Error: Status ${errorBody.status}.`;
|
||||
if (errorBody.message) {
|
||||
errorMessage += ` Message: ${errorBody.message}.`;
|
||||
} else {
|
||||
errorMessage += ` An unspecified error occurred.`;
|
||||
}
|
||||
errorMessage += ` Check input parameters, API key, and PDF.co dashboard for more details. Raw response: ${JSON.stringify(
|
||||
errorBody,
|
||||
)}`;
|
||||
throw new Error(errorMessage);
|
||||
}
|
||||
|
||||
return response.body;
|
||||
} catch (error) {
|
||||
if (error instanceof HttpError) {
|
||||
const responseBody = error.response?.body as PdfCoErrorResponse | undefined;
|
||||
let detailedMessage = `HTTP Error calling PDF.co API: ${error.message}.`;
|
||||
if (responseBody && responseBody.message) {
|
||||
detailedMessage += ` Server message: ${responseBody.message}.`;
|
||||
} else if (responseBody) {
|
||||
detailedMessage += ` Server response: ${JSON.stringify(responseBody)}.`;
|
||||
}
|
||||
throw new Error(detailedMessage);
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,32 @@
|
||||
import { Property } from '@activepieces/pieces-framework';
|
||||
|
||||
export const BASE_URL = 'https://api.pdf.co/v1';
|
||||
|
||||
export const commonProps = {
|
||||
fileName: Property.ShortText({
|
||||
displayName: 'File Name',
|
||||
description: 'Desired name for the output PDF file (e.g., "result.pdf").',
|
||||
required: false,
|
||||
}),
|
||||
expiration: Property.Number({
|
||||
displayName: 'Expiration Time in Minutes',
|
||||
description:
|
||||
'Set the expiration time for the output link in minutes (default is 60 i.e 60 minutes or 1 hour).',
|
||||
required: false,
|
||||
}),
|
||||
pdfPassword: Property.ShortText({
|
||||
displayName: 'Source PDF Password',
|
||||
description: 'Password if the source PDF is protected.',
|
||||
required: false,
|
||||
}),
|
||||
httpUsername: Property.ShortText({
|
||||
displayName: 'HTTP Username',
|
||||
description: 'HTTP auth username if required to access source url.',
|
||||
required: false,
|
||||
}),
|
||||
httpPassword: Property.ShortText({
|
||||
displayName: 'HTTP Password',
|
||||
description: 'HTTP auth password if required to access source url.',
|
||||
required: false,
|
||||
}),
|
||||
};
|
||||
@@ -0,0 +1,45 @@
|
||||
|
||||
// Define a type for the expected successful response body (shared structure)
|
||||
export interface PdfCoSuccessResponse {
|
||||
url: string;
|
||||
pageCount: number;
|
||||
error: false;
|
||||
status: number;
|
||||
name: string;
|
||||
remainingCredits: number;
|
||||
credits: number;
|
||||
}
|
||||
|
||||
// Define a type for the expected error response body (shared structure)
|
||||
export interface PdfCoErrorResponse {
|
||||
error: true;
|
||||
status: number;
|
||||
message?: string;
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
// Interface for the image object needed by /pdf/edit/add
|
||||
export interface PdfCoImageAnnotation {
|
||||
url: string;
|
||||
x: number;
|
||||
y: number;
|
||||
pages?: string;
|
||||
width?: number;
|
||||
height?: number;
|
||||
link?: string;
|
||||
keepAspectRatio?: boolean;
|
||||
}
|
||||
|
||||
// Interface for the /pdf/edit/add request body (when adding images)
|
||||
export interface PdfCoAddImagesRequestBody {
|
||||
url: string; // Source PDF URL
|
||||
images: PdfCoImageAnnotation[];
|
||||
async: boolean;
|
||||
inline: boolean; // Should be false to get final PDF url
|
||||
name?: string;
|
||||
password?: string;
|
||||
expiration?: number;
|
||||
profiles?: Record<string, unknown>;
|
||||
httpusername?: string;
|
||||
httppassword?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user