diff --git a/Document-Processing/PDF/PDF-Library/javascript/Annotations.md b/Document-Processing/PDF/PDF-Library/javascript/Annotations.md index d87595ded8..45a7f391f9 100644 --- a/Document-Processing/PDF/PDF-Library/javascript/Annotations.md +++ b/Document-Processing/PDF/PDF-Library/javascript/Annotations.md @@ -11,7 +11,7 @@ The PDF library provides support for interactive annotations. You can add, delet ## Adding annotations to a PDF document -This example demonstrates how to add annotations to a PDF document using the `PdfAnnotation` class. Adding annotations allows users to include comments, highlights, shapes, and other interactive elements within a PDF, enhancing collaboration and document review. +This example demonstrates how to add annotations to a PDF document using the [PdfPopupAnnotation](https://ej2.syncfusion.com/documentation/api/pdf/pdfpopupannotation) class. Adding annotations allows users to include comments, highlights, shapes, and other interactive elements within a PDF, enhancing collaboration and document review. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -70,7 +70,7 @@ document.destroy(); ### File Link Annotation -This example demonstrates how to add a file link annotation to a PDF page using the `PdfFileLinkAnnotation` class. A file link annotation allows linking to an external file from within a PDF document, enabling users to access related resources directly. +This example demonstrates how to add a file link annotation to a PDF page using the [PdfFileLinkAnnotation](https://ej2.syncfusion.com/documentation/api/pdf/pdffilelinkannotation) class. A file link annotation allows linking to an external file from within a PDF document, enabling users to access related resources directly. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -125,7 +125,7 @@ document.destroy(); ### Free Text Annotation -This example demonstrates how to add a free text annotation to a PDF page using the `PdfFreeTextAnnotation` class. A free text annotation allows placing text directly on a PDF page, enabling users to add comments or notes that remain visible without requiring interaction. +This example demonstrates how to add a free text annotation to a PDF page using the [PdfFreeTextAnnotation](https://ej2.syncfusion.com/documentation/api/pdf/pdffreetextannotation) class. A free text annotation allows placing text directly on a PDF page, enabling users to add comments or notes that remain visible without requiring interaction. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -190,7 +190,7 @@ document.destroy(); ### Line Annotation -This example demonstrates how to add a line annotation to a PDF page using the `PdfLineAnnotation` class. A line annotation allows drawing straight lines between two points on a PDF page, often used to highlight connections or indicate measurements. +This example demonstrates how to add a line annotation to a PDF page using the [PdfLineAnnotation](https://ej2.syncfusion.com/documentation/api/pdf/pdflineannotation) class. A line annotation allows drawing straight lines between two points on a PDF page, often used to highlight connections or indicate measurements. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -254,7 +254,7 @@ document.destroy(); ### Rubber stamp Annotation -This example demonstrates how to add a rubber stamp annotation to a PDF page using the `PdfRubberStampAnnotation` class. A rubber stamp annotation allows applying predefined or custom stamp to visually indicate the status or purpose of a document. +This example demonstrates how to add a rubber stamp annotation to a PDF page using the [PdfRubberStampAnnotation](https://ej2.syncfusion.com/documentation/api/pdf/pdfrubberstampannotation) class. A rubber stamp annotation allows applying predefined or custom stamp to visually indicate the status or purpose of a document. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -300,7 +300,7 @@ document.destroy(); ### Ink Annotation -This example demonstrates how to add an ink annotation to a PDF page using the `PdfInkAnnotation` class. An ink annotation allows drawing freehand marks or sketches directly on a PDF page. +This example demonstrates how to add an ink annotation to a PDF page using the [PdfInkAnnotation](https://ej2.syncfusion.com/documentation/api/pdf/pdfinkannotation) class. An ink annotation allows drawing freehand marks or sketches directly on a PDF page. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -381,7 +381,7 @@ document.destroy(); ### Pop-up Annotation -This example demonstrates how to add a popup annotation to a PDF document using the `PdfPopupAnnotation` class. A popup annotation allows you to display additional information or comments within the PDF at a specified position and size. +This example demonstrates how to add a popup annotation to a PDF document using the [PdfPopupAnnotation](https://ej2.syncfusion.com/documentation/api/pdf/pdfpopupannotation) class. A popup annotation allows you to display additional information or comments within the PDF at a specified position and size. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -440,7 +440,7 @@ document.destroy(); ### File Attachment Annotation -This example demonstrates how to add a file attachment annotation to a PDF page using the `PdfAttachmentAnnotation` class. A file attachment annotation allows embedding external files within a PDF document, enabling users to include supporting documents or resources for easy access. +This example demonstrates how to add a file attachment annotation to a PDF page using the [PdfAttachmentAnnotation](https://ej2.syncfusion.com/documentation/api/pdf/pdfattachmentannotation) class. A file attachment annotation allows embedding external files within a PDF document, enabling users to include supporting documents or resources for easy access. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -497,7 +497,7 @@ document.destroy(); ### URI Annotation -This example demonstrates how to add a URI annotation to a PDF page using the `PdfUriAnnotation` class. A URI annotation allows linking to a web address or online resource from within a PDF document. +This example demonstrates how to add a URI annotation to a PDF page using the [PdfUriAnnotation](https://ej2.syncfusion.com/documentation/api/pdf/pdfuriannotation) class. A URI annotation allows linking to a web address or online resource from within a PDF document. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -537,7 +537,7 @@ document.destroy(); ### Document Link Annotation -This example demonstrates how to add a document link annotation to a PDF page using the `PdfDocumentLinkAnnotation` class. A document link annotation allows creating clickable links that navigate to a specific page or location within the same PDF document. +This example demonstrates how to add a document link annotation to a PDF page using the [PdfDocumentLinkAnnotation](https://ej2.syncfusion.com/documentation/api/pdf/pdfdocumentlinkannotation) class. A document link annotation allows creating clickable links that navigate to a specific page or location within the same PDF document. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -587,7 +587,7 @@ document.destroy(); ### Redaction Annotation -This example demonstrates how to add a redaction annotation to a PDF page using the `PdfRedactionAnnotation` class. A redaction annotation allows marking areas of a PDF for permanent removal of sensitive content, ensuring confidentiality and compliance with privacy requirements. +This example demonstrates how to add a redaction annotation to a PDF page using the [PdfRedactionAnnotation](https://ej2.syncfusion.com/documentation/api/pdf/pdfredactionannotation) class. A redaction annotation allows marking areas of a PDF for permanent removal of sensitive content, ensuring confidentiality and compliance with privacy requirements. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -643,7 +643,7 @@ document.destroy(); ### Watermark Annotation -This example demonstrates how to add a watermark annotation to a PDF page using the `PdfWatermarkAnnotation` class. A watermark annotation allows overlaying text or images on a PDF page, typically used for branding, confidentiality notices, or document status indicators. +This example demonstrates how to add a watermark annotation to a PDF page using the [PdfWatermarkAnnotation](https://ej2.syncfusion.com/documentation/api/pdf/pdfwatermarkannotation) class. A watermark annotation allows overlaying text or images on a PDF page, typically used for branding, confidentiality notices, or document status indicators. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -687,7 +687,7 @@ document.destroy(); ### Text Markup Annotation -This example demonstrates how to add a text markup annotation to a PDF page using the `PdfTextMarkupAnnotation` class. A text markup annotation allows highlighting, underlining, or striking out text within a PDF document. +This example demonstrates how to add a text markup annotation to a PDF page using the [PdfTextMarkupAnnotation](https://ej2.syncfusion.com/documentation/api/pdf/pdftextmarkupannotation) class. A text markup annotation allows highlighting, underlining, or striking out text within a PDF document. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -754,7 +754,7 @@ document.destroy(); ## Rectangle Annotation -This example demonstrates how to add a rectangle annotation to a PDF page using the `PdfRectangleAnnotation` class. A rectangle annotation allows drawing rectangular shapes on a PDF document. +This example demonstrates how to add a rectangle annotation to a PDF page using the [PdfRectangleAnnotation](https://ej2.syncfusion.com/documentation/api/pdf/pdfrectangleannotation) class. A rectangle annotation allows drawing rectangular shapes on a PDF document. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -816,7 +816,7 @@ document.destroy(); ## Polygon Annotation -This example demonstrates how to add a polygon annotation to a PDF page using the `PdfPolygonAnnotation` class. A polygon annotation allows drawing multi-sided shapes on a PDF document. +This example demonstrates how to add a polygon annotation to a PDF page using the [PdfPolygonAnnotation](https://ej2.syncfusion.com/documentation/api/pdf/pdfpolygonannotation) class. A polygon annotation allows drawing multi-sided shapes on a PDF document. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -887,7 +887,7 @@ document.destroy(); ## Circle Annotation -This example demonstrates how to add a circle annotation to a PDF page using the `PdfCircleAnnotation` class. A circle annotation allows drawing circular or oval shapes on a PDF document. +This example demonstrates how to add a circle annotation to a PDF page using the [PdfCircleAnnotation](https://ej2.syncfusion.com/documentation/api/pdf/pdfcircleannotation) class. A circle annotation allows drawing circular or oval shapes on a PDF document. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -951,7 +951,7 @@ document.save('output.pdf'); ## Ellipse Annotation -This example demonstrates how to add an ellipse annotation to a PDF page using the `PdfEllipseAnnotation` class. An ellipse annotation allows drawing elliptical shapes on a PDF document. +This example demonstrates how to add an ellipse annotation to a PDF page using the [PdfEllipseAnnotation](https://ej2.syncfusion.com/documentation/api/pdf/pdfellipseannotation) class. An ellipse annotation allows drawing elliptical shapes on a PDF document. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -1013,7 +1013,7 @@ document.destroy(); ## Custom appearance in stamp annotation -This example demonstrates how to add a rubber stamp annotation to an existing PDF using the `PdfRubberStampAnnotation` class. This feature allows embedding custom images as stamp appearances within a specific location on the page. +This example demonstrates how to add a rubber stamp annotation to an existing PDF using the [PdfRubberStampAnnotation](https://ej2.syncfusion.com/documentation/api/pdf/pdfrubberstampannotation) class. This feature allows embedding custom images as stamp appearances within a specific location on the page. {% tabs %} @@ -1063,7 +1063,7 @@ document.destroy(); ## Measurement Annotations -This example demonstrates how to access a measurement annotation from a PDF page using the `PdfLineAnnotation` class. A measurement annotation allows defining and displaying dimensions such as distances or lengths within a PDF document. +This example demonstrates how to access a measurement annotation from a PDF page using the [PdfLineAnnotation](https://ej2.syncfusion.com/documentation/api/pdf/pdflineannotation) class. A measurement annotation allows defining and displaying dimensions such as distances or lengths within a PDF document. Common types of measurement annotations include: @@ -1173,7 +1173,7 @@ document.destroy(); ## Modifying the annotations -This example demonstrates how to modify an existing annotation in a PDF page using the PdfAnnotation class. Modifying annotations allows updating properties such as position, color, content, or appearance, enabling customization and refinement of the document's interactive elements. +This example demonstrates how to modify an existing annotation in a PDF page using the [PdfAnnotation](https://ej2.syncfusion.com/documentation/api/pdf/pdfannotation) class. Modifying annotations allows updating properties such as position, color, content, or appearance, enabling customization and refinement of the document's interactive elements. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -1219,7 +1219,7 @@ document.destroy(); ## Removing annotations from an existing PDF -This example demonstrates how to remove an annotation from a PDF page using the PdfAnnotationCollection class. Removing annotations allows deleting comments, shapes, or other interactive elements from a PDF document. +This example demonstrates how to remove an annotation from a PDF page using the [PdfAnnotationCollection](https://ej2.syncfusion.com/documentation/api/pdf/pdfannotationcollection) class. Removing annotations allows deleting comments, shapes, or other interactive elements from a PDF document. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -1262,7 +1262,7 @@ document.destroy(); ## Flatten annotation -This example demonstrates how to flatten annotations in a PDF document using the PdfAnnotation class. Flattening annotations converts interactive elements such as comments, highlights, and shapes into static content. +This example demonstrates how to flatten annotations in a PDF document using the [PdfAnnotation](https://ej2.syncfusion.com/documentation/api/pdf/pdfannotation) class. Flattening annotations converts interactive elements such as comments, highlights, and shapes into static content. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} diff --git a/Document-Processing/PDF/PDF-Library/javascript/Bookmarks.md b/Document-Processing/PDF/PDF-Library/javascript/Bookmarks.md index c886a2c649..613af580a5 100644 --- a/Document-Processing/PDF/PDF-Library/javascript/Bookmarks.md +++ b/Document-Processing/PDF/PDF-Library/javascript/Bookmarks.md @@ -11,7 +11,7 @@ Syncfusion® PDF provides support to insert, remove, and modify th ## Adding bookmarks to a PDF -This example demonstrates how to add bookmarks to a PDF document using the `PdfBookmark` class. Bookmarks provide an easy way to navigate through different sections of a PDF file. +This example demonstrates how to add bookmarks to a PDF document using the [PdfBookmark](https://ej2.syncfusion.com/documentation/api/pdf/pdfbookmark) class. Bookmarks provide an easy way to navigate through different sections of a PDF file. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -59,7 +59,7 @@ document.destroy(); ## Inserting bookmarks into an existing PDF -This example demonstrates how to insert bookmarks at a specific position in an existing PDF document using the `PdfBookmark` class. This feature allows precise control over bookmark order. +This example demonstrates how to insert bookmarks at a specific position in an existing PDF document using the [PdfBookmark](https://ej2.syncfusion.com/documentation/api/pdf/pdfbookmark) class. This feature allows precise control over bookmark order. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -103,7 +103,7 @@ document.destroy(); ## Nested Bookmark -This example demonstrates how to create hierarchical (parent-child) bookmarks in a PDF using the PdfBookmark class. This feature allows organizing content with nested bookmark structures for easier navigation. +This example demonstrates how to create hierarchical (parent-child) bookmarks in a PDF using the [PdfBookmark](https://ej2.syncfusion.com/documentation/api/pdf/pdfbookmark) class. This feature allows organizing content with nested bookmark structures for easier navigation. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -163,7 +163,7 @@ document.destroy(); ## Removing bookmarks from an existing PDF -This example demonstrates how to remove bookmarks from an existing PDF document using the `PdfBookmark` class. +This example demonstrates how to remove bookmarks from an existing PDF document using the [PdfBookmark](https://ej2.syncfusion.com/documentation/api/pdf/pdfbookmark) class. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -203,7 +203,7 @@ document.destroy(); ## Removing a bookmark from the document at a specified index -This example demonstrates how to remove bookmarks from the document at the specific index using the `PdfBookmark` class. +This example demonstrates how to remove bookmarks from the document at the specific index using the [PdfBookmark](https://ej2.syncfusion.com/documentation/api/pdf/pdfbookmark) class. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -239,7 +239,7 @@ document.destroy(); ## Removing all bookmarks from the collection -This example demonstrates how to removes all bookmarks from the collection using the `PdfBookmark` class. +This example demonstrates how to removes all bookmarks from the collection using the [PdfBookmark](https://ej2.syncfusion.com/documentation/api/pdf/pdfbookmark) class. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -279,7 +279,7 @@ document.destroy(); ## Getting a bookmark's page index in an existing PDF document -This example demonstrates how to retrieve the page index associated with a bookmark in an existing PDF document using the `PdfBookmark` class. This helps identify the exact location of the bookmark. +This example demonstrates how to retrieve the page index associated with a bookmark in an existing PDF document using the [PdfBookmark](https://ej2.syncfusion.com/documentation/api/pdf/pdfbookmark) class. This helps identify the exact location of the bookmark. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} diff --git a/Document-Processing/PDF/PDF-Library/javascript/DigitalSignature.md b/Document-Processing/PDF/PDF-Library/javascript/DigitalSignature.md index 6a5af0ef87..af1451f2c0 100644 --- a/Document-Processing/PDF/PDF-Library/javascript/DigitalSignature.md +++ b/Document-Processing/PDF/PDF-Library/javascript/DigitalSignature.md @@ -11,7 +11,7 @@ The PDF provides support to create, validate, and manage digital signatures in P ## Adding a digital signature -This example demonstrates how to add a digital signature to a PDF document using the `PdfSignature` class. Digital signatures ensure document authenticity and integrity by applying cryptographic standards. +This example demonstrates how to add a digital signature to a PDF document using the [PdfSignature](https://ej2.syncfusion.com/documentation/api/pdf/pdfsignature) class. Digital signatures ensure document authenticity and integrity by applying cryptographic standards. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -226,7 +226,7 @@ document.destroy(); ## Create Signature with Public Certificates for External Signing -This example demonstrates how to create a new PDF signature using the `PdfSignature` class with public certificates for external signing. External signing allows you to implement custom signing logic outside the PDF library while maintaining compliance with cryptographic standards. +This example demonstrates how to create a new PDF signature using the [PdfSignature](https://ej2.syncfusion.com/documentation/api/pdf/pdfsignature) class with public certificates for external signing. External signing allows you to implement custom signing logic outside the PDF library while maintaining compliance with cryptographic standards. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -666,7 +666,7 @@ document.destroy(); ## Retrieve the signed date of a PDF signature -This example demonstrates how to retrieve the signed date of a PDF signature using the `getSignedDate()` method of the `PdfSignature` class. This property helps identify when the document was digitally signed. +This example demonstrates how to retrieve the signed date of a PDF signature using the [getSignedDate()](https://ej2.syncfusion.com/documentation/api/pdf/pdfsignature#getsigneddate) method of the [PdfSignature](https://ej2.syncfusion.com/documentation/api/pdf/pdfsignature) class. This property helps identify when the document was digitally signed. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -710,7 +710,7 @@ document.destroy(); ## Get Certificate Information from a PDF Signature -This example demonstrates how to retrieve the certificate information of a PDF signature using the `getCertificateInformation()` method of the `PdfSignature` class. This information includes details about the signer's certificate used for digital signing. +This example demonstrates how to retrieve the certificate information of a PDF signature using the [getCertificateInformation()](https://ej2.syncfusion.com/documentation/api/pdf/pdfsignature#getcertificateinformation) method of the [PdfSignature](https://ej2.syncfusion.com/documentation/api/pdf/pdfsignature) class. This information includes details about the signer's certificate used for digital signing. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -766,7 +766,7 @@ document.destroy(); ## Get Digital Signature Configuration Options -This example demonstrates how to retrieve the configuration options of a digital signature in a PDF document using the `getSignatureOptions()` method of the `PdfSignature` class. These options include details such as the cryptographic standard and digest algorithm used for signing. +This example demonstrates how to retrieve the configuration options of a digital signature in a PDF document using the [getSignatureOptions()](https://ej2.syncfusion.com/documentation/api/pdf/pdfsignature#getsignatureoptions) method of the [PdfSignature](https://ej2.syncfusion.com/documentation/api/pdf/pdfsignature) class. These options include details such as the cryptographic standard and digest algorithm used for signing. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -846,7 +846,7 @@ document.destroy(); ## Replace Empty Signature with Externally Signed Data -This example demonstrates how to replace an empty signature field in a PDF document with externally signed data using the `replaceEmptySignature()` method of the `PdfSignature` class. This method allows embedding externally signed content, certificates, and optional timestamp data into the PDF. +This example demonstrates how to replace an empty signature field in a PDF document with externally signed data using the [replaceEmptySignature()](https://ej2.syncfusion.com/documentation/api/pdf/pdfsignature#replaceemptysignature) method of the [PdfSignature](https://ej2.syncfusion.com/documentation/api/pdf/pdfsignature) class. This method allows embedding externally signed content, certificates, and optional timestamp data into the PDF. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -952,7 +952,7 @@ document.destroy(); ## Sign existing signature field -This section explains how to sign an existing unsigned signature field in a PDF using the JavaScript PDF library. You can locate predefined signature fields and apply a digital signature directly by calling `PdfSignatureField.setSignature()` method, without altering the document layout. This is ideal for templates where signature placeholders already exist, allowing you to add digital signatures to the field using a certificate and signature settings. +This section explains how to sign an existing unsigned signature field in a PDF using the JavaScript PDF library. You can locate predefined signature fields and apply a digital signature directly by calling [setSignature()](https://ej2.syncfusion.com/documentation/api/pdf/pdfsignaturefield#setsignature) method of the [PdfSignatureField](https://ej2.syncfusion.com/documentation/api/pdf/pdfsignaturefield) class, without altering the document layout. This is ideal for templates where signature placeholders already exist, allowing you to add digital signatures to the field using a certificate and signature settings. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -1002,7 +1002,7 @@ document.destroy(); ## Remove existing digital signature -This section explains how to remove an existing digital signature from a PDF by using `PdfForm.removeField()` method to delete the signature field entirely. Removing the field clears the signature dictionary, allowing the document to be edited, corrected, or re‑signed as needed. This is useful when preparing a PDF for updates or resolving signature‑related issues. +This section explains how to remove an existing digital signature from a PDF by using [removeField()](https://ej2.syncfusion.com/documentation/api/pdf/pdfform#removefield) method of [PdfForm](https://ej2.syncfusion.com/documentation/api/pdf/pdfform) class to delete the signature field entirely. Removing the field clears the signature dictionary, allowing the document to be edited, corrected, or re‑signed as needed. This is useful when preparing a PDF for updates or resolving signature‑related issues. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -1042,7 +1042,7 @@ document.destroy(); ## Document revisions -Digital signatures in a PDF create new revisions, keeping every previous version intact. These revisions let you see how the document looked when each signature was applied and check if anything changed later. You can access all revisions using `PdfDocument.getRevisions()` method or get a specific one using `PdfSignatureField.getRevision()` method. +Digital signatures in a PDF create new revisions, keeping every previous version intact. These revisions let you see how the document looked when each signature was applied and check if anything changed later. You can access all revisions using [getRevisions()](https://ej2.syncfusion.com/documentation/api/pdf/pdfdocument#getrevisions) method of the [PdfDocument](https://ej2.syncfusion.com/documentation/api/pdf/pdfdocument) class or get a specific one using [getRevision()](https://ej2.syncfusion.com/documentation/api/pdf/pdfsignaturefield#getrevision) method of the [PdfSignatureField](https://ej2.syncfusion.com/documentation/api/pdf/pdfsignaturefield). {% tabs %} {% highlight typescript tabtitle="TypeScript" %} diff --git a/Document-Processing/PDF/PDF-Library/javascript/FormFields.md b/Document-Processing/PDF/PDF-Library/javascript/FormFields.md index b4627bea9b..218241afb1 100644 --- a/Document-Processing/PDF/PDF-Library/javascript/FormFields.md +++ b/Document-Processing/PDF/PDF-Library/javascript/FormFields.md @@ -11,11 +11,11 @@ An interactive form, sometimes referred to as an AcroForm, is a collection of fi ## Creating a new PDF form -Syncfusion® PDF allows you to create and manage form in PDF document by using `PdfForm` class. The `PdfForm` class represents the entire field collection of the form. +Syncfusion® PDF allows you to create and manage form in PDF document by using [PdfForm](https://ej2.syncfusion.com/documentation/api/pdf/pdfform) class. The [PdfForm](https://ej2.syncfusion.com/documentation/api/pdf/pdfform) class represents the entire field collection of the form. ### Adding the text box field -This example demonstrates how to add a text box field to a PDF document using the `PdfTextBoxField` class. A text box field allows users to enter text data in interactive PDF forms. +This example demonstrates how to add a text box field to a PDF document using the [PdfTextBoxField](https://ej2.syncfusion.com/documentation/api/pdf/pdftextboxfield) class. A text box field allows users to enter text data in interactive PDF forms. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -81,7 +81,7 @@ document.destroy(); ### Adding the combo box field -This example demonstrates how to add a combo box field to a PDF document using the `PdfComboBoxField` class. A combo box field provides a drop-down list for users to select predefined options. +This example demonstrates how to add a combo box field to a PDF document using the [PdfComboBoxField](https://ej2.syncfusion.com/documentation/api/pdf/pdfcomboboxfield) class. A combo box field provides a drop-down list for users to select predefined options. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -157,7 +157,7 @@ document.destroy(); ### Adding the radio button field -This example demonstrates how to add a radio button field to a PDF document using the `PdfRadioButtonListField` class. Radio buttons allow users to select one option from a group of choices. +This example demonstrates how to add a radio button field to a PDF document using the [PdfRadioButtonListField](https://ej2.syncfusion.com/documentation/api/pdf/pdfradiobuttonlistfield) class. Radio buttons allow users to select one option from a group of choices. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -223,7 +223,7 @@ document.destroy(); ### Adding the list box field -This example demonstrates how to add a list box field to a PDF document using the `PdfListBoxField` class. A list box field displays multiple options, allowing users to select one or more items. +This example demonstrates how to add a list box field to a PDF document using the [PdfListBoxField](https://ej2.syncfusion.com/documentation/api/pdf/pdflistboxfield) class. A list box field displays multiple options, allowing users to select one or more items. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -301,7 +301,7 @@ document.destroy(); ### Adding the check box field -This example demonstrates how to add a check box field to a PDF document using the `PdfCheckBoxField` class. Check boxes allow users to select or deselect options in a form. +This example demonstrates how to add a check box field to a PDF document using the [PdfCheckBoxField](https://ej2.syncfusion.com/documentation/api/pdf/pdfcheckboxfield) class. Check boxes allow users to select or deselect options in a form. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -363,7 +363,7 @@ document.destroy(); ### Adding the signature field -This example demonstrates how to add a signature field to a PDF document using the `PdfSignatureField` class. A signature field enables users to digitally sign the PDF document. +This example demonstrates how to add a signature field to a PDF document using the [PdfSignatureField](https://ej2.syncfusion.com/documentation/api/pdf/pdfsignaturefield) class. A signature field enables users to digitally sign the PDF document. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -431,7 +431,7 @@ document.destroy(); ### Adding the button field -This example demonstrates how to add a button field to a PDF document using the `PdfButtonField` class. Buttons can be configured to perform actions such as submitting a form or triggering JavaScript. +This example demonstrates how to add a button field to a PDF document using the [PdfButtonField](https://ej2.syncfusion.com/documentation/api/pdf/pdfbuttonfield) class. Buttons can be configured to perform actions such as submitting a form or triggering JavaScript. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -507,7 +507,7 @@ Syncfusion® PDF allows you to fill the form fields using PdfField ### Filling the text box field -This example demonstrates how to fill a text box field in a PDF document using the `text` property of the `PdfTextBoxField` class. The following code snippet illustrates how to set the text value for the field. +This example demonstrates how to fill a text box field in a PDF document using the [text](https://ej2.syncfusion.com/documentation/api/pdf/pdftextboxfield#get-text-string) property of the [PdfTextBoxField](https://ej2.syncfusion.com/documentation/api/pdf/pdftextboxfield) class. The following code snippet illustrates how to set the text value for the field. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -551,7 +551,7 @@ document.destroy(); ### Filling the combo box field -This example demonstrates how to fill a combo box field in a PDF document using the `selectedIndex` property of the `PdfComboBoxField` class. The following code snippet shows how to change the selected index in a combo box. +This example demonstrates how to fill a combo box field in a PDF document using the [selectedIndex](https://ej2.syncfusion.com/documentation/api/pdf/pdfcomboboxfield#get-selectedindex-number---number) property of the [PdfComboBoxField](https://ej2.syncfusion.com/documentation/api/pdf/pdfcomboboxfield) class. The following code snippet shows how to change the selected index in a combo box. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -595,7 +595,7 @@ document.destroy(); ### Filling the radio button field -This example demonstrates how to fill a radio button field in a PDF document using the `selectedIndex` property of the `PdfRadioButtonListField` class. The following code snippet illustrates how to change the selected index in a radio button. +This example demonstrates how to fill a radio button field in a PDF document using the [selectedIndex](https://ej2.syncfusion.com/documentation/api/pdf/pdfcomboboxfield#get-selectedindex-number---number) property of the [PdfRadioButtonListField](https://ej2.syncfusion.com/documentation/api/pdf/pdfradiobuttonlistfield) class. The following code snippet illustrates how to change the selected index in a radio button. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -639,7 +639,7 @@ document.destroy(); ### Filling the list box field -This example demonstrates how to fill a list box field in a PDF document using the `selectedIndex` property of the `PdfLoadedListBoxField` class. The following code snippet shows how to change the selected index in a list box. +This example demonstrates how to fill a list box field in a PDF document using the [selectedIndex](https://ej2.syncfusion.com/documentation/api/pdf/pdflistboxfield#get-selectedindex-number---number) property of the [PdfListBoxField](https://ej2.syncfusion.com/documentation/api/pdf/pdflistboxfield) class. The following code snippet shows how to change the selected index in a list box. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -683,7 +683,7 @@ document.destroy(); ### Filling the check Box field -This example demonstrates how to fill a check box field in a PDF document using the `Checked` property of the `PdfCheckBoxField` class. The following code snippet illustrates how to mark a checkbox as selected. +This example demonstrates how to fill a check box field in a PDF document using the [Checked](https://ej2.syncfusion.com/documentation/api/pdf/pdfcheckboxfield#get-checked-boolean) property of the [PdfCheckBoxField](https://ej2.syncfusion.com/documentation/api/pdf/pdfcheckboxfield) class. The following code snippet illustrates how to mark a checkbox as selected. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -727,7 +727,7 @@ document.destroy(); ### Filling the signature field -This example demonstrates how to fill a signature field in a PDF document using the `PdfSignatureField` class. The following code snippet illustrates how to create a signature using PFX data and assign it to the signature field. +This example demonstrates how to fill a signature field in a PDF document using the [PdfSignatureField](https://ej2.syncfusion.com/documentation/api/pdf/pdfsignaturefield) class. The following code snippet illustrates how to create a signature using PFX data and assign it to the signature field. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -773,7 +773,7 @@ document.destroy(); ### Modifying the existing form field in PDF document -This example demonstrates how to modify an existing form field in a PDF document using the `PdfTextBoxField` class. The following code snippet illustrates how to update the text value, alignment, and default value of a text box field. +This example demonstrates how to modify an existing form field in a PDF document using the [PdfTextBoxField](https://ej2.syncfusion.com/documentation/api/pdf/pdftextboxfield) class. The following code snippet illustrates how to update the text value, alignment, and default value of a text box field. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -821,7 +821,7 @@ document.destroy(); ## Ordering form fields -This example demonstrates how to organize form fields in an existing PDF document using the `PdfFormFieldsTabOrder`. This sample ensures that fields follow a specific tab order, improving navigation and user experience. +This example demonstrates how to organize form fields in an existing PDF document using the [PdfFormFieldsTabOrder](https://ej2.syncfusion.com/documentation/api/pdf/pdfformfieldstaborder). This sample ensures that fields follow a specific tab order, improving navigation and user experience. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -917,7 +917,7 @@ document. Destroy(); ## Field Auto Naming -To prevent grouping when adding fields with the same name, you can enable the `fieldAutoNaming` property of `PdfForm` class. Setting fieldAutoNaming to true ensures that each field gets a unique name internally, even if you specify the same name during creation. +To prevent grouping when adding fields with the same name, you can enable the [fieldAutoNaming](https://ej2.syncfusion.com/documentation/api/pdf/pdfform#get-fieldautonaming-boolean) property of [PdfForm](https://ej2.syncfusion.com/documentation/api/pdf/pdfform) class. Setting fieldAutoNaming to true ensures that each field gets a unique name internally, even if you specify the same name during creation. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -1021,7 +1021,7 @@ document.destroy(); ## Removing the form fields from existing PDF document -This example demonstrates how to remove items from an existing form field in a PDF document using the `remove()` method of the `PdfField` class. The following code snippet illustrates how to access a form field and remove its first item. +This example demonstrates how to remove items from an existing form field in a PDF document using the [removeField()](https://ej2.syncfusion.com/documentation/api/pdf/pdfform#removefield) method of the [PdfForm](https://ej2.syncfusion.com/documentation/api/pdf/pdfform) class. The following code snippet illustrates how to access a form field and remove its first item. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} diff --git a/Document-Processing/PDF/PDF-Library/javascript/HyperLinks.md b/Document-Processing/PDF/PDF-Library/javascript/HyperLinks.md index 06b8e0bdd1..bc583ce9e2 100644 --- a/Document-Processing/PDF/PDF-Library/javascript/HyperLinks.md +++ b/Document-Processing/PDF/PDF-Library/javascript/HyperLinks.md @@ -11,7 +11,7 @@ In PDF, hyperlinks can be added to allow the users to navigate to another part o ## Working with web navigation -This example demonstrates how to create a web link annotation in a PDF document using the `PdfTextWebLinkAnnotation` class. A web link annotation allows users to navigate to a specified URL directly from the PDF by clicking the annotated text. +This example demonstrates how to create a web link annotation in a PDF document using the [PdfTextWebLinkAnnotation](https://ej2.syncfusion.com/documentation/api/pdf/pdftextweblinkannotation) class. A web link annotation allows users to navigate to a specified URL directly from the PDF by clicking the annotated text. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -131,7 +131,7 @@ document.destroy(); ## Working with external document navigation -This example demonstrates how to create external navigation in a PDF document using `PdfFileLinkAnnotation` annotations. External navigation allows users to open and navigate to another PDF or an external file from within the current document. +This example demonstrates how to create external navigation in a PDF document using [PdfFileLinkAnnotation](https://ej2.syncfusion.com/documentation/api/pdf/pdffilelinkannotation) annotations. External navigation allows users to open and navigate to another PDF or an external file from within the current document. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -215,7 +215,7 @@ document.destroy(); ## Removing hyperlinks -This example demonstrates how to remove hyperlink annotations from a PDF using Syncfusion’s JavaScript PDF Library. By reviewing each annotation and checking whether it represents a hyperlink, you can remove it using either `remove()` or `removeAt()` methods. This helps clean up outdated or unwanted links while keeping the rest of the document content intact. +This example demonstrates how to remove hyperlink annotations from a PDF using Syncfusion’s JavaScript PDF Library. By reviewing each annotation and checking whether it represents a hyperlink, you can remove it using either [remove()](https://ej2.syncfusion.com/documentation/api/pdf/pdfannotationcollection#remove) or [removeAt()](https://ej2.syncfusion.com/documentation/api/pdf/pdfannotationcollection#removeat) methods. This helps clean up outdated or unwanted links while keeping the rest of the document content intact. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} diff --git a/Document-Processing/PDF/PDF-Library/javascript/Image-Extraction.md b/Document-Processing/PDF/PDF-Library/javascript/Image-Extraction.md index cce2d401ce..871326ea0d 100644 --- a/Document-Processing/PDF/PDF-Library/javascript/Image-Extraction.md +++ b/Document-Processing/PDF/PDF-Library/javascript/Image-Extraction.md @@ -13,7 +13,7 @@ N> For redaction features, you need to install the `@syncfusion/ej2-pdf-data-ext ## Extract images from a PDF -This code demonstrates how to extract embedded images and their metadata from a PDF using `PdfDataExtractor`. It loads a PDF, retrieves all `PdfEmbeddedImage` entries across pages, accesses the first image's raw byte data, and reads its properties format, page index, occurrence index, bounds, interpolation status, and masking flags before saving/disposing resources by destroying the document. +This code demonstrates how to extract embedded images and their metadata from a PDF using [PdfDataExtractor](https://ej2.syncfusion.com/documentation/api/pdf-data-extract/pdfdataextractor). It loads a PDF, retrieves all [PdfEmbeddedImage](https://ej2.syncfusion.com/documentation/api/pdf-data-extract/pdfembeddedimage) entries across pages, accesses the first image's raw byte data, and reads its properties format, page index, occurrence index, bounds, interpolation status, and masking flags before saving/disposing resources by destroying the document. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} diff --git a/Document-Processing/PDF/PDF-Library/javascript/Images.md b/Document-Processing/PDF/PDF-Library/javascript/Images.md index a095febe1e..79f277cdb9 100644 --- a/Document-Processing/PDF/PDF-Library/javascript/Images.md +++ b/Document-Processing/PDF/PDF-Library/javascript/Images.md @@ -10,11 +10,11 @@ documentation: UG The JavaScript PDF supports JPEG and PNG images. -Images are supported through the `PdfImage` class, which is an abstract base class that provides the common functionality for `PdfBitmap` class. +Images are supported through the [PdfImage](https://ej2.syncfusion.com/documentation/api/pdf/pdfimage) class, which is an abstract base class that provides the common functionality for [PdfBitmap](https://ej2.syncfusion.com/documentation/api/pdf/pdfbitmap) class. ## Adding image in PDF document -This example demonstrates how to add an image to a PDF document using the `PdfBitmap` class and the `draw` method of the `PdfImage` class. The image is loaded from a file and drawn at the specified coordinates on the page. +This example demonstrates how to add an image to a PDF document using the [PdfBitmap](https://ej2.syncfusion.com/documentation/api/pdf/pdfbitmap) class and the [draw](https://ej2.syncfusion.com/documentation/api/pdf/pdfimage#draw) method of the [PdfImage](https://ej2.syncfusion.com/documentation/api/pdf/pdfimage) class. The image is loaded from a file and drawn at the specified coordinates on the page. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -58,7 +58,7 @@ document.destroy(); ## Inserting an image in an existing document -This example demonstrates how to insert an image into an existing PDF document using the `PdfBitmap` class and the `draw` method of the `PdfImage` class. The image is loaded from a file and rendered at the specified position on the selected page. +This example demonstrates how to insert an image into an existing PDF document using the [PdfBitmap](https://ej2.syncfusion.com/documentation/api/pdf/pdfbitmap) class and the [draw](https://ej2.syncfusion.com/documentation/api/pdf/pdfimage#draw) method of the [PdfImage](https://ej2.syncfusion.com/documentation/api/pdf/pdfimage) class. The image is loaded from a file and rendered at the specified position on the selected page. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -102,7 +102,7 @@ document.destroy(); ## Clipping and graphics state -This example demonstrates how to apply clipping and manage graphics state in a PDF document using the `PdfGraphics` class. The `save` and `restore` methods preserve the current graphics state, while the `setClip` method defines a clipping region to restrict drawing operations, ensuring precise control over rendering. +This example demonstrates how to apply clipping and manage graphics state in a PDF document using the [PdfGraphics](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics) class. The [save](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics#save) and [restore](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics#restore) methods preserve the current graphics state, while the [setClip](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics#setclip) method defines a clipping region to restrict drawing operations, ensuring precise control over rendering. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -156,7 +156,7 @@ document.destroy(); ## Applying transparency and rotation to the image -This example demonstrates how to apply transparency and rotation to an image in a PDF document using the `PdfGraphics` class. Transparency can be controlled through the graphics state, while rotation is applied by transforming the graphics context before drawing the image, enabling advanced visual effects in the document. +This example demonstrates how to apply transparency and rotation to an image in a PDF document using the [PdfGraphics](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics) class. Transparency can be controlled through the graphics state, while rotation is applied by transforming the graphics context before drawing the image, enabling advanced visual effects in the document. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} diff --git a/Document-Processing/PDF/PDF-Library/javascript/Layers.md b/Document-Processing/PDF/PDF-Library/javascript/Layers.md index 8a52535a61..9d3256f2a2 100644 --- a/Document-Processing/PDF/PDF-Library/javascript/Layers.md +++ b/Document-Processing/PDF/PDF-Library/javascript/Layers.md @@ -14,7 +14,7 @@ JavaScript PDF provides support to create, add and merge the layers into PDF doc ## Adding layers in a PDF document -This example demonstrates how to add layers to a PDF document using the `PdfLayer` class. Layers allow you to organize content into separate, optional sections that can be shown or hidden by the user. +This example demonstrates how to add layers to a PDF document using the [PdfLayer](https://ej2.syncfusion.com/documentation/api/pdf/pdflayer) class. Layers allow you to organize content into separate, optional sections that can be shown or hidden by the user. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -70,7 +70,7 @@ document.save('Output.pdf'); ## Adding annotation to layer -This example demonstrates how to add an annotation to a specific layer in a PDF document using the `PdfLayer` class. Associating annotations with layers allows you to control their visibility dynamically. +This example demonstrates how to add an annotation to a specific layer in a PDF document using the [PdfLayer](https://ej2.syncfusion.com/documentation/api/pdf/pdflayer) class. Associating annotations with layers allows you to control their visibility dynamically. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -115,7 +115,7 @@ document.destroy(); ## Nested layers -This example demonstrates how to create nested layers in a PDF document using the `PdfLayer` class. Nested layers enable hierarchical organization of content for better control and user experience. +This example demonstrates how to create nested layers in a PDF document using the [PdfLayer](https://ej2.syncfusion.com/documentation/api/pdf/pdflayer) class. Nested layers enable hierarchical organization of content for better control and user experience. {% tabs %} {% highlight c# tabtitle="TypeScript" %} @@ -175,7 +175,7 @@ document.destroy(); ## Removing layers from an existing PDF document -This example demonstrates how to remove layers from an existing PDF document using the `PdfLayerCollection` class. Removing unnecessary layers helps simplify the document structure. +This example demonstrates how to remove layers from an existing PDF document using the [PdfLayerCollection](https://ej2.syncfusion.com/documentation/api/pdf/pdflayercollection) class. Removing unnecessary layers helps simplify the document structure. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -219,7 +219,7 @@ document.destroy(); ## Lock or unlock layers -This example demonstrates how to lock or unlock layers in a PDF document using the `PdfLayer` class. Locking layers prevents users from toggling their visibility, ensuring that critical content remains displayed. +This example demonstrates how to lock or unlock layers in a PDF document using the [PdfLayer](https://ej2.syncfusion.com/documentation/api/pdf/pdflayer) class. Locking layers prevents users from toggling their visibility, ensuring that critical content remains displayed. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} diff --git a/Document-Processing/PDF/PDF-Library/javascript/Lists.md b/Document-Processing/PDF/PDF-Library/javascript/Lists.md index 8a32d791b2..1ba0d0f35d 100644 --- a/Document-Processing/PDF/PDF-Library/javascript/Lists.md +++ b/Document-Processing/PDF/PDF-Library/javascript/Lists.md @@ -12,7 +12,7 @@ The PDF allows you list the content in ordered and unordered list. The ordered l ## Adding an ordered list -This example demonstrates how to create an ordered list in a PDF document using the `PdfOrderedList` class. Ordered lists allow you to present items in a structured, sequential format, typically numbered or lettered, enhancing readability and organization within the PDF content. +This example demonstrates how to create an ordered list in a PDF document using the [PdfOrderedList](https://ej2.syncfusion.com/documentation/api/pdf/pdforderedlist) class. Ordered lists allow you to present items in a structured, sequential format, typically numbered or lettered, enhancing readability and organization within the PDF content. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -35,7 +35,7 @@ let list: PdfOrderedList = new PdfOrderedList(items, { indent: 30, textIndent: 50, style: PdfNumberStyle.numeric, - delimiter: ')' + delimiter: ')' }); // Draw the ordered list on the page list.draw(page, { x: 0, y: 20, width: 500, height: 700 }); @@ -62,7 +62,7 @@ var list: PdfOrderedList = new PdfOrderedList(items, { indent: 30, textIndent: 50, style: ej.pdf.PdfNumberStyle.numeric, - delimiter: ')' + delimiter: ')' }); // Draw the ordered list on the page list.draw(page, { x: 0, y: 20, width: 500, height: 700 }); @@ -76,7 +76,7 @@ document.destroy(); ## Adding an unordered list -This example demonstrates how to create an unordered list in a PDF document using the `PdfUnorderedList` class. Unordered lists display items with bullet points instead of numbers, making them ideal for presenting non-sequential information in a clear and organized manner. +This example demonstrates how to create an unordered list in a PDF document using the [PdfUnorderedList](https://ej2.syncfusion.com/documentation/api/pdf/pdfunorderedlist) class. Unordered lists display items with bullet points instead of numbers, making them ideal for presenting non-sequential information in a clear and organized manner. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -140,7 +140,7 @@ document.destroy(); ## Customize list markers -This example demonstrates how to customize the marker style of an unordered list in a PDF document using the `PdfUnorderedList` class. The marker defines the symbol that appears before each list item. You can choose from four predefined marker styles: disk, square, asterisk, and circle. These options allow you to visually distinguish different list types or emphasize specific content, enhancing readability and structure within the document. +This example demonstrates how to customize the marker style of an unordered list in a PDF document using the [PdfUnorderedList](https://ej2.syncfusion.com/documentation/api/pdf/pdfunorderedlist) class. The marker defines the symbol that appears before each list item. You can choose from four predefined marker styles: disk, square, asterisk, and circle. These options allow you to visually distinguish different list types or emphasize specific content, enhancing readability and structure within the document. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -244,7 +244,7 @@ document.destroy(); ## Creating nested list structures -This example demonstrates how to create nested list structures in a PDF document using the `PdfUnorderedList` and `PdfOrderedList` classes. Nested lists allow you to organize information hierarchically by placing one list inside another. This is useful when representing multi‑level data, outlining topics with sub points, or grouping related items clearly. +This example demonstrates how to create nested list structures in a PDF document using the [PdfUnorderedList](https://ej2.syncfusion.com/documentation/api/pdf/pdfunorderedlist) and [PdfOrderedList](https://ej2.syncfusion.com/documentation/api/pdf/pdforderedlist) classes. Nested lists allow you to organize information hierarchically by placing one list inside another. This is useful when representing multi‑level data, outlining topics with sub points, or grouping related items clearly. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -292,7 +292,7 @@ document.destroy(); ## List pagination -This example shows how long lists automatically continue onto the next page when drawn using the `PdfUnorderedList` class. By applying a `PdfLayoutFormat`, the layout engine handles page breaks smoothly while preserving markers, indentation, and nested levels. This ensures consistent rendering of multi‑page or dynamically generated list content. +This example shows how long lists automatically continue onto the next page when drawn using the [PdfUnorderedList](https://ej2.syncfusion.com/documentation/api/pdf/pdfunorderedlist) class. By applying a [PdfLayoutFormat](https://ej2.syncfusion.com/documentation/api/pdf/pdflayoutformat), the layout engine handles page breaks smoothly while preserving markers, indentation, and nested levels. This ensures consistent rendering of multi‑page or dynamically generated list content. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} diff --git a/Document-Processing/PDF/PDF-Library/javascript/Merge-Document.md b/Document-Processing/PDF/PDF-Library/javascript/Merge-Document.md index 2e1b6b4e74..62fb2bc11d 100644 --- a/Document-Processing/PDF/PDF-Library/javascript/Merge-Document.md +++ b/Document-Processing/PDF/PDF-Library/javascript/Merge-Document.md @@ -11,7 +11,7 @@ The PDF provides support to merge multiple PDF documents into a single file and ## Importing pages -This section explains how to import a range of pages from a source PDF into a destination document using the `importPageRange` method. +This section explains how to import a range of pages from a source PDF into a destination document using the [importPageRange](https://ej2.syncfusion.com/documentation/api/pdf/pdfdocument#importpagerange) method. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -47,7 +47,7 @@ destination.destroy(); ## Importing pages from multiple documents -This section demonstrates how to import multiple pages from a source PDF into a destination document at a specified position using the `importPageRange` method and `PdfPageImportOptions`. This is useful for merging selected page ranges from different PDFs into one document. +This section demonstrates how to import multiple pages from a source PDF into a destination document at a specified position using the [importPageRange](https://ej2.syncfusion.com/documentation/api/pdf/pdfdocument#importpagerange) method and [PdfPageImportOptions](https://ej2.syncfusion.com/documentation/api/pdf/pdfpageimportoptions). This is useful for merging selected page ranges from different PDFs into one document. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -111,7 +111,7 @@ sourceDocument2.destroy(); ## Optimizing PDF resources when merging PDF documents -Imports a page from a source PDF into a destination document at a specific index with group form fields, rotation and resource optimization using `PdfPageImportOptions` class. +Imports a page from a source PDF into a destination document at a specific index with group form fields, rotation and resource optimization using [PdfPageImportOptions](https://ej2.syncfusion.com/documentation/api/pdf/pdfpageimportoptions) class. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} diff --git a/Document-Processing/PDF/PDF-Library/javascript/Open-and-save-PDF-files.md b/Document-Processing/PDF/PDF-Library/javascript/Open-and-save-PDF-files.md index 4d7acf12b5..f386c1633d 100644 --- a/Document-Processing/PDF/PDF-Library/javascript/Open-and-save-PDF-files.md +++ b/Document-Processing/PDF/PDF-Library/javascript/Open-and-save-PDF-files.md @@ -12,7 +12,7 @@ domainurl: ##DomainURL## ## Opening an existing PDF document -Open an existing PDF document using the `PdfDocument` class with the specified PDF data. +Open an existing PDF document using the [PdfDocument](https://ej2.syncfusion.com/documentation/api/pdf/pdfdocument) class with the specified PDF data. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -31,7 +31,7 @@ The PdfDocument constructor can accept PDF data in either Base64 string or Uint8 ### Using Base64 String -Open an existing PDF document using the `PdfDocument` class with the specified PDF data as Base64 string. +Open an existing PDF document using the [PdfDocument](https://ej2.syncfusion.com/documentation/api/pdf/pdfdocument) class with the specified PDF data as Base64 string. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -50,7 +50,7 @@ var document = new ej.pdf.PdfDocumentPdfDocument(data); ### Using Uint8Array -Open an existing PDF document using the `PdfDocument` class with the specified PDF data as Uint8Array. +Open an existing PDF document using the [PdfDocument](https://ej2.syncfusion.com/documentation/api/pdf/pdfdocument) class with the specified PDF data as Uint8Array. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -67,7 +67,7 @@ let document= new ej.pdf.PdfDocument(binaryData); ## Opening an encrypted PDF document with password -Open an encrypted PDF document using the `PdfDocument` class by providing the correct password. +Open an encrypted PDF document using the [PdfDocument](https://ej2.syncfusion.com/documentation/api/pdf/pdfdocument) class by providing the correct password. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -82,7 +82,7 @@ var document = new ej.pdf.PdfDocument(data, 'password'); ## Save and download a PDF document in browser environment -Save and download the PDF document using the `save` method of `PdfDocument` class with the specified file name. +Save and download the PDF document using the [save](https://ej2.syncfusion.com/documentation/api/pdf/pdfdocument#save) method of [PdfDocument](https://ej2.syncfusion.com/documentation/api/pdf/pdfdocument) class with the specified file name. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -103,7 +103,7 @@ document.save('output.pdf'); ## Saving a PDF document to byte array -Save the modified PDF document to the specified byte array using the `save` method available in `PdfDocument` class. +Save the modified PDF document to the specified byte array using the [save](https://ej2.syncfusion.com/documentation/api/pdf/pdfdocument#save) method available in [PdfDocument](https://ej2.syncfusion.com/documentation/api/pdf/pdfdocument) class. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -124,7 +124,7 @@ var data = document.save(); ## Closing a document -After the document manipulation and save operation are completed, you should close the instance of `PdfDocument`, in order to release all the memory consumed by PDF DOM. The following code example illustrates how to destroy a `PdfDocument` instance. +After the document manipulation and save operation are completed, you should close the instance of [PdfDocument](https://ej2.syncfusion.com/documentation/api/pdf/pdfdocument), in order to release all the memory consumed by PDF DOM. The following code example illustrates how to destroy a [PdfDocument](https://ej2.syncfusion.com/documentation/api/pdf/pdfdocument) instance. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} diff --git a/Document-Processing/PDF/PDF-Library/javascript/PDF-document.md b/Document-Processing/PDF/PDF-Library/javascript/PDF-document.md index 1ed012ce1a..7cefd05480 100644 --- a/Document-Processing/PDF/PDF-Library/javascript/PDF-document.md +++ b/Document-Processing/PDF/PDF-Library/javascript/PDF-document.md @@ -11,7 +11,7 @@ The PDF library provides support to create, read, and manipulate PDF documents, ## Adding the document settings -This example shows how to configure custom page settings before adding a page to a PDF document. It creates a `PdfPageSettings` instance, applies margins, page size and sets the orientation. +This example shows how to configure custom page settings before adding a page to a PDF document. It creates a [PdfPageSettings](https://ej2.syncfusion.com/documentation/api/pdf/pdfpagesettings) instance, applies margins, page size and sets the orientation. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -162,7 +162,7 @@ document.destroy(); ## Performing incremental update for PDF document -The `isIncrementalUpdate` property allows you to check if the PDF document supports incremental updates, which can improve performance during modifications by appending changes rather than rewriting the entire document. +The [isIncrementalUpdate](https://ej2.syncfusion.com/documentation/api/pdf/pdffilestructure#get-isincrementalupdate-boolean) property allows you to check if the PDF document supports incremental updates, which can improve performance during modifications by appending changes rather than rewriting the entire document. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -210,7 +210,7 @@ document.destroy(); ## Flatten annotations and form fields -The `flatten` property allows you to convert all annotations and form fields in a PDF into static page content, removing interactivity while preserving their visual appearance. +The [flatten](https://ej2.syncfusion.com/documentation/api/pdf/pdfdocument#get-flatten-boolean) property allows you to convert all annotations and form fields in a PDF into static page content, removing interactivity while preserving their visual appearance. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} diff --git a/Document-Processing/PDF/PDF-Library/javascript/PDF-pages.md b/Document-Processing/PDF/PDF-Library/javascript/PDF-pages.md index 686f9a85c7..11b083a7b2 100644 --- a/Document-Processing/PDF/PDF-Library/javascript/PDF-pages.md +++ b/Document-Processing/PDF/PDF-Library/javascript/PDF-pages.md @@ -13,7 +13,7 @@ N> The PDF page is created using the default settings, which include A4 page siz ## Adding a new page to the document -The following code sample demonstrates how to add a `PdfPage` to a PDF document. When multiple pages are added, each new page is appended to the end of the document. +The following code sample demonstrates how to add a [PdfPage](https://ej2.syncfusion.com/documentation/api/pdf/pdfpage) to a PDF document. When multiple pages are added, each new page is appended to the end of the document. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -45,7 +45,7 @@ document.destroy(); ## Adding margin to the PDF pages -The `PdfPageSettings` class is used to define properties such as margins, orientation, rotation, and page size. In this example, margins are set using the `PdfMargins` class to ensure consistent spacing around the page content. These settings can be applied when creating sections or pages in the PDF for precise layout control. +The [PdfPageSettings](https://ej2.syncfusion.com/documentation/api/pdf/pdfpagesettings) class is used to define properties such as margins, orientation, rotation, and page size. In this example, margins are set using the [PdfMargins](https://ej2.syncfusion.com/documentation/api/pdf/pdfmargins) class to ensure consistent spacing around the page content. These settings can be applied when creating sections or pages in the PDF for precise layout control. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -80,7 +80,7 @@ N> The creation default margin is set to 40 points, ensuring uniform spacing bet ## Adding sections with different page settings -This example demonstrates how to add sections with different page settings in a PDF document. It shows how to configure rotation, orientation, margins, and page size using `PdfPageSettings`. The `PdfSection` class is used to apply unique page customizations within a single PDF document. +This example demonstrates how to add sections with different page settings in a PDF document. It shows how to configure rotation, orientation, margins, and page size using [PdfPageSettings](https://ej2.syncfusion.com/documentation/api/pdf/pdfpagesettings). The [PdfSection](https://ej2.syncfusion.com/documentation/api/pdf/pdfsection) class is used to apply unique page customizations within a single PDF document. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -208,7 +208,7 @@ document.destroy(); ## Get number of pages from a PDF document -This example demonstrates how to retrieve the total number of pages in a PDF document using the `pageCount` property of the `PdfDocument` class. The page count returns an integer value representing the number of pages currently in the document. +This example demonstrates how to retrieve the total number of pages in a PDF document using the [pageCount](https://ej2.syncfusion.com/documentation/api/pdf/pdfdocument#get-pagecount-number) property of the [PdfDocument](https://ej2.syncfusion.com/documentation/api/pdf/pdfdocument) class. The page count returns an integer value representing the number of pages currently in the document. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -235,7 +235,7 @@ document.destroy(); ## Rearranging pages in an existing document -This example demonstrates how to rearrange the pages in an existing PDF document using the `reorderPages` method of the `PdfDocument` class. The method accepts an array of page indices that defines the new order of pages within the document. +This example demonstrates how to rearrange the pages in an existing PDF document using the [reorderPages](https://ej2.syncfusion.com/documentation/api/pdf/pdfdocument#reorderpages) method of the [PdfDocument](https://ej2.syncfusion.com/documentation/api/pdf/pdfdocument) class. The method accepts an array of page indices that defines the new order of pages within the document. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -267,7 +267,7 @@ document.destroy(); ## Removing pages from a document -This example demonstrates how to remove a page from a PDF document using the `removePage` method of the `PdfDocument` class. The method takes the zero-based index of the page to be removed, effectively deleting that page from the document. +This example demonstrates how to remove a page from a PDF document using the [removePage](https://ej2.syncfusion.com/documentation/api/pdf/pdfdocument#removepage) method of the [PdfDocument](https://ej2.syncfusion.com/documentation/api/pdf/pdfdocument) class. The method takes the zero-based index of the page to be removed, effectively deleting that page from the document. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -305,7 +305,7 @@ document.destroy(); ## Add rotated PDF pages -This example demonstrates how to rotate a PDF page using the `rotation` property of the `PdfPageSettings` class. The property accepts a value from the `PdfRotationAngle` enumeration, such as angle180, to specify the rotation angle applied to the page. +This example demonstrates how to rotate a PDF page using the [rotation](https://ej2.syncfusion.com/documentation/api/pdf/pdfpagesettings#get-rotation-pdfrotationangle) property of the [PdfPageSettings](https://ej2.syncfusion.com/documentation/api/pdf/pdfpagesettings) class. The property accepts a value from the [PdfRotationAngle](https://ej2.syncfusion.com/documentation/api/pdf/pdfrotationangle) enumeration, such as angle180, to specify the rotation angle applied to the page. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -353,7 +353,7 @@ document.destroy(); ## Rotating an existing PDF page -This example demonstrates how to rotate an existing PDF page using the `rotation` property of the `PdfPage` class. The property accepts a value from the `PdfRotationAngle` enumeration, such as angle180, to specify the rotation angle applied to the selected page. +This example demonstrates how to rotate an existing PDF page using the [rotation](https://ej2.syncfusion.com/documentation/api/pdf/pdfpage#get-rotation-pdfrotationangle) property of the [PdfPage](https://ej2.syncfusion.com/documentation/api/pdf/pdfpage) class. The property accepts a value from the [PdfRotationAngle](https://ej2.syncfusion.com/documentation/api/pdf/pdfrotationangle) enumeration, such as angle180, to specify the rotation angle applied to the selected page. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -389,7 +389,7 @@ document.destroy(); ## Insert a duplicate page at a specific index -Duplicates a page from a source PDF and inserts it into the destination document at the specified index using `PdfPageImportOptions.targetIndex`. This is useful for reusing or cloning content across documents or within the same document. +Duplicates a page from a source PDF and inserts it into the destination document at the specified index using [targetIndex](https://ej2.syncfusion.com/documentation/api/pdf/pdfpageimportoptions#get-targetindex-number) property of the [PdfPageImportOptions](https://ej2.syncfusion.com/documentation/api/pdf/pdfpageimportoptions). This is useful for reusing or cloning content across documents or within the same document. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} diff --git a/Document-Processing/PDF/PDF-Library/javascript/Redaction.md b/Document-Processing/PDF/PDF-Library/javascript/Redaction.md index c9f0a865ee..5d4ba6124a 100644 --- a/Document-Processing/PDF/PDF-Library/javascript/Redaction.md +++ b/Document-Processing/PDF/PDF-Library/javascript/Redaction.md @@ -13,7 +13,7 @@ N> For redaction features, you need to install the `@syncfusion/ej2-pdf-data-ext ## Removing sensitive content from the PDF document -Redaction permanently removes confidential or sensitive information from a PDF. The `PdfRedactor` and `PdfRedactionRegion` classes allow you to mark specific areas and apply irreversible redaction to the document. +Redaction permanently removes confidential or sensitive information from a PDF. The [PdfRedactor](https://ej2.syncfusion.com/documentation/api/pdf-data-extract/pdfredactor) and [PdfRedactionRegion](https://ej2.syncfusion.com/documentation/api/pdf-data-extract/pdfredactionregion) classes allow you to mark specific areas and apply irreversible redaction to the document. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -133,7 +133,7 @@ document.destroy(); ## Text appearance on the redacted area -Customize the redacted region by drawing text or graphics over it, using `PdfRedactionRegion` and `PdfRedactor` to define the area and apply a custom visual appearance to the redaction. +Customize the redacted region by drawing text or graphics over it, using [PdfRedactionRegion](https://ej2.syncfusion.com/documentation/api/pdf-data-extract/pdfredactionregion) and [PdfRedactor](https://ej2.syncfusion.com/documentation/api/pdf-data-extract/pdfredactor) to define the area and apply a custom visual appearance to the redaction. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} diff --git a/Document-Processing/PDF/PDF-Library/javascript/Shapes.md b/Document-Processing/PDF/PDF-Library/javascript/Shapes.md index 00f32c3ef9..abaef36e79 100644 --- a/Document-Processing/PDF/PDF-Library/javascript/Shapes.md +++ b/Document-Processing/PDF/PDF-Library/javascript/Shapes.md @@ -25,7 +25,7 @@ The JavaScript PDF library supports shape rendering exclusively with PDF solid b ### Line -This example demonstrates how to draw a straight line in a PDF document using the `drawLine` method of the `PdfGraphics` class. +This example demonstrates how to draw a straight line in a PDF document using the [drawLine](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics#Syncfusion_Pdf_Graphics_PdfGraphics_DrawLine_Syncfusion_Pdf_Graphics_PdfPen_System_Single_System_Single_System_Single_System_Single_) method of the [PdfGraphics](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics) class. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -66,7 +66,7 @@ document.destroy(); ### Rectangle -This example demonstrates how to draw a rectangle in a PDF document using the `drawRectangle` method of the `PdfGraphics` class. +This example demonstrates how to draw a rectangle in a PDF document using the [drawRectangle](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics#Syncfusion_Pdf_Graphics_PdfGraphics_DrawRectangle_Syncfusion_Pdf_Graphics_PdfPen_System_Single_System_Single_System_Single_System_Single_) method of the [PdfGraphics](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics) class. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -107,7 +107,7 @@ document.destroy(); ### Rounded rectangle -This example demonstrates how to draw a rounded rectangle in a PDF document using the `drawRoundedRectangle` method of the `PdfGraphics` class. +This example demonstrates how to draw a rounded rectangle in a PDF document using the `drawRoundedRectangle` method of the [PdfGraphics](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics) class. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -165,7 +165,7 @@ document.destroy(); ### Ellipse -This example demonstrates how to draw a ellipse in a PDF document using the `drawEllipse` method of the `PdfGraphics` class. +This example demonstrates how to draw a ellipse in a PDF document using the [drawEllipse](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics#Syncfusion_Pdf_Graphics_PdfGraphics_DrawEllipse_Syncfusion_Pdf_Graphics_PdfPen_System_Single_System_Single_System_Single_System_Single_) method of the [PdfGraphics](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics) class. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -206,7 +206,7 @@ document.destroy(); ### Polygon -This example demonstrates how to draw a polygon shape in a PDF document using the `drawPolygon` method of the `PdfGraphics` class. +This example demonstrates how to draw a polygon shape in a PDF document using the [drawPolygon](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics#Syncfusion_Pdf_Graphics_PdfGraphics_DrawPolygon_Syncfusion_Pdf_Graphics_PdfPen_System_Drawing_PointF___) method of the [PdfGraphics](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics) class. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -251,7 +251,7 @@ document.destroy(); ### Pie -This example demonstrates how to draw a pie in a PDF document using the `drawPie` method of the `PdfGraphics` class. +This example demonstrates how to draw a pie in a PDF document using the [drawPie](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics#Syncfusion_Pdf_Graphics_PdfGraphics_DrawPie_Syncfusion_Pdf_Graphics_PdfPen_System_Single_System_Single_System_Single_System_Single_System_Single_System_Single_) method of the [PdfGraphics](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics) class. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -292,7 +292,7 @@ document.destroy(); ### Arc -This example demonstrates how to draw a arc in a PDF document using the `drawArc` method of the `PdfGraphics` class. +This example demonstrates how to draw a arc in a PDF document using the [drawArc](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics#Syncfusion_Pdf_Graphics_PdfGraphics_DrawArc_Syncfusion_Pdf_Graphics_PdfPen_System_Single_System_Single_System_Single_System_Single_System_Single_System_Single_) method of the [PdfGraphics](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics) class. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -333,7 +333,7 @@ document.destroy(); ### Bezier -This example demonstrates how to draw a bezier in a PDF document using the `drawBezier` method of the `PdfGraphics` class. +This example demonstrates how to draw a bezier in a PDF document using the [drawBezier](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics#Syncfusion_Pdf_Graphics_PdfGraphics_DrawBezier_Syncfusion_Pdf_Graphics_PdfPen_System_Single_System_Single_System_Single_System_Single_System_Single_System_Single_System_Single_System_Single_) method of the [PdfGraphics](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics) class. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -374,7 +374,7 @@ document.destroy(); ### Path -This example demonstrates how to draw a path in a PDF document using the `drawPath` method of the `PdfGraphics` class. +This example demonstrates how to draw a path in a PDF document using the [drawPath](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics#drawpath) method of the [PdfGraphics](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics) class. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} diff --git a/Document-Processing/PDF/PDF-Library/javascript/Split-Documents.md b/Document-Processing/PDF/PDF-Library/javascript/Split-Documents.md index 78c1209f64..2a1488c2c7 100644 --- a/Document-Processing/PDF/PDF-Library/javascript/Split-Documents.md +++ b/Document-Processing/PDF/PDF-Library/javascript/Split-Documents.md @@ -12,7 +12,7 @@ The PDF library supports splitting PDF file into single-page or multiple-page PD ## Splitting a PDF file into individual -The PDF library allows splitting the pages of an existing PDF document into multiple individual PDF documents using `split` method of the `PdfDocument` class. +The PDF library allows splitting the pages of an existing PDF document into multiple individual PDF documents using [split](https://ej2.syncfusion.com/documentation/api/pdf/pdfdocument#split) method of the [PdfDocument](https://ej2.syncfusion.com/documentation/api/pdf/pdfdocument) class. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -51,7 +51,7 @@ document.destroy(); ## Split a range of pages into a separate PDF document -The PDF library allows splitting a certain range of pages into a separate PDF document using the `splitByPageRanges` method of the `PdfDocument` class. +The PDF library allows splitting a certain range of pages into a separate PDF document using the [splitByPageRanges](https://ej2.syncfusion.com/documentation/api/pdf/pdfdocument#splitbypageranges) method of the [PdfDocument](https://ej2.syncfusion.com/documentation/api/pdf/pdfdocument) class. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -90,7 +90,7 @@ document.destroy(); ## Split by a fixed number of pages into a PDF document -The PDF library allows splitting by fixed number of pages of an existing PDF document using the `splitByFixedNumber` method of the `PdfDocument` class. +The PDF library allows splitting by fixed number of pages of an existing PDF document using the [splitByFixedNumber](https://ej2.syncfusion.com/documentation/api/pdf/pdfdocument#splitbyfixednumber) method of the [PdfDocument](https://ej2.syncfusion.com/documentation/api/pdf/pdfdocument) class. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} diff --git a/Document-Processing/PDF/PDF-Library/javascript/Templates.md b/Document-Processing/PDF/PDF-Library/javascript/Templates.md index 3efbd1ccf2..bf21bf1aab 100644 --- a/Document-Processing/PDF/PDF-Library/javascript/Templates.md +++ b/Document-Processing/PDF/PDF-Library/javascript/Templates.md @@ -11,7 +11,7 @@ A PDF template is a drawing surface, where contents can be added. All the elemen ## Creating a new PDF template -This example demonstrates how to create a new PDF template using the `PdfTemplate` class. A PDF template allows you to define reusable graphics or content that can be drawn on multiple pages or annotations within a PDF document. +This example demonstrates how to create a new PDF template using the [PdfTemplate](https://ej2.syncfusion.com/documentation/api/pdf/pdftemplate) class. A PDF template allows you to define reusable graphics or content that can be drawn on multiple pages or annotations within a PDF document. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} diff --git a/Document-Processing/PDF/PDF-Library/javascript/Text-Extraction.md b/Document-Processing/PDF/PDF-Library/javascript/Text-Extraction.md index 65ea05078a..b40430a5cb 100644 --- a/Document-Processing/PDF/PDF-Library/javascript/Text-Extraction.md +++ b/Document-Processing/PDF/PDF-Library/javascript/Text-Extraction.md @@ -13,7 +13,7 @@ N> For redaction features, you need to install the `@syncfusion/ej2-pdf-data-ext ## Working with basic text extraction -This example demonstrates how to extract text from a PDF page using the `PdfDataExtractor` class. Basic text extraction allows retrieving plain text content from a PDF document. +This example demonstrates how to extract text from a PDF page using the [PdfDataExtractor](https://ej2.syncfusion.com/documentation/api/pdf-data-extract/pdfdataextractor) class. Basic text extraction allows retrieving plain text content from a PDF document. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -87,7 +87,7 @@ document.destroy(); ## Working with layout based text extraction -This example demonstrates how to extract text from a PDF page using the `PdfDataExtractor` class with layout-based options. +This example demonstrates how to extract text from a PDF page using the [PdfDataExtractor](https://ej2.syncfusion.com/documentation/api/pdf-data-extract/pdfdataextractor) class with layout-based options. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -128,7 +128,7 @@ N> Layout based text extraction may take additional processing time when compare ### Working with lines -This example demonstrates how to extract text from a PDF page based on individual lines using the `extractTextLines` method. This approach provides a collection of `TextLine` objects, allowing precise access to text content line by line. +This example demonstrates how to extract text from a PDF page based on individual lines using the [extractTextLines](https://ej2.syncfusion.com/documentation/api/pdf-data-extract/pdfdataextractor#extracttextlines) method. This approach provides a collection of [TextLine](https://ej2.syncfusion.com/documentation/api/pdf-data-extract/textline) objects, allowing precise access to text content line by line. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -199,7 +199,7 @@ document.destroy(); ### Working with words -This example demonstrates how to extract words from a PDF document using the `extractTextLines` method. Each line contains a collection of `TextWord` objects. +This example demonstrates how to extract words from a PDF document using the [extractTextLines](https://ej2.syncfusion.com/documentation/api/pdf-data-extract/pdfdataextractor#extracttextlines) method. Each line contains a collection of [TextWord](https://ej2.syncfusion.com/documentation/api/pdf-data-extract/textword) objects. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -268,7 +268,7 @@ document.destroy(); ### Working with characters -You can retrieve a single character and its properties, including bounds, font name, font size, and text color, using the `extractTextLines` method. Refer to the code sample below. +You can retrieve a single character and its properties, including bounds, font name, font size, and text color, using the [extractTextLines](https://ej2.syncfusion.com/documentation/api/pdf-data-extract/pdfdataextractor#extracttextlines) method. Refer to the code sample below. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} diff --git a/Document-Processing/PDF/PDF-Library/javascript/Text.md b/Document-Processing/PDF/PDF-Library/javascript/Text.md index 9d59df6777..6af826d45c 100644 --- a/Document-Processing/PDF/PDF-Library/javascript/Text.md +++ b/Document-Processing/PDF/PDF-Library/javascript/Text.md @@ -11,7 +11,7 @@ The PDF provides support to add and format text in PDF documents using various f ## Drawing text in a new document -This example demonstrates how to draw text in a new PDF document using the `drawString` method of the `PdfGraphics` class. The method allows you to specify the text content, font, brush, and position to render the text on a page within the document. +This example demonstrates how to draw text in a new PDF document using the [drawString](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics#drawstring) method of the [PdfGraphics](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics) class. The method allows you to specify the text content, font, brush, and position to render the text on a page within the document. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -54,7 +54,7 @@ N> Due to the inherent limitations of the PDF specification and the rendering c ## The importance of saving and restoring graphics state in PDF content rendering -This example demonstrates the importance of saving and restoring the graphics state when rendering PDF content using the `save` and `restore` methods of the `PdfGraphics` class. These methods ensure that any transformations, such as scaling, rotation, or color changes, applied to the graphics context do not affect subsequent drawing operations, maintaining consistent layout and design. +This example demonstrates the importance of saving and restoring the graphics state when rendering PDF content using the [save](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics#Syncfusion_Pdf_Graphics_PdfGraphics_Save) and [restore](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics#Syncfusion_Pdf_Graphics_PdfGraphics_Restore_Syncfusion_Pdf_Graphics_PdfGraphicsState_) methods of the [PdfGraphics](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics) class. These methods ensure that any transformations, such as scaling, rotation, or color changes, applied to the graphics context do not affect subsequent drawing operations, maintaining consistent layout and design. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -107,7 +107,7 @@ document.destroy(); ## Drawing text in an existing document -This example demonstrates how to draw text in an existing PDF document using the `drawString` method of the `PdfGraphics` class. The method allows you to specify the text content, font, brush, and position to render the text on a selected page within the document. +This example demonstrates how to draw text in an existing PDF document using the [drawString](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics#drawstring) method of the [PdfGraphics](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics) class. The method allows you to specify the text content, font, brush, and position to render the text on a selected page within the document. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -152,7 +152,7 @@ JavaScript PDF allows you to add text to the PDF document using the following ty ### Draw text using standard fonts -This example demonstrates how to draw text using standard fonts in a PDF document by utilizing the `drawString` method of the `PdfGraphics` class along with predefined font types from the `PdfStandardFont` class. Standard fonts such as Helvetica, TimesRoman, or Courier can be specified to render text with consistent and widely supported typography. +This example demonstrates how to draw text using standard fonts in a PDF document by utilizing the [drawString](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics#drawstring) method of the [PdfGraphics](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics) class along with predefined font types from the [PdfStandardFont](https://ej2.syncfusion.com/documentation/api/pdf/pdfstandardfont) class. Standard fonts such as Helvetica, TimesRoman, or Courier can be specified to render text with consistent and widely supported typography. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -189,7 +189,7 @@ document.destroy(); ### Draw text using TrueType fonts -This example demonstrates how to draw text using TrueType fonts in a PDF document by utilizing the `drawString` method of the `PdfGraphics` class along with a `PdfTrueTypeFont` instance. The TrueType font provides enhanced text rendering with support for custom font styles. +This example demonstrates how to draw text using TrueType fonts in a PDF document by utilizing the [drawString](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics#drawstring) method of the [PdfGraphics](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics) class along with a [PdfTrueTypeFont](https://ej2.syncfusion.com/documentation/api/pdf/pdftruetypefont) instance. The TrueType font provides enhanced text rendering with support for custom font styles. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -226,7 +226,7 @@ document.destroy(); ### Draw text using CJK fonts -This example demonstrates how to draw text using fonts in a PDF document by utilizing the `drawString` method of the `PdfGraphics` class. The fonts provide support for Chinese, Japanese, and Korean characters, ensuring accurate rendering of multilingual text in the document. +This example demonstrates how to draw text using fonts in a PDF document by utilizing the [drawString](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics#drawstring) method of the [PdfGraphics](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics) class. The fonts provide support for Chinese, Japanese, and Korean characters, ensuring accurate rendering of multilingual text in the document. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -263,7 +263,7 @@ document.destroy(); ## Drawing text using different text alignment -This example demonstrates how to draw text in a PDF document using different text alignment options by utilizing the `PdfStringFormat` class. The alignment can be set through the alignment property, which supports values such as Left, Center, and Right, allowing precise control over the positioning of text within the page or a defined rectangle. +This example demonstrates how to draw text in a PDF document using different text alignment options by utilizing the [PdfStringFormat](https://ej2.syncfusion.com/documentation/api/pdf/pdfstringformat) class. The alignment can be set through the alignment property, which supports values such as Left, Center, and Right, allowing precise control over the positioning of text within the page or a defined rectangle. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -411,7 +411,7 @@ document.destroy(); ## Embedded font -This example shows how to embed fonts using `PdfDocument.embedFont()` method to ensure consistent text rendering across all platforms. The library supports embedding `PdfStandardFont`, `PdfCjkStandardFont`, and `PdfTrueTypeFont` for reliable Unicode text display. After embedding, the font can be applied through `PdfFont.getFont()` method, allowing precise control over size and style. Additionally, using embedded fonts helps reduce overall PDF size, since the font dictionary is not duplicated for each usage—ensuring cleaner and more efficient output. +This example shows how to embed fonts using [embedFont()](https://ej2.syncfusion.com/documentation/api/pdf/pdfdocument#embedfont) method of the [PdfDocument](https://ej2.syncfusion.com/documentation/api/pdf/pdfdocument) to ensure consistent text rendering across all platforms. The library supports embedding [PdfStandardFont](https://ej2.syncfusion.com/documentation/api/pdf/pdfstandardfont), [PdfCjkStandardFont](https://ej2.syncfusion.com/documentation/api/pdf/pdfcjkstandardfont), and [PdfTrueTypeFont](https://ej2.syncfusion.com/documentation/api/pdf/pdftruetypefont) for reliable Unicode text display. Additionally, using embedded fonts helps reduce overall PDF size, since the font dictionary is not duplicated for each usage—ensuring cleaner and more efficient output. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} diff --git a/Document-Processing/PDF/PDF-Library/javascript/Watermarks.md b/Document-Processing/PDF/PDF-Library/javascript/Watermarks.md index c35d715535..adfc3b0f8d 100644 --- a/Document-Processing/PDF/PDF-Library/javascript/Watermarks.md +++ b/Document-Processing/PDF/PDF-Library/javascript/Watermarks.md @@ -11,7 +11,7 @@ The PDF provides support to add watermark or stamp with text and images in the P ## Adding text watermark in PDF document -This example demonstrates how to add a text watermark using standard fonts in a PDF document by utilizing the `drawString` method of the `PdfGraphics` class along with predefined font types from the `PdfStandardFont` class. The transparency can be applied to the text using `setTransparency` method and rotation can be applied using `rotateTransform` method. +This example demonstrates how to add a text watermark using standard fonts in a PDF document by utilizing the [drawString](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics#drawstring) method of the [PdfGraphics](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics) class along with predefined font types from the [PdfStandardFont](https://ej2.syncfusion.com/documentation/api/pdf/pdfstandardfont) class. The transparency can be applied to the text using [setTransparency](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics#settransparency) method and rotation can be applied using [rotateTransform](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics#rotatetransform) method. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -71,7 +71,7 @@ document.destroy(); ## Adding image watermark in PDF document -This example demonstrates how to add a image watermark using standard fonts in a PDF document by utilizing the `drawImage` method of the `PdfGraphics` class. The transparency can be applied to the images using `setTransparency` method. +This example demonstrates how to add a image watermark using standard fonts in a PDF document by utilizing the [drawImage](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics#drawimage) method of the [PdfGraphics](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics) class. The transparency can be applied to the images using [setTransparency](https://ej2.syncfusion.com/documentation/api/pdf/pdfgraphics#settransparency) method. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -126,7 +126,7 @@ document.destroy(); ## Adding watermark annotation -This example demonstrates how to add a text watermark to an existing PDF document using the `PdfWatermarkAnnotation` class. The annotation allows you to specify the watermark text, color, opacity, and position to visually mark the document as confidential or draft. +This example demonstrates how to add a text watermark to an existing PDF document using the [PdfWatermarkAnnotation](https://ej2.syncfusion.com/documentation/api/pdf/pdfwatermarkannotation) class. The annotation allows you to specify the watermark text, color, opacity, and position to visually mark the document as confidential or draft. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -174,7 +174,7 @@ document.destroy(); ## Removing watermark annotation -Remove a watermark annotation from the page's annotation collection using the `PdfAnnotationCollection` of the loaded page. The following example demonstrates how to achieve this. +Remove a watermark annotation from the page's annotation collection using the [PdfAnnotationCollection](https://ej2.syncfusion.com/documentation/api/pdf/pdfannotationcollection) of the loaded page. The following example demonstrates how to achieve this. {% tabs %} {% highlight typescript tabtitle="TypeScript" %}