Skip to content

Commit 34156ec

Browse files
Merge pull request #207 from SyncfusionExamples/986455-1
986455-1: Added load and save changes in examples.
2 parents 421a271 + d11f009 commit 34156ec

File tree

272 files changed

+4417
-6650
lines changed
  • Forms
    • Add-a-textbox-field-to-a-new-PDF-document/.NET/Add-a-textbox-field-to-a-new-PDF-document
    • Add-checkbox-field-in-new-PDF-document/.NET/Add-checkbox-field-in-new-PDF-document
    • Add-complex-script-to-all-the-supported-fields-in-PDF/.NET/Add-complex-script-to-all-the-supported-fields-in-PDF
    • Add-listbox-field-in-an-existing-PDF-document/.NET/Add-listbox-field-in-an-existing-PDF-document
    • Add-listbox-field-in-new-PDF-document/.NET/Add-listbox-field-in-new-PDF-document
    • Add-radio-button-in-existing-PDF-document/.NET/Add-radio-button-in-existing-PDF-document
    • Add-signature-field-in-a-new-PDF-document/.NET/Add-signature-field-in-a-new-PDF-document
    • Add-the-button-field-in-a-new-PDF-document/.NET/Add-the-button-field-in-a-new-PDF-document
    • Add-the-textbox-to-an-existing-PDF-document/.NET/Add-the-textbox-to-an-existing-PDF-document
    • Adding-button-field-in-an-existing-PDF-document/.NET/Adding-button-field-in-an-existing-PDF-document
    • Adding-checkbox-field-in-an-existing-PDF-document/.NET/Adding-checkbox-field-in-an-existing-PDF-document
    • Adding-combo-box-in-the-new-PDF-document/.NET/Adding-combo-box-in-the-new-PDF-document
    • Adding-radio-button-in-new-PDF-document/.NET/Adding-radio-button-in-new-PDF-document
    • Adding-the-combo-box-in-existing-PDF-document/.NET/Adding-the-combo-box-in-existing-PDF-document
    • Adding-the-signatre-field-in-existing-PDF-document/.NET/Adding-the-signatre-field-in-existing-PDF-document
    • Auto-naming-of-form-fields-in-a-PDF-document/.NET/Auto-naming-of-form-fields-in-a-PDF-document
    • Auto-resize-the-text-of-textboxfield-in-a-PDF/.NET/Auto-resize-the-text-of-textboxfield-in-a-PDF
    • Creating-a-Multiline-Text-Area-in-PDF/.NET/Creating-a-Multiline-Text-Area-in-PDF
    • Customize-indicator-colors/.NET/Customize-indicator-colors
    • Default-value-for-radio-button-field/.NET/Default_Value_For_Radio_Button
    • Disable-Auto-Formatting-in-FormFields/.NET/Disable-Auto-Formatting-in-FormFields
    • Enable-default-appearance-in-existing-PDF-document/.NET/Enable-default-appearance-in-existing-PDF-document
    • Enable-default-appearance-in-new-PDF-document/.NET/Enable-default-appearance-in-new-PDF-document
    • Enabling-Edit-Option-for-the-PdfComboboxField/Enabling-Edit-Option-for-the-PdfComboboxField
    • Enumarate-form-fields-in-a-PDF-document/.NET/Enumarate-form-fields-in-a-PDF-document
    • Export-FDF-file-from-PDF-document/.NET/Export-FDF-file-from-PDF-document
    • Export_checkbox_values/.NET/Export_checkbox_values
    • Fill-list-box-field-in-an-existing-PDF-document/.NET/Fill-list-box-field-in-an-existing-PDF-document
    • Fill-radio-button-field-in-an-existing-PDF-document/.NET/Fill-radio-button-field-in-an-existing-PDF-document
    • Fill-the-XFA-forms-fields-via-acroform-API/.NET/Fill-the-XFA-forms-fields-via-acroform-API
    • Fill-the-checkbox-field-in-an-existing-PDF-document/.NET/Fill-the-checkbox-field-in-an-existing-PDF-document
    • Fill-the-combobox-field-in-an-existing-PDF-document/.NET/Fill-the-combobox-field-in-an-existing-PDF-document
    • Fill-the-signature-field-in-an-existing-PDF/.NET/Fill-the-signature-field-in-an-existing-PDF
    • Filling-the-textbox-field-in-an-existing-PDF-document/.NET/Filling-the-textbox-field-in-an-existing-PDF-document
    • Flatten-the-existing-form-fields-with-complex-script/.NET/Flatten-the-existing-form-fields-with-complex-script
    • Flatten-the-form-fields-before-saving-PDF-document/.NET/Flatten-the-form-fields-before-saving-PDF-document
    • Flattening-form-fields-in-an-existing-PDF-document/.NET/Flattening-form-fields-in-an-existing-PDF-document
    • Get-option-value-from-acroform-radio-button/.NET/Get-option-value-from-acroform-radio-button
    • Get-the-field-from-collection-using-TryGetField/.NET/Get-the-field-from-collection-using-TryGetField
    • Get-the-field-from-collection-using-TryGetValue/.NET/Get-the-field-from-collection-using-TryGetValue
    • Get-widget-annotation-in-PDF/.NET/Get-widget-annotation-in-PDF
    • Importing-FDF-file-to-PDF-document/.NET/Importing-FDF-file-to-PDF-document
    • Modify-the-existing-form-field-in-PDF-document/.NET/Modify-the-existing-form-field-in-PDF-document
    • Modifying-fore-and-backcolor-of-existing-form-fields/.NET/Modifying-fore-and-backcolor-of-existing-form-fields
    • Remove-the-form-fields-form-the-existing-PDF-document/.NET/Remove-the-form-fields-form-the-existing-PDF-document
    • Removing-editing-capability-of-form-fields/.NET/Removing-editing-capability-of-form-fields
    • Set-appearance-to-the-PDF-form-fields/.NET/Set-appearance-to-the-PDF-form-fields
    • Set-readonly-property-to-a-new-PDF-document/.NET/Set-readonly-property-to-a-new-PDF-document
    • Set-the-ReadOnly-property-to-an-existing-PDF-document/.NET/Set-the-ReadOnly-property-to-an-existing-PDF-document
  • Getting Started/.NET
    • Create_PDF_NET/Create_PDF_NET
    • Create_PDF_with_basic_elements_NET/Create_PDF_with_basic_elements_NET
    • Create_PDF_with_image_NET/Create_PDF_with_image_NET
    • Create_PDF_with_table_NET/Create_PDF_with_table_NET
    • Filling_forms_NET/Filling_forms_NET
    • HTML_string_to_PDF_NET/HTML_string_to_PDF_NET
    • HTML_to_PDF_NET/HTML_to_PDF_NET
    • Merge_PDF_documents_NET/Merge_PDF_documents_NET
  • Image Extraction
    • Extract-images-from-PDF-documents/.NET/Extract-images-from-PDF-documents
    • Extract-images-from-a-PDF-pages/.NET/Extract-images-from-a-PDF-pages
    • Extract-the-image-info-from-a-PDF-page/.NET/Extract-the-image-info-from-a-PDF-page
  • Images
    • Add-a-mask-to-TIFF-image/.NET/Add-a-mask-to-TIFF-image
    • Add-transparancy-and-rotation-to-the-image/.NET/Add-transparancy-and-rotation-to-the-image
    • Convert_Image_to_PDF/.NET/Convert_Image_to_PDF
    • Converting-multi-page-TIFF-to-PDF/.NET/Converting-multi-page-TIFF-to-PDF
    • Insert-image-in-a-new-PDF-document/.NET/Insert-image-in-a-new-PDF-document
    • Insert-image-in-an-existing-PDF-document/.NET/Insert-image-in-an-existing-PDF-document
    • Paginate-an-image-in-PDF-document/.NET/Paginate-an-image-in-PDF-document
    • Remove-images-from-PDF-document/.NET/Remove-images-from-PDF-document
  • JavaScript
    • Add-JavaScript-action-to-the-form-fields-in-a-PDF/.NET/Add-JavaScript-action-to-the-form-fields-in-a-PDF
    • Add-JavaScript-to-3D-annotation-in-a-PDF-document/.NET/Add-JavaScript-to-3D-annotation-in-a-PDF-document
    • Add-the-JavaScript-action-to-the-PDF-document/.NET/Add-the-JavaScript-action-to-the-PDF-document
  • Layer
    • Add-a-lock-state-to-the-layer-in-a-new-PDF-document/.NET/Add-a-lock-state-to-the-layer-in-a-new-PDF-document
    • Add-annotation-to-the-layer-in-an-existing-PDF-document/.NET/Add-annotation-to-the-layer-in-an-existing-PDF-document
    • Add-nested-layers-in-the-PDF-document/.NET/Add-nested-layers-in-the-PDF-document
    • Add-the-multiple-layers-in-an-existing-PDF-document/.NET/Add-the-multiple-layers-in-an-existing-PDF-document
    • Adding-annotation-to-layer-in-the-PDF-document/.NET/Adding-annotation-to-layer-in-the-PDF-document
    • Adding-layers-in-a-PDF-document/.NET/Adding-layers-in-a-PDF-document
    • Flattening-the-layers-in-an-existing-PDF-document/.NET/Flattening-the-layers-in-an-existing-PDF-document
    • Removing-layers-from-an-existing-PDF-document/.NET/Removing-layers-from-an-existing-PDF-document
    • Toggle-the-visibility-of-layers-in-an-existing-PDF/.NET/Toggle-the-visibility-of-layers-in-an-existing-PDF
    • Toggle-the-visibility-of-layers-in-new-PDF-document/.NET/Toggle-the-visibility-of-layers-in-new-PDF-document
  • Merge PDFs
    • Add_bookmarks_to_merge_PDF_document_NET/.NET/Add_bookmarks_to_merge_PDF_document_NET
    • Combine_and_digitally_sign_the_PDF_files/.NET/Combine_and_digitally_sign_the_PDF_files
    • Convert_landscape_to_portrait_and_merge_PDF_files/.NET/Convert_landscape_to_portrait_and_merge_PDF_files
    • Crop_PDF_pages_and_merge_NET/.NET/Crop_PDF_pages_and_merge_NET
    • Extend-the-margin-of-PDF-pages-while-merging-PDFs/.NET/Extend-the-margin-of-PDF-pages-while-merging-PDFs
    • Import-multiple-pages-from-an-existing-PDF/.NET/Import-multiple-pages-from-an-existing-PDF
    • Import-pages-from-multiple-documents-and-arrange-pages/.NET/Import-pages-from-multiple-documents-and-arrange-pages
    • Importing-pages-from-one-document-another-document/.NET/Importing-pages-from-one-document-another-document
    • Merge-PDF-without-compromising-accessibility-tags/.NET/Merge-PDF-without-compromising-accessibility-tags
    • Merge-multiple-documents-from-stream/.NET/Merge-multiple-documents-from-stream
    • Merge-specific-range-of-pages-from-different-PDF/.NET/Merge-specific-range-of-pages-from-different-PDF
    • Merge_PDF_files_and_fill_form_fields_NET/.NET/Merge_PDF_files_and_fill_form_fields_NET
    • Merge_password_protected_PDF_files_NET/.NET/Merge_password_protected_PDF_files_NET
    • Optimize-the-PDF-resources-when-merging-PDF-documents/.NET/Optimize-the-PDF-resources-when-merging-PDF-documents
    • Reduce-size-of-PDF-file-while-importing-pages/.NET/Reduce-size-of-PDF-file-while-importing-pages
    • Rotate_pages_and_merge_PDF_files_NET/.NET/Rotate_pages_and_merge_PDF_files_NET
  • Metadata
    • Adding-XMP-metadata-along-with-an-image-in-PDF/.NET/Adding-XMP-metadata-along-with-an-image-in-PDF
    • Adding-XMP-metadata-in-PDF-document/.NET/Adding-XMP-metadata-in-PDF-document
    • Adding-XMP-metadata-to-an-existing-PDF-document/.NET/Adding-XMP-metadata-to-an-existing-PDF-document
    • Adding-custom-metadata-to-the-PDF-document/.NET/Adding-custom-metadata-to-the-PDF-document
    • Adding-custom-schema-to-the-PDF-document/.NET/Adding-custom-schema-to-the-PDF-document
    • Create-PDF-document-with-PDF-schema/.NET/Create-PDF-document-with-PDF-schema
    • Create-PDF-document-with-XMP-basic-schema/.NET/Create-PDF-document-with-XMP-basic-schema
    • Create-PDF-document-with-basic-job-ticket-schema/.NET/Create-PDF-document-with-basic-job-ticket-schema
    • Create-PDF-document-with-custom-schema/.NET/Create-PDF-document-with-custom-schema
    • Create-PDF-document-with-dubline-core-schema-properties/.NET/Create-PDF-document-with-dubline-core-schema-properties
    • Create-PDF-document-with-pages-text-schema/.NET/Create-PDF-document-with-pages-text-schema
    • Create-PDF-document-with-right-management-schema/.NET/Create-PDF-document-with-right-management-schema
    • Extracting-XMP-metadata-from-PDF-image/.NET/Extracting-XMP-metadata-from-PDF-image
    • Remove-custom-metadata-from-an-existing-PDF-document/.NET/Remove-custom-metadata-from-an-existing-PDF-document
  • Named Destination
    • Adding-named-destination-to-a-PDF-document/.NET/Adding-named-destination-to-a-PDF-document
    • Adding-named-destination-to-an-existing-PDF-document/.NET/Adding-named-destination-to-an-existing-PDF-document
    • Adding-named-destination-to-the-bookmarks/.NET/Adding-named-destination-to-the-bookmarks
    • Remove-and-modify-the-named-destination-in-a-PDF/.NET/Remove-and-modify-the-named-destination-in-a-PDF
  • OCR/.NET
    • Adding-Line-Breaks-Using-OCR/.NET/Adding-Line-Breaks-Using-OCR
    • Get-image-rotation-angle-from-OCR/Get-image-rotation-angle-from-OCR
    • Get-the-OCR'ed-text-and-its-bounds-from-an-input-PDF/Get-the-OCR'ed-text-and-its-bounds-from-an-input-PDF
    • OCR-with-multiple-langauages/OCR with multiple languages
    • OCR_Image_to_PDF/OCR_Image_to_PDF
    • Perform-OCR-AWS-Textract/Perform-OCR-AWS-Textract
    • Perform-OCR-Azure-Vision/Perform-OCR-Azure-Vision
    • Perform-OCR-ImageEnhancement/OCR_ImageEnhancement
    • Perform-OCR-an-image-and-convert-it-to-a-PDF-document/Perform-OCR-an-image-and-convert-it-to-a-PDF-document
    • Perform-OCR-for-the-entire-PDF-document/Perform-OCR-for-the-entire-PDF-document
    • Perform-OCR-on-image-file/Perform-OCR-on-image-file
    • Perform-OCR-on-particular-region-of-PDF-document/Perform-OCR-on-particular-region-of-PDF-document
    • Perform-OCR-on-the-rotated-page-of-the-PDF-document/Perform-OCR-on-the-rotated-page-of-the-PDF-document
    • Perform-OCR-with-unicode-characters-in-a-PDF-document/Perform-OCR-with-unicode-characters-in-a-PDF-document
    • Set-temp-folder-while-performing-OCR/Set-temp-folder-while-performing-OCR
  • PDF Conformance
    • Convert-PDF-to-PDFA-conformance-document/.NET/Convert-PDF-to-PDFA-conformance-document
    • Convert-PDFA-to-PDF-document/.NET/Convert-PDFA-to-PDF-document
    • Creating-a-new-PDFA4F-document/.NET/Creating-a-new-PDFA4F-document
    • Creating-the-new-PDFA1A-document/.NET/Creating-the-new-PDFA1A-document
    • Creating-the-new-PDFA1B-document/.NET/Creating-the-new-PDFA1B-document
    • Creating-the-new-PDFA2A-document/.NET/Creating-the-new-PDFA2A-document
    • Creating-the-new-PDFA2B-document/.NET/Creating-the-new-PDFA2B-document
    • Creating-the-new-PDFA2U-document/.NET/Creating-the-new-PDFA2U-document
    • Creating-the-new-PDFA3A-document/.NET/Creating-the-new-PDFA3A-document
    • Creating-the-new-PDFA3B-document/.NET/Creating-the-new-PDFA3B-document
    • Creating-the-new-PDFA3U-document/.NET/Creating-the-new-PDFA3U-document
    • Creating-the-new-PDFA4-document/.NET/Creating-the-new-PDFA4-document
    • Creating-the-new-PDFA4E-document/.NET/Creating-the-new-PDFA4E-document
    • Font_Subsetting_in_PDFA_conversion/.NET/Font_Subsetting_in_PDFA_conversion
    • Get-PDF-to-PDFA-conversion-progress/.NET/Get-PDF-to-PDFA-conversion-progress
    • Get-the-conformance-level-of-the-existing-PDF-document/.NET
  • PDF Document
    • Add_BaseUri_in_the_PDF_document/.NET/Add_BaseUri_in_the_PDF_document
    • Add_PDF_document_properties/.NET/Add_PDF_document_properties
    • Change-the-page-orientation-from-portrait-to-landscape/.NET/Change-the-page-orientation-from-portrait-to-landscape
    • Change_existing_PDF_properties/.NET/Change_existing_PDF_properties
    • Create-PDF-with-display-of-specific-panel/.NET/Create-PDF-with-display-of-specific-panel
    • Create-a-PDF-document-with-custom-page-size/.NET/Create-a-PDF-document-with-custom-page-size
    • Create-a-PDF-document-with-save-progress/.NET/PDF-document-with-save-progress
    • Create-a-PDF-document-with-standard-page-size/.NET/Create-a-PDF-document-with-standard-page-size
    • Create_PDF_with_Uniform_Resouce_Naming/.NET/Create_PDF_with_Uniform_Resouce_Naming
    • Create_PDF_with_viewer_preference/.NET/Create_PDF_with_viewer_preference
    • Create_sections_in_PDF_document/.NET/Create_sections_in_PDF_document
    • Find_corrupted_PDF_document/.NET/Find_corrupted_PDF_document
    • Manage_memory_while_appending_PDF_document/.NET/Manage_memory_while_appending_PDF_document
    • Perform-incremental-update-for-the-PDF-document/.NET/Perform-incremental-update-for-the-PDF-document
    • Remove-specific-keys-from-the-existing-document-information/.NET
    • Retrieve_BaseUri_from_the_existing_PDF/.NET/Retrieve_BaseUri_from_the_existing_PDF
    • Rotate_PDF_based_on_angle/.NET/Rotate_PDF_based_on_angle
  • PDF Templates
    • Add-a-template-from-an-existing-PDF-document/.NET/Add-a-template-from-an-existing-PDF-document
    • Add-the-contents-to-template-and-render-into-PDF-page/.NET/Add-the-contents-to-template-and-render-into-PDF-page
    • Add-the-page-template-elements-in-a-PDF-document/.NET/Add-the-page-template-elements-in-a-PDF-document
    • Create-template-from-an-existing-PDF-document/.NET/Create-template-from-an-existing-PDF-document
    • Creating-the-document-overlays/.NET/Creating-the-document-overlays
    • Render-the-template-in-an-existing-PDF-document/.NET/Render-the-template-in-an-existing-PDF-document
  • Pages
    • Add-a-new-page-to-the-PDF-document/.NET/Add-a-new-page-to-the-PDF-document
    • Add-margin-to-the-PDF-pages/.NET/Add-margin-to-the-PDF-pages
    • Adding-sections-with-different-page-settings/.NET/Adding-sections-with-different-page-settings
    • Changing-page-numbers-in-a-PDF-document/.NET/Changing-page-numbers-in-a-PDF-document
    • Detect-empty-pages-from-PDF/.NET/Detect-empty-pages-from-PDF
    • Get-number-of-pages-from-PDF-document/.NET/Get-number-of-pages-from-PDF-document
    • Import-pages-from-PDF-without-bookmarks/.NET/Import-pages-from-PDF-without-bookmarks
    • Importing-pages-from-one-PDF-to-another-PDF/.NET/Importing-pages-from-one-PDF-to-another-PDF
    • Insert-New-Page-in-Existing-PDF-with-Same-Size/.NET/Insert-New-Page-in-Existing-PDF-with-Same-Size
    • Insert-pages-in-a-PDF-document/.NET/Insert-pages-in-a-PDF-document
    • Inserting-duplicate-pages-in-the-existing-pdf/.NET/Inserting-duplicate-pages-in-the-existing-pdf
    • Rearrange-pages-in-an-existing-PDF-document/.NET/Rearrange-pages-in-an-existing-PDF-document
    • Remove-pages-from-the-existing-PDF-document/.NET/Remove-pages-from-the-existing-PDF-document
    • Rotate-an-existing-PDF-page/.NET/Rotate-an-existing-PDF-page
    • Rotating-a-PDF-page/.NET/Rotating-a-PDF-page
    • Setting-Section-Page-Numbers-With-Custom-Styles/.NET/Setting-Section-Page-Numbers-With-Custom-Styles
    • Span-text-element-to-multiple-pages-in-a-PDF/.NET/Span-text-element-to-multiple-pages-in-a-PDF
    • Splitting-PDF-file-into-individual-pages/.NET/Splitting-PDF-file-into-individual-pages
  • Portfolio
    • Create-a-portfolio-and-attach-variety-of-documents/.NET/Create-a-portfolio-and-attach-variety-of-documents
    • Extracting-the-files-from-PDF-portfolio/.NET/Extracting-the-files-from-PDF-portfolio
    • Remove-the-files-from-PDF-portfolio/.NET/Remove-the-files-from-PDF-portfolio
  • Security
    • Change-password-of-the-PDF-document/.NET/Change-password-of-the-PDF-document
    • Change-the-permission-of-the-PDF-document/.NET/Change-the-permission-of-the-PDF-document
    • Decrypting-encrypted-PDF-document/.NET/Decrypting-encrypted-PDF-document
    • Determine-whether-the-PDF-is-protected-or-not/.NET/Determine-whether-the-PDF-is-protected-or-not
    • Encrypt-PDF-with-AES-using-owner-password/.NET/Encrypt-PDF-with-AES-using-owner-password
    • Encrypt-PDF-with-AES-using-user-password/.NET/Encrypt-PDF-with-AES-using-user-password
    • Encrypt-PDF-with-RC4-using-owner-password/.NET/Encrypt-PDF-with-RC4-using-owner-password
    • Encrypt-PDF-with-RC4-using-user-password/.NET/Encrypt-PDF-with-RC4-using-user-password
    • Encrypt-all-contents-except-metadata-of-the-PDF/.NET/Encrypt-all-contents-except-metadata-of-the-PDF
    • Encrypt-all-contents-of-the-PDF-document/.NET/Encrypt-all-contents-of-the-PDF-document
    • Encrypt-only-attachment-in-the-PDF-document/.NET/Encrypt-only-attachment-in-the-PDF-document
    • Load-an-encrypt-only-attachment-document/.NET/Load-an-encrypt-only-attachment-document
    • Protect-an-existing-PDF-document/.NET/Protect-an-existing-PDF-document
    • Protect-attachments-in-existing-PDF-document/.NET/Protect-attachments-in-existing-PDF-document
    • Remove-password-from-user-password-PDF-document/.NET/Remove-password-from-user-password-PDF-document
    • Secure_data _with _AES_GCM/.NET/Secure_data _with _AES_GCM
    • Set-user-password-when-accessing-the-attachment/.NET/Set-user-password-when-accessing-the-attachment
    • Troubleshooting/.NET/Removing_restrictions_for_security
  • Shapes
    • Dash-pattern-in-shapes/.NET/Dash-pattern-in-shapes
    • Draw-a-bazier-in-an-existing-PDF-document/.NET/Draw-a-bazier-in-an-existing-PDF-document
    • Draw-a-bazier-in-new-PDF-document/.NET/Draw-a-bazier-in-new-PDF-document
    • Draw-a-curve-in-an-existing-PDF-document/.NET/Draw-a-curve-in-an-existing-PDF-document
    • Draw-a-curve-in-new-PDF-document/.NET/Draw-a-curve-in-new-PDF-document
    • Draw-a-line-in-an-existing-PDF-document/.NET/Draw-a-line-in-an-existing-PDF-document
    • Draw-a-line-in-new-PDF-document/.NET/Draw-a-line-in-new-PDF-document
    • Draw-a-pie-in-an-existing-PDF-document/.NET/Draw-a-pie-in-an-existing-PDF-document
    • Draw-a-pie-in-new-PDF-document/.NET/Draw-a-pie-in-new-PDF-document
    • Draw-a-polygon-in-an-existing-PDF-document/.NET/Draw-a-polygon-in-an-existing-PDF-document
    • Draw-a-rectangle-in-a-new-PDF-document/.NET/Draw-a-rectangle-in-a-new-PDF-document
    • Draw-a-rectangle-in-an-existing-PDF-document/.NET/Draw-a-rectangle-in-an-existing-PDF-document
    • Draw-an-arc-in-an-existing-PDF-document/.NET/Draw-an-arc-in-an-existing-PDF-document
    • Draw-an-arc-in-new-PDF-document/.NET/Draw-an-arc-in-new-PDF-document
    • Draw-an-ellipse-in-an-existing-PDF-document/.NET/Draw-an-ellipse-in-an-existing-PDF-document
    • Draw-an-ellipse-in-new-PDF-document/.NET/Draw-an-ellipse-in-new-PDF-document
    • Draw-large-shapes-across-multiple-pages/.NET/Draw-large-shapes-across-multiple-pages
    • Draw-path-in-a-new-PDF-document/.NET/Draw-path-in-a-new-PDF-document
    • Draw-path-in-an-existing-PDF-document/.NET/Draw-path-in-an-existing-PDF-document
    • Draw-polygon-in-new-PDF-document/.NET/Draw-polygon-in-new-PDF-document
    • Multi-color-radial-gradient-fill-in-PDF/.NET/Multi-color-radial-gradient-fill-in-PDF
  • Table/PdfGrid
    • Add-column-spanning-in-a-PDF-table/.NET/Add-column-spanning-in-a-PDF-table
    • Add-different-cell-styles-to-a-cell-in-a-PDF-table/.NET/Add-different-cell-styles-to-a-cell-in-a-PDF-table
    • Add-different-font-style-for-particular-table-cell/.NET/Add-different-font-style-for-particular-table-cell
    • Add-different-styles-to-a-row-in-PDF-table/.NET/Add-different-styles-to-a-row-in-PDF-table
    • Add-multiple-tables-in-a-PDF-document/.NET/Add-multiple-tables-in-a-PDF-document
    • Add-row-spanning-in-a-PDF-table/.NET/Add-row-spanning-in-a-PDF-table
    • Add-string-formatting-for-a-cell-in-table/.NET/Add-string-formatting-for-a-cell-in-table
    • Add-string-formatting-for-a-row-in-table/.NET/Add-string-formatting-for-a-row-in-table
    • Add-string-formatting-to-a-column-in-table/.NET/Add-string-formatting-to-a-column-in-table
    • Add-the-background-image-in-a-PDF-table-cell/.NET/Add-the-background-image-in-a-PDF-table-cell
    • Add-the-data-directly-to-the-table-in-a-PDF/.NET/Add-the-data-directly-to-the-table-in-a-PDF
    • Apply-built-in-style-to-table-with-table-option/.NET/Apply-built-in-style-to-table-with-table-option
    • Apply-string-formatting-for-whole-table-in-a-PDF/.NET/Apply-string-formatting-for-whole-table-in-a-PDF
    • Apply-word-wrap-in-the-PDF-table-cell/.NET/Apply-word-wrap-in-the-PDF-table-cell
    • Applying-Customizing-Styles-in-PDF-Grid/.NET/Applying-Customizing-Styles-in-PDF-Grid
    • Automatically-adjust-the-table-width-in-a-PDF/.NET/Automatically-adjust-the-table-width-in-a-PDF
    • Cell-customization-in-PdfGrid/.NET/Cell-customization-in-PdfGrid
    • Changing-Margins-from-the-Second-Page-onwards/.NET/Changing-Margins-from-the-Second-Page-onwards
    • Column-customization-of-PdfGrid-in-a-PDF/.NET/Column-customization-of-PdfGrid-in-a-PDF
    • Create-nested-table-in-a-PDF-document/.NET/Create-nested-table-in-a-PDF-document
    • Create-table-from-data-source-in-a-PDF/.NET/Create-table-from-data-source-in-a-PDF
    • Create-table-from-list-in-a-PDF-document/.NET/Create-table-from-list-in-a-PDF-document
    • Create-table-in-an-existing-document/.NET/Create-table-in-an-existing-document
    • Create-table-with-built-in-style/.NET/Create-table-with-built-in-style
    • Customize-the-table-in-a-PDF-document/.NET/Customize-the-table-in-a-PDF-document
    • Draw-HTML-styled-text-in-a-PDF-table-cell/.NET/Draw-HTML-styled-text-in-a-PDF-table-cell
    • Draw-borderless-table-in-PDF-document/.NET/Draw-borderless-table-in-PDF-document
    • Draw-rotated-table-in-PDF-document/.NET/Draw-rotated-table-in-PDF-document
    • Insert-image-in-a-particular-table-cell/.NET/Insert-image-in-a-particular-table-cell
    • Paginate-the-table-in-PDF-document/.NET/Paginate-the-table-in-PDF-document
    • Prevent-row-breaks-across-pages/.NET/Prevent-row-breaks-across-pages
    • Resize-font-to-fit-grid-cell-width/.NET/Resize-font-to-fit-grid-cell-width
    • Row-customization-of-PdfGrid-in-a-PDF/.NET/Row-customization-of-PdfGrid-in-a-PDF
    • Set-different-margins-for-multi-page-PDF-grid/.NET/Set-different-margins-for-multi-page-PDF-grid

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

272 files changed

+4417
-6650
lines changed

Forms/Add-a-textbox-field-to-a-new-PDF-document/.NET/Add-a-textbox-field-to-a-new-PDF-document/Program.cs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
// See https://aka.ms/new-console-template for more information
2-
3-
using Syncfusion.Drawing;
1+
using Syncfusion.Drawing;
42
using Syncfusion.Pdf;
53
using Syncfusion.Pdf.Graphics;
64
using Syncfusion.Pdf.Interactive;
@@ -38,10 +36,6 @@
3836
emailField.ToolTip = "Email address";
3937
pdfDocument.Form.Fields.Add(emailField);
4038

41-
//Create file stream.
42-
using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite))
43-
{
44-
//Save the PDF document to file stream.
45-
pdfDocument.Save(outputFileStream);
46-
}
39+
//Save the PDF document
40+
pdfDocument.Save(Path.GetFullPath(@"Output/Output.pdf"));
4741
}
Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,22 @@
1-
// See https://aka.ms/new-console-template for more information
2-
3-
using Syncfusion.Pdf;
1+
using Syncfusion.Pdf;
42
using Syncfusion.Pdf.Interactive;
53

64
//Create a new PDF document.
7-
PdfDocument document = new PdfDocument();
8-
9-
//Add a new page to PDF document.
10-
PdfPage page = document.Pages.Add();
11-
12-
//Create Check Box field.
13-
PdfCheckBoxField checkBoxField = new PdfCheckBoxField(page, "CheckBox");
5+
using (PdfDocument document = new PdfDocument())
6+
{
7+
//Add a new page to PDF document.
8+
PdfPage page = document.Pages.Add();
149

15-
//Set check box properties.
16-
checkBoxField.ToolTip = "Check Box";
17-
checkBoxField.Bounds = new Syncfusion.Drawing.RectangleF(0, 20, 10, 10);
10+
//Create Check Box field.
11+
PdfCheckBoxField checkBoxField = new PdfCheckBoxField(page, "CheckBox");
1812

19-
//Add the form field to the document.
20-
document.Form.Fields.Add(checkBoxField);
13+
//Set check box properties.
14+
checkBoxField.ToolTip = "Check Box";
15+
checkBoxField.Bounds = new Syncfusion.Drawing.RectangleF(0, 20, 10, 10);
2116

22-
//Create file stream.
23-
using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite))
24-
{
25-
//Save the PDF document to file stream.
26-
document.Save(outputFileStream);
27-
}
17+
//Add the form field to the document.
18+
document.Form.Fields.Add(checkBoxField);
2819

29-
//Close the document.
30-
document.Close(true);
20+
//Save the PDF document
21+
document.Save(Path.GetFullPath(@"Output/Output.pdf"));
22+
}
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,41 @@
1-
// See https://aka.ms/new-console-template for more information
2-
3-
using Syncfusion.Drawing;
1+
using Syncfusion.Drawing;
42
using Syncfusion.Pdf;
53
using Syncfusion.Pdf.Graphics;
64
using Syncfusion.Pdf.Interactive;
75

86
//Create a new PDF document.
9-
PdfDocument document = new PdfDocument();
10-
11-
//Add a new PDF page.
12-
PdfPage page = document.Pages.Add();
13-
14-
//Create the new PDF text box field.
15-
PdfTextBoxField textField = new PdfTextBoxField(page, "textBox");
7+
using (PdfDocument document = new PdfDocument())
8+
{
9+
//Add a new PDF page.
10+
PdfPage page = document.Pages.Add();
1611

17-
//Set bounds.
18-
textField.Bounds = new RectangleF(10, 10, 200, 30);
12+
//Create the new PDF text box field.
13+
PdfTextBoxField textField = new PdfTextBoxField(page, "textBox");
1914

20-
//Set text.
21-
textField.Text = "สวัสดีชาวโลก";
15+
//Set bounds.
16+
textField.Bounds = new RectangleF(10, 10, 200, 30);
2217

23-
//Get stream from an font file.
24-
FileStream fontStream = new FileStream(Path.GetFullPath(@"Data/tahoma.ttf"), FileMode.Open, FileAccess.Read);
18+
//Set text.
19+
textField.Text = "สวัสดีชาวโลก";
2520

26-
//Create a new PDF font instance.
27-
PdfFont font = new PdfTrueTypeFont(fontStream, 10);
21+
//Get stream from an font file.
22+
FileStream fontStream = new FileStream(Path.GetFullPath(@"Data/tahoma.ttf"), FileMode.Open, FileAccess.Read);
2823

29-
//Set font.
30-
textField.Font = font;
24+
//Create a new PDF font instance.
25+
PdfFont font = new PdfTrueTypeFont(fontStream, 10);
3126

32-
//Add the text box field to the form collection.
33-
document.Form.Fields.Add(textField);
27+
//Set font.
28+
textField.Font = font;
3429

35-
//Set default appearance as false.
36-
document.Form.SetDefaultAppearance(false);
30+
//Add the text box field to the form collection.
31+
document.Form.Fields.Add(textField);
3732

38-
//Enable complex script layout for form.
39-
document.Form.ComplexScript = true;
33+
//Set default appearance as false.
34+
document.Form.SetDefaultAppearance(false);
4035

41-
//Create file stream.
42-
using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite))
43-
{
44-
//Save the PDF document to file stream.
45-
document.Save(outputFileStream);
46-
}
36+
//Enable complex script layout for form.
37+
document.Form.ComplexScript = true;
4738

48-
//Close the document.
49-
document.Close(true);
39+
//Save the PDF document
40+
document.Save(Path.GetFullPath(@"Output/Output.pdf"));
41+
}
Lines changed: 26 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,37 @@
1-
// See https://aka.ms/new-console-template for more information
2-
3-
using Syncfusion.Pdf;
1+
using Syncfusion.Pdf;
42
using Syncfusion.Pdf.Interactive;
53
using Syncfusion.Pdf.Parsing;
64

7-
//Get stream from an existing document.
8-
FileStream docStream = new FileStream(Path.GetFullPath(@"Data/Input.pdf"), FileMode.Open, FileAccess.Read);
9-
10-
//Load the PDF document.
11-
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
12-
13-
//Create the form if the form does not exist in the loaded document.
14-
if (loadedDocument.Form == null)
15-
loadedDocument.CreateForm();
16-
17-
//Load the page.
18-
PdfLoadedPage loadedPage = loadedDocument.Pages[0] as PdfLoadedPage;
19-
20-
//Create list box.
21-
PdfListBoxField listBoxField = new PdfListBoxField(loadedPage, "list1");
5+
//Load the PDF document.
6+
using (PdfLoadedDocument loadedDocument = new PdfLoadedDocument(Path.GetFullPath(@"Data/Input.pdf")))
7+
{
8+
//Create the form if the form does not exist in the loaded document.
9+
if (loadedDocument.Form == null)
10+
loadedDocument.CreateForm();
2211

23-
//Set the properties.
24-
listBoxField.Bounds = new Syncfusion.Drawing.RectangleF(100, 60, 100, 50);
12+
//Load the page.
13+
PdfLoadedPage loadedPage = loadedDocument.Pages[0] as PdfLoadedPage;
2514

26-
//Add the items to the list box.
27-
listBoxField.Items.Add(new PdfListFieldItem("English", "English"));
28-
listBoxField.Items.Add(new PdfListFieldItem("French", "French"));
29-
listBoxField.Items.Add(new PdfListFieldItem("German", "German"));
15+
//Create list box.
16+
PdfListBoxField listBoxField = new PdfListBoxField(loadedPage, "list1");
3017

31-
//Select the item.
32-
listBoxField.SelectedIndex = 2;
18+
//Set the properties.
19+
listBoxField.Bounds = new Syncfusion.Drawing.RectangleF(100, 60, 100, 50);
3320

34-
//Set the multi select option.
35-
listBoxField.MultiSelect = true;
21+
//Add the items to the list box.
22+
listBoxField.Items.Add(new PdfListFieldItem("English", "English"));
23+
listBoxField.Items.Add(new PdfListFieldItem("French", "French"));
24+
listBoxField.Items.Add(new PdfListFieldItem("German", "German"));
3625

37-
//Add the list box into PDF document
38-
loadedDocument.Form.Fields.Add(listBoxField);
26+
//Select the item.
27+
listBoxField.SelectedIndex = 2;
3928

40-
//Create file stream.
41-
using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite))
42-
{
43-
//Save the PDF document to file stream.
44-
loadedDocument.Save(outputFileStream);
45-
}
29+
//Set the multi select option.
30+
listBoxField.MultiSelect = true;
4631

47-
//Close the document.
48-
loadedDocument.Close(true);
32+
//Add the list box into PDF document
33+
loadedDocument.Form.Fields.Add(listBoxField);
4934

35+
//Save the PDF document
36+
loadedDocument.Save(Path.GetFullPath(@"Output/Output.pdf"));
37+
}
Lines changed: 21 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,32 @@
1-
// See https://aka.ms/new-console-template for more information
2-
3-
using Syncfusion.Pdf;
1+
using Syncfusion.Pdf;
42
using Syncfusion.Pdf.Interactive;
53

64
//Create a new PDF document.
7-
PdfDocument document = new PdfDocument();
8-
9-
//Add a new page to PDF document.
10-
PdfPage page = document.Pages.Add();
5+
using (PdfDocument document = new PdfDocument())
6+
{
7+
//Add a new page to PDF document.
8+
PdfPage page = document.Pages.Add();
119

12-
//Create list box.
13-
PdfListBoxField listBoxField = new PdfListBoxField(page, "list1");
10+
//Create list box.
11+
PdfListBoxField listBoxField = new PdfListBoxField(page, "list1");
1412

15-
//Set the properties.
16-
listBoxField.Bounds = new Syncfusion.Drawing.RectangleF(100, 60, 100, 50);
13+
//Set the properties.
14+
listBoxField.Bounds = new Syncfusion.Drawing.RectangleF(100, 60, 100, 50);
1715

18-
//Add the items to the list box.
19-
listBoxField.Items.Add(new PdfListFieldItem("English", "English"));
20-
listBoxField.Items.Add(new PdfListFieldItem("French", "French"));
21-
listBoxField.Items.Add(new PdfListFieldItem("German", "German"));
16+
//Add the items to the list box.
17+
listBoxField.Items.Add(new PdfListFieldItem("English", "English"));
18+
listBoxField.Items.Add(new PdfListFieldItem("French", "French"));
19+
listBoxField.Items.Add(new PdfListFieldItem("German", "German"));
2220

23-
//Select the item.
24-
listBoxField.SelectedIndex = 0;
21+
//Select the item.
22+
listBoxField.SelectedIndex = 0;
2523

26-
//Set the multi select option.
27-
listBoxField.MultiSelect = true;
24+
//Set the multi select option.
25+
listBoxField.MultiSelect = true;
2826

29-
//Add the list box into PDF document
30-
document.Form.Fields.Add(listBoxField);
27+
//Add the list box into PDF document
28+
document.Form.Fields.Add(listBoxField);
3129

32-
//Create file stream.
33-
using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite))
34-
{
35-
//Save the PDF document to file stream.
36-
document.Save(outputFileStream);
30+
//Save the PDF document
31+
document.Save(Path.GetFullPath(@"Output/Output.pdf"));
3732
}
38-
39-
//Close the document.
40-
document.Close(true);
Lines changed: 23 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,33 @@
1-
// See https://aka.ms/new-console-template for more information
2-
3-
using Syncfusion.Pdf;
1+
using Syncfusion.Pdf;
42
using Syncfusion.Pdf.Interactive;
53
using Syncfusion.Pdf.Parsing;
64

7-
//Get stream from an existing PDF document.
8-
FileStream docStream = new FileStream(Path.GetFullPath(@"Data/Input.pdf"), FileMode.Open, FileAccess.Read);
9-
10-
//Load the PDF document.
11-
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
12-
13-
//Create the form if the form does not exist in the loaded document.
14-
if (loadedDocument.Form == null)
15-
loadedDocument.CreateForm();
5+
//Load the PDF document.
6+
using (PdfLoadedDocument loadedDocument = new PdfLoadedDocument(Path.GetFullPath(@"Data/Input.pdf")))
7+
{
8+
//Create the form if the form does not exist in the loaded document.
9+
if (loadedDocument.Form == null)
10+
loadedDocument.CreateForm();
1611

17-
//Load the page.
18-
PdfLoadedPage loadedPage = loadedDocument.Pages[0] as PdfLoadedPage;
12+
//Load the page.
13+
PdfLoadedPage loadedPage = loadedDocument.Pages[0] as PdfLoadedPage;
1914

20-
//Create a Radio button.
21-
PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(loadedPage, "employeesRadioList");
15+
//Create a Radio button.
16+
PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(loadedPage, "employeesRadioList");
2217

23-
//Add the radio button into loaded document.
24-
loadedDocument.Form.Fields.Add(employeesRadioList);
18+
//Add the radio button into loaded document.
19+
loadedDocument.Form.Fields.Add(employeesRadioList);
2520

26-
//Create radio button items.
27-
PdfRadioButtonListItem radioButtonItem1 = new PdfRadioButtonListItem("1-9");
28-
radioButtonItem1.Bounds = new Syncfusion.Drawing.RectangleF(100, 140, 20, 20);
29-
PdfRadioButtonListItem radioButtonItem2 = new PdfRadioButtonListItem("10-49");
30-
radioButtonItem2.Bounds = new Syncfusion.Drawing.RectangleF(100, 170, 20, 20);
21+
//Create radio button items.
22+
PdfRadioButtonListItem radioButtonItem1 = new PdfRadioButtonListItem("1-9");
23+
radioButtonItem1.Bounds = new Syncfusion.Drawing.RectangleF(100, 140, 20, 20);
24+
PdfRadioButtonListItem radioButtonItem2 = new PdfRadioButtonListItem("10-49");
25+
radioButtonItem2.Bounds = new Syncfusion.Drawing.RectangleF(100, 170, 20, 20);
3126

32-
//Add the items to radio button group.
33-
employeesRadioList.Items.Add(radioButtonItem1);
34-
employeesRadioList.Items.Add(radioButtonItem2);
27+
//Add the items to radio button group.
28+
employeesRadioList.Items.Add(radioButtonItem1);
29+
employeesRadioList.Items.Add(radioButtonItem2);
3530

36-
//Create file stream.
37-
using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite))
38-
{
39-
//Save the PDF document to file stream.
40-
loadedDocument.Save(outputFileStream);
31+
//Save the PDF document
32+
loadedDocument.Save(Path.GetFullPath(@"Output/Output.pdf"));
4133
}
42-
43-
//Close the document.
44-
loadedDocument.Close(true);
Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,22 @@
1-
// See https://aka.ms/new-console-template for more information
2-
3-
using Syncfusion.Pdf;
1+
using Syncfusion.Pdf;
42
using Syncfusion.Pdf.Interactive;
53

64
//Create a new PDF document.
7-
PdfDocument document = new PdfDocument();
8-
9-
//Add a new page to PDF document.
10-
PdfPage page = document.Pages.Add();
5+
using (PdfDocument document = new PdfDocument())
6+
{
7+
//Add a new page to PDF document.
8+
PdfPage page = document.Pages.Add();
119

12-
//Create PDF Signature field.
13-
PdfSignatureField signatureField = new PdfSignatureField(page, "Signature");
10+
//Create PDF Signature field.
11+
PdfSignatureField signatureField = new PdfSignatureField(page, "Signature");
1412

15-
//Set properties to the signature field.
16-
signatureField.Bounds = new Syncfusion.Drawing.RectangleF(50, 50, 90, 20);
17-
signatureField.ToolTip = "Signature";
13+
//Set properties to the signature field.
14+
signatureField.Bounds = new Syncfusion.Drawing.RectangleF(50, 50, 90, 20);
15+
signatureField.ToolTip = "Signature";
1816

19-
//Add the form field to the document.
20-
document.Form.Fields.Add(signatureField);
17+
//Add the form field to the document.
18+
document.Form.Fields.Add(signatureField);
2119

22-
//Create file stream.
23-
using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite))
24-
{
25-
//Save the PDF document to file stream.
26-
document.Save(outputFileStream);
20+
//Save the PDF document
21+
document.Save(Path.GetFullPath(@"Output/Output.pdf"));
2722
}
28-
29-
//Close the document.
30-
document.Close(true);

0 commit comments

Comments
 (0)