Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8646077
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T12:42:36+00:00 2026-06-12T12:42:36+00:00

I am trying to append text onto a PDF document using Aspose.Pdf for .NET

  • 0

I am trying to append text onto a PDF document using Aspose.Pdf for .NET following this tutorial on Aspose’s own website.

So far so good until this line:

TextFragment textFragment = new TextFragment("main text");

I have added Aspose.Pdf for .NET via NuGet and the following using statement:

using Aspose.Pdf;

My problem is that I can’t find the TextFragment class. Do I need to add another Aspose reference via NuGet, or is this a native .Net class somewhere else in the framework? I have ReSharper, and it hasn’t suggested adding any references. This is a .Net 4 Client Framework Console Application.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T12:42:38+00:00Added an answer on June 12, 2026 at 12:42 pm

    My name is Nayyer. I am working as a Support Developer/Technical Evangelist at Aspose.

    Pleae note that TextFragment class is present under Aspose.Pdf.Text namespace. In order to reference it in your code, you may add the complete namespace reference i.e. using Aspose.Pdf.Text; or you can provide the complete class path such as Aspose.Pdf.Text.TextFragment. See the following code line

    Aspose.Pdf.Text.TextFragment textFragment = new Aspose.Pdf.Text.TextFragment("main text");

    Please take a look over the following image which shows the suggestions from VisualStudio intellisense.

    enter image description here

    @JMK, Aspose.Words for .NET supports the feature to Create/Manipulate MS word documents and it also offers the feature to render Word files into PDF format. So for that reason, there are some classes such as PdfCompliance, PdfTextCompression, PdfPermissions etc but I am afraid PDF class is not present in Aspose.Words for .NET. In fact Pdf class is present under Aspose.Pdf.Generator namespace of Aspose.Pdf for .NET.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to label Y-axis of my graph using following code: svg1.append(text).attr(class, y
I'm trying to append text lines with this code SendMessage(Form1.log.Handle, WM_SETTEXT, 0, Integer(PChar(textLog))); //
I am trying to append a css file using $('head').append('<link rel=stylesheet href=style2.css type=text/css />');
I am trying to append a table cell using the following javascript function: function
How do I get this done. I am trying to append text to a
Using VB.NET, I am trying to create a text file if it doesn't exist
I'm trying to append, via bash, one text file to another using foo.txt >>
Trying to append a div to another using the following function customizefields , but
Im trying to append a large block of text using jquery's append(). $('#add_contact_btn').click(function(event) {
I am trying to append some text to excel cell. For example if the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.