Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions pdf/english/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,19 @@ Learn how to create, format, and manipulate tables in PDF documents using Aspose
{{< tutorial-card link="./net/tables/add-table/" title="Add Table to an Existing PDF Using Aspose.PDF for .NET" imgSrc="./net/tables/add-table/images/thumb.png" >}}
{{< tutorial-card link="./net/tables/insert-page-break/" title="Create a PDF with Tables and Pagination Using Aspose.PDF" imgSrc="./net/tables/insert-page-break/images/thumb.png" >}}
{{< tutorial-card link="./net/tables/render-table/" title="Create a PDF with Tables using Aspose.PDF for .NET" imgSrc="./net/tables/render-table/images/thumb.png" >}}
{{< tutorial-card link="./net/tables/set-border/" title="Create PDF with Double-Bordered Table using Aspose.PDF" imgSrc="./net/tables/set-border/images/thumb.png" >}}
{{< tutorial-card link="./net/tables/text-alignment-for-table-row-content/" title="Create a PDF with Text Alignment for Table Row Content" imgSrc="./net/tables/text-alignment-for-table-row-content/images/thumb.png" >}}
{{< /blocks/products/pf/tutorial-page-section >}}
{{< blocks/products/pf/tutorial-page-section >}}
## [Comprehensive Tutorials Text Handling in Aspose.PDF for .NET](./net/text/)
Learn how to create, format, and manipulate tables in PDF documents using Aspose.PDF for .NET with step-by-step tutorials and code examples.

{{< tutorial-card link="./net/text/add-text/" title="Adding Text to PDF Documents with Aspose.PDF" imgSrc="./net/text/add-text/images/thumb.png" >}}
{{< tutorial-card link="./net/text/add-text-border/" title="Creating Styled Text with Borders in PDF Documents using Aspose.PDF" imgSrc="./net/text/add-text-border/images/thumb.png" >}}
{{< tutorial-card link="./net/text/add-transparent-text/" title="Creating Transparent Text Effects in PDF with Aspose.PDF" imgSrc="./net/text/add-transparent-text/images/thumb.png" >}}
{{< tutorial-card link="./net/text/add-underline-text/" title="Adding Underlined Text in PDF with Aspose.PDF" imgSrc="./net/text/add-underline-text/images/thumb.png" >}}
{{< tutorial-card link="./net/text/create-multi-column/" title="Create a Multi-Column PDF Using Aspose.PDF for .NET" imgSrc="./net/text/create-multi-column/images/thumb.png" >}}
{{< tutorial-card link="./net/text/multicolumn-paragraphs/" title="Multi-Column Paragraphs in PDF using Aspose.PDF" imgSrc="./net/text/multicolumn-paragraphs/images/thumb.png" >}}
{{< /blocks/products/pf/tutorial-page-section >}}
{{< /blocks/products/pf/main-container >}}
{{< /blocks/products/pf/main-wrap-class >}}
Expand Down
13 changes: 13 additions & 0 deletions pdf/english/net/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,19 @@ Learn how to create, format, and manipulate tables in PDF documents using Aspose
{{< tutorial-card link="./tables/add-table/" title="Add Table to an Existing PDF Using Aspose.PDF for .NET" imgSrc="./tables/add-table/images/thumb.png" >}}
{{< tutorial-card link="./tables/insert-page-break/" title="Create a PDF with Tables and Pagination Using Aspose.PDF" imgSrc="./tables/insert-page-break/images/thumb.png" >}}
{{< tutorial-card link="./tables/render-table/" title="Create a PDF with Tables using Aspose.PDF for .NET" imgSrc="./tables/render-table/images/thumb.png" >}}
{{< tutorial-card link="./tables/set-border/" title="Create PDF with Double-Bordered Table using Aspose.PDF" imgSrc="./tables/set-border/images/thumb.png" >}}
{{< tutorial-card link="./tables/text-alignment-for-table-row-content/" title="Create a PDF with Text Alignment for Table Row Content" imgSrc="./tables/text-alignment-for-table-row-content/images/thumb.png" >}}
{{< /blocks/products/pf/tutorial-page-section >}}
{{< blocks/products/pf/tutorial-page-section >}}
## [Comprehensive Tutorials Text Handling in Aspose.PDF for .NET](./text/)
Learn how to create, format, and manipulate tables in PDF documents using Aspose.PDF for .NET with step-by-step tutorials and code examples.

{{< tutorial-card link="./text/add-text/" title="Adding Text to PDF Documents with Aspose.PDF" imgSrc="./text/add-text/images/thumb.png" >}}
{{< tutorial-card link="./text/add-text-border/" title="Creating Styled Text with Borders in PDF Documents using Aspose.PDF" imgSrc="./text/add-text-border/images/thumb.png" >}}
{{< tutorial-card link="./text/add-transparent-text/" title="Creating Transparent Text Effects in PDF with Aspose.PDF" imgSrc="./text/add-transparent-text/images/thumb.png" >}}
{{< tutorial-card link="./text/add-underline-text/" title="Adding Underlined Text in PDF with Aspose.PDF" imgSrc="./text/add-underline-text/images/thumb.png" >}}
{{< tutorial-card link="./text/create-multi-column/" title="Create a Multi-Column PDF Using Aspose.PDF for .NET" imgSrc="./text/create-multi-column/images/thumb.png" >}}
{{< tutorial-card link="./text/multicolumn-paragraphs/" title="Multi-Column Paragraphs in PDF using Aspose.PDF" imgSrc="./text/multicolumn-paragraphs/images/thumb.png" >}}
{{< /blocks/products/pf/tutorial-page-section >}}

{{< /blocks/products/pf/main-container >}}
Expand Down
3 changes: 2 additions & 1 deletion pdf/english/net/tables/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ This section includes detailed tutorials on various table-related operations. Le
{{< tutorial-card link="./add-table/" title="Add Table to an Existing PDF Using Aspose.PDF for .NET" imgSrc="./add-table/images/thumb.png" >}}
{{< tutorial-card link="./insert-page-break/" title="Create a PDF with Tables and Pagination Using Aspose.PDF" imgSrc="./insert-page-break/images/thumb.png" >}}
{{< tutorial-card link="./render-table/" title="Create a PDF with Tables using Aspose.PDF for .NET" imgSrc="./render-table/images/thumb.png" >}}

{{< tutorial-card link="./set-border/" title="Create PDF with Double-Bordered Table using Aspose.PDF" imgSrc="./set-border/images/thumb.png" >}}
{{< tutorial-card link="./text-alignment-for-table-row-content/" title="Create a PDF with Text Alignment for Table Row Content" imgSrc="./text-alignment-for-table-row-content/images/thumb.png" >}}

{{< /blocks/products/pf/tutorial-page-section >}}
{{< /blocks/products/pf/main-container >}}
Expand Down
51 changes: 51 additions & 0 deletions pdf/english/net/tables/set-border/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
title: Create PDF with Double-Bordered Table using Aspose.PDF for .NET
weight: 7700
limit:
description: Learn how to create a PDF document with a table featuring double borders. Quick setup instructions and code examples included.
keywords: [Aspose PDF, .NET PDF example, double borders, PDF table, create PDF, Aspose documentation]
url: /net/tables/set-border/
---
{{< blocks/products/pf/main-wrap-class >}}
{{< blocks/products/pf/main-container >}}
{{< blocks/products/pf/tutorial-page-section >}}

# Create PDF with Double-Bordered Table using Aspose.PDF

This example demonstrates how to create a PDF document using Aspose.PDF for .NET, featuring a table with double borders on the top and bottom sides of the cells. Follow the step-by-step instructions to implement this feature in your applications seamlessly.

---
{{< tutorial-widget sourcePath="pdf/net/tables/set-border" >}}

{{< /blocks/products/pf/tutorial-page-section >}}
{{< blocks/products/pf/tutorial-page-section >}}

## Installation Instructions
To get started with Aspose.PDF for .NET, please follow these installation instructions:

1. Download Aspose.PDF:
- Visit the [Aspose website](https://www.aspose.com/downloads/pdf/net) to download the latest version of Aspose.PDF for .NET.

2. Install via NuGet Package Manager:
- Open your project in Visual Studio.
- Go to Tools > NuGet Package Manager > Manage NuGet Packages for Solution.
- Search for "Aspose.PDF" and install the package.

3. Add References:
- Ensure your project references the Aspose.PDF DLL in the `packages` folder.

4. Include Aspose.PDF Namespace in Your Project:
```csharp
using Aspose.Pdf;
using Aspose.Pdf.Text;
```

## For more details:
[Aspose.PDF for .NET Documentation](https://docs.aspose.com/pdf/net/)
[Aspose.PDF for .NET API Reference](https://reference.aspose.com/pdf/net/)

{{< /blocks/products/pf/tutorial-page-section >}}
{{< /blocks/products/pf/main-container >}}
{{< /blocks/products/pf/main-wrap-class >}}

{{< blocks/products/products-backtop-button >}}
51 changes: 51 additions & 0 deletions pdf/english/net/tables/set-border/example.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
//ExStart
//ExSummary: This code demonstrates how to create a PDF document with a table that has double borders on both the top and bottom sides.
//ExStepSummary:0: Instantiate a Document object and add a page to it.
//ExStepSummary:1: Create a BorderInfo object to define the border properties for the table cells.
//ExStepSummary:2: Instantiate a Table object and specify the column widths.
//ExStepSummary:3: Add a Row to the table and insert a Cell containing text.
//ExStepSummary:4: Set the double border for the cell using the BorderInfo object.
//ExStepSummary:5: Add the table to the page's paragraphs collection and save the document to a specified file path.
//ExStepImage:5:images/1.png
//ExStep:0-
// Define the path to the documents directory.
string dataDir = "Your Document Directory";

//ExStep:1-
// Instantiate Document object.
Document doc = new Document();
// Add a page to the PDF document.
Page page = doc.Pages.Add();

//ExStep:2-
// Create BorderInfo object.
Aspose.Pdf.BorderInfo border = new Aspose.Pdf.BorderInfo(Aspose.Pdf.BorderSide.All);
// Specify that the top border will be double
border.Top.IsDoubled = true;
// Specify that the bottom border will be double
border.Bottom.IsDoubled = true;

//ExStep:3-
// Instantiate Table object.
Aspose.Pdf.Table table = new Aspose.Pdf.Table();
// Specify Columns width information
table.ColumnWidths = "100";

//ExStep:4-
// Create Row object for the table.
Aspose.Pdf.Row row = table.Rows.Add();
// Add a Table cell to cells collection of row
Aspose.Pdf.Cell cell = row.Cells.Add("some text");
// Apply the border settings defined earlier.
cell.Border = border;

//ExStep:5-
// Add the table to the paragraphs collection of the page.
page.Paragraphs.Add(table);
// Specify the output file path.
dataDir = dataDir + "TableBorderTest_out.pdf";
// Save the PDF document
doc.Save(dataDir);
// Print success message with file path.
Console.WriteLine("\nBorder setup successfully.\nFile saved at " + dataDir);
//ExEnd
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
title: Create a PDF with Text Alignment for Table Row Content in Aspose.PDF for .NET
weight: 7700
limit:
description: Learn how to create a PDF document with a table using Aspose.PDF for .NET. This example demonstrates adding 10 rows and 3 columns with dynamic content.
keywords: [Aspose.PDF for .NET, create PDF table, add table to PDF, .NET PDF library, C# PDF table, generate PDF C#, Aspose PDF example, table formatting in PDF]
url: /net/tables/text-alignment-for-table-row-content/
---
{{< blocks/products/pf/main-wrap-class >}}
{{< blocks/products/pf/main-container >}}
{{< blocks/products/pf/tutorial-page-section >}}

# Create a PDF with Text Alignment for Table Row Content

Aspose.PDF for .NET provides a powerful API for creating, editing, and manipulating PDF documents programmatically. This example demonstrates how to generate a PDF file containing a structured table with 10 rows and 3 columns. Each row is dynamically populated with content, and the table is formatted with light gray borders. The step-by-step guide walks you through initializing the document, defining the table, setting properties, and finally saving the output PDF. Aspose.PDF for .NET simplifies PDF generation in C# applications, making it ideal for automated report generation, invoice creation, and structured data presentation.

---

{{< tutorial-widget sourcePath="pdf/net/tables/text-alignment-for-table-row-content" >}}

{{< /blocks/products/pf/tutorial-page-section >}}
{{< blocks/products/pf/tutorial-page-section >}}
## Installation Instructions:
To use Aspose.PDF for .NET in your project, follow these steps:

1. Install via NuGet Package Manager:
Open NuGet Package Manager in your Visual Studio project and run:
```sh
Install-Package Aspose.PDF
```

2. Download DLL Manually:
- Visit the Aspose.PDF for .NET Download Page: [Download Here](https://releases.aspose.com/pdf/net/)
- Extract and reference `Aspose.Pdf.dll` in your project.

3. Apply a License (Optional):
- Get a free temporary license: [Request License](https://purchase.aspose.com/temporary-license/)
- Apply it in your code:
```csharp
Aspose.Pdf.License license = new Aspose.Pdf.License();
license.SetLicense("Aspose.Pdf.lic");
```
## For more details
- Documentation: [Aspose.PDF for .NET Documentation](https://docs.aspose.com/pdf/net/)
- API Reference: [Aspose.PDF for .NET API Reference](https://reference.aspose.com/pdf/net/)

{{< /blocks/products/pf/tutorial-page-section >}}
{{< /blocks/products/pf/main-container >}}
{{< /blocks/products/pf/main-wrap-class >}}

{{< blocks/products/products-backtop-button >}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
//ExStart
//ExSummary: This code demonstrates how to create a PDF document with a table containing 10 rows and 3 columns.
//ExStepSummary:0: This step sets the directory path where the output PDF file will be saved.
//ExStepSummary:1: This step creates a new PDF document instance.
//ExStepSummary:2: This step initializes a new table object.
//ExStepSummary:3: This step sets the border color of the table to LightGray.
//ExStepSummary:4: This step applies a LightGray border to all table cells.
//ExStepSummary:5: This step starts a loop to add 10 rows to the table.
//ExStepSummary:6: This step adds a new row to the table and sets its vertical alignment to center.
//ExStepSummary:7: This step adds three cells to the row, with the first cell containing dynamic content based on the current timestamp.
//ExStepSummary:8: This step adds a new page to the PDF document.
//ExStepSummary:9: This step adds the table to the newly created page in the document.
//ExStepSummary:10: This step saves the final PDF document to the specified output directory.
//ExStepImage:8:images/1.png

//ExStep:0-
// The path to the documents directory.
string dataDir = "Your Document Directory";

//ExStep:1-
// Create a new PDF document.
Aspose.Pdf.Document doc = new Aspose.Pdf.Document();

//ExStep:2-
// Initializes a new instance of the Table.
Aspose.Pdf.Table table = new Aspose.Pdf.Table();

//ExStep:3-
// Set the table border color as LightGray.
table.Border = new Aspose.Pdf.BorderInfo(Aspose.Pdf.BorderSide.All, .5f, Aspose.Pdf.Color.FromRgb(System.Drawing.Color.LightGray));

//ExStep:4-
// Set the border for table cells.
table.DefaultCellBorder = new Aspose.Pdf.BorderInfo(Aspose.Pdf.BorderSide.All, .5f, Aspose.Pdf.Color.FromRgb(System.Drawing.Color.LightGray));

//ExStep:5-
// Create a loop to add 10 rows
for (int row_count = 0; row_count < 10; row_count++)
{
//ExStep:6-
// Add row to table
Aspose.Pdf.Row row = table.Rows.Add();
// Set vertical alignment of the row.
row.VerticalAlignment = VerticalAlignment.Center;

//ExStep:7-
// Add first cell with dynamic content.
row.Cells.Add("Column (" + row_count + ", 1)" + DateTime.Now.Ticks);
// Add second cell.
row.Cells.Add("Column (" + row_count + ", 2)");
// Add third cell.
row.Cells.Add("Column (" + row_count + ", 3)");
}

//ExStep:8-
// Add a new page to the PDF document.
Page tocPage = doc.Pages.Add();

//ExStep:9-
// Add the table object to the first page of the document.
tocPage.Paragraphs.Add(table);

//ExStep:10-
// Save the updated document containing the table object.
doc.Save(dataDir + "43620_ByWords_out.pdf");
//ExEnd
30 changes: 30 additions & 0 deletions pdf/english/net/text/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
title: Comprehensive Tutorials Text Handling in Aspose.PDF for .NET
weight: 10
limit:
description: Learn how to add, format, extract, and manipulate text in PDF documents using Aspose.PDF for .NET with step-by-step tutorials and code examples.
keywords:
url: /net/text/
---
{{< blocks/products/pf/main-wrap-class >}}
{{< blocks/products/pf/main-container >}}
{{< blocks/products/pf/tutorial-page-section >}}

## Introduction

Working with text in a PDF document is a fundamental task, whether you’re creating reports, invoices, or eBooks. Aspose.PDF for .NET offers a powerful API to add, edit, format, extract, and manipulate text with ease. Whether you need to insert text at specific coordinates, change font styles, or search and replace content, Aspose.PDF provides robust solutions. With its high-level features, you can control text properties like alignment, color, and size, ensuring professional-quality output.

In this tutorial series, we’ll explore various aspects of text manipulation using Aspose.PDF for .NET. You’ll learn how to insert text dynamically, format it with advanced styling, extract content for processing, and even work with multi-column layouts. Each tutorial is designed with clear explanations and practical code examples, making it easy for developers to implement text-based features in their applications. Whether you’re a beginner or an experienced developer, these guides will help you master text handling in PDF files effortlessly.

{{< tutorial-card link="./add-text/" title="Adding Text to PDF Documents with Aspose.PDF" imgSrc="./add-text/images/thumb.png" >}}
{{< tutorial-card link="./add-text-border/" title="Creating Styled Text with Borders in PDF Documents using Aspose.PDF" imgSrc="./add-text-border/images/thumb.png" >}}
{{< tutorial-card link="./add-transparent-text/" title="Creating Transparent Text Effects in PDF with Aspose.PDF" imgSrc="./add-transparent-text/images/thumb.png" >}}
{{< tutorial-card link="./add-underline-text/" title="Adding Underlined Text in PDF with Aspose.PDF" imgSrc="./add-underline-text/images/thumb.png" >}}
{{< tutorial-card link="./create-multi-column/" title="Create a Multi-Column PDF Using Aspose.PDF for .NET" imgSrc="./create-multi-column/images/thumb.png" >}}
{{< tutorial-card link="./multicolumn-paragraphs/" title="Multi-Column Paragraphs in PDF using Aspose.PDF" imgSrc="./multicolumn-paragraphs/images/thumb.png" >}}

{{< /blocks/products/pf/tutorial-page-section >}}
{{< /blocks/products/pf/main-container >}}
{{< /blocks/products/pf/main-wrap-class >}}

{{< blocks/products/products-backtop-button >}}
48 changes: 48 additions & 0 deletions pdf/english/net/text/add-text-border/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
title: Creating Styled Text with Borders in PDF Documents using Aspose.PDF for .NET
weight: 7700
limit:
description: Create professional PDF documents with styled text fragments featuring custom fonts, colors, and borders using Aspose.PDF for .NET library.
keywords: [Aspose.PDF for .NET, PDF creation, text styling, border effects, text fragments, C# PDF library, document formatting]
url: /net/text/add-text-border/
---
{{< blocks/products/pf/main-wrap-class >}}
{{< blocks/products/pf/main-container >}}
{{< blocks/products/pf/tutorial-page-section >}}

# Creating Styled Text with Borders in PDF Documents

Aspose.PDF for .NET is a powerful PDF processing API that allows developers to create, edit, manipulate, and convert PDF documents without requiring Adobe Acrobat. This example demonstrates how to create a PDF document with a text fragment that has specific styling and a border, which is particularly useful for highlighting important content in your documents.

---
{{< tutorial-widget sourcePath="pdf/net/text/add-text-border" >}}

{{< /blocks/products/pf/tutorial-page-section >}}
{{< blocks/products/pf/tutorial-page-section >}}

## Installation Instructions

1. Install via NuGet Package Manager:
```
Install-Package Aspose.PDF
```

2. Install via .NET CLI:
```
dotnet add package Aspose.PDF
```

3. Manual Installation:
- Download the latest version from [Aspose.PDF for .NET releases](https://releases.aspose.com/pdf/net/)
- Add reference to Aspose.PDF.dll in your project

## Resources

- [Aspose.PDF for .NET Documentation](https://docs.aspose.com/pdf/net/)
- [Aspose.PDF for .NET API Reference](https://reference.aspose.com/pdf/net/)

{{< /blocks/products/pf/tutorial-page-section >}}
{{< /blocks/products/pf/main-container >}}
{{< /blocks/products/pf/main-wrap-class >}}

{{< blocks/products/products-backtop-button >}}
Loading