Skip to content

Add 75 text handling examples to the PDF library#300

Merged
fahadadeel merged 1 commit into
release/26.5.0from
examples/3c85dbb5-working-with-text
Jun 15, 2026
Merged

Add 75 text handling examples to the PDF library#300
fahadadeel merged 1 commit into
release/26.5.0from
examples/3c85dbb5-working-with-text

Conversation

@agent-aspose-pdf-examples

Copy link
Copy Markdown
Collaborator

working-with-text

75 code example(s) for the working-with-text category.
Target: Aspose.PDF for .NET 26.5.0

Examples

# Example Difficulty
1 Add Text to a PDF Page Using TextFragment beginner
2 Insert Identical Text on All PDF Pages beginner
3 Apply Custom TrueType Font to PDF Text intermediate
4 Apply Custom OpenType Font to PDF Text beginner
5 Set Character Spacing for PDF Text beginner
6 Add Left-Aligned Text to PDF beginner
7 Center Text Horizontally in PDF beginner
8 Render Superscript Text in PDF beginner
9 Render Subscript Text Using Unicode Characters beginner
10 Set Custom Line Spacing for Added Text in PDF intermediate
11 Adjust Word Spacing of Inserted Text in PDF beginner
12 Justify Text in PDF Using Aspose.Pdf beginner
13 Enable Right-to-Left Text Direction and Add Arabic Text to PDF beginner
14 Render Bidirectional Text in PDF with Aspose.Pdf intermediate
15 Set Custom Line Height for PDF Text beginner
16 Add Text Fragment with Character Spacing beginner
17 Add Text Fragment to PDF with Ligature Support beginner
18 Enable Automatic Hyphenation for Long Words in PDF beginner
19 Embed CSS in HtmlFragment for PDF Generation intermediate
20 Attach JavaScript Action to a PDF Text Annotation beginner
21 Add Internal Text Link to PDF Using GoToAction intermediate
22 Add Clickable Hyperlink Text to PDF intermediate
23 Add Launch Action to PDF Text intermediate
24 Rotate Specific Text Fragment in PDF intermediate
25 Insert Rotated Text on Second PDF Page intermediate
26 Create Rotated Text Paragraph with Multiple Fragments intermediate
27 Replace Text in PDF with Aspose.Pdf intermediate
28 Extract Email Addresses from PDF Pages Using Regex intermediate
29 Identify Line Breaks in TextFragment intermediate
30 Extract Line Break Information from PDF Text Fragments intermediate
31 Append Disclaimer Text to First PDF Page beginner
32 Rotate Header Text in PDFs by 90 Degrees intermediate
33 Replace Text and Rotate Page, Save PDF to MemoryStream intermediate
34 Validate PDF, Enable Logging, and Search Text intermediate
35 Extract Text from PDF and Save as UTF-8 File beginner
36 Extract Line‑Break Positions from PDF TextFragments intermediate
37 Add Rotated Text Watermark to PDF Pages intermediate
38 Replace Text on Specific PDF Pages intermediate
39 Highlight Keyword Occurrences in PDF (Case‑Insensitive) intermediate
40 Add Rotated Mixed‑Style Text Paragraph to PDF Page intermediate
41 Batch Replace Text in PDF Using a Dictionary intermediate
42 Extract Text and Count Words per PDF Page beginner
43 Rotate 'Draft' Text Fragments in PDF beginner
44 Find Dates in PDF Using Regex intermediate
45 Append Multiple TextFragments and Get Line‑Break Positions intermediate
46 Rotate Text in a PDF Table Cell intermediate
47 Rotate PDF Title Text by 45 Degrees intermediate
48 Add Rotated Text to Bottom‑Right of Last PDF Page intermediate
49 Add Clickable Hyperlink to Text in PDF intermediate
50 Split PDF Text into Sentences and Write Each to a New Page intermediate
... 25 more examples

Key APIs Used

Aspose.Pdf.Annotations.AnnotationFlags, Aspose.Pdf.Annotations.Border, Aspose.Pdf.Annotations.GoToAction, Aspose.Pdf.Annotations.GoToURIAction, Aspose.Pdf.Annotations.JavascriptAction, Aspose.Pdf.Annotations.LaunchAction, Aspose.Pdf.Annotations.LinkAnnotation, Aspose.Pdf.Annotations.TextAnnotation, Aspose.Pdf.Annotations.WatermarkAnnotation, Aspose.Pdf.Annotations.WatermarkAnnotation.SetTextAndState, Aspose.Pdf.Color, Aspose.Pdf.Color.FromRgb, Aspose.Pdf.CryptoAlgorithm, Aspose.Pdf.Direction, Aspose.Pdf.Document, Aspose.Pdf.Document.Encrypt, Aspose.Pdf.Document.Pages, Aspose.Pdf.Document.Pages.Accept, Aspose.Pdf.Document.Pages.Add, Aspose.Pdf.Document.Save, Aspose.Pdf.Document.Validate, Aspose.Pdf.Drawing.BorderInfo, Aspose.Pdf.Drawing.Color, Aspose.Pdf.Drawing.MarginInfo, Aspose.Pdf.Drawing.Position, Aspose.Pdf.Font, Aspose.Pdf.FontRepository, Aspose.Pdf.FontRepository.FindFont, Aspose.Pdf.FontRepository.OpenFont, Aspose.Pdf.Form.AddFieldAppearance
(+49 more)

Tags

Aspose.Pdf TextFragment annotation appearance append arabic aspnet aspose aspose-pdf aspose.pdf background-color batch batch-processing bidi buttonfield byte-array center character-spacing clickable-text color

Difficulty Distribution

  • beginner: 31 example(s)
  • intermediate: 44 example(s)

Pipeline Stages

  • Baseline (1st try): 35
  • LLM Fix: 24
  • Regen with KB: 13
  • Final LLM Recovery: 3

Generated by Examples Generator

@fahadadeel fahadadeel merged commit ee030ed into release/26.5.0 Jun 15, 2026
1 check passed
@fahadadeel fahadadeel deleted the examples/3c85dbb5-working-with-text branch June 15, 2026 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants