We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Copy ms word paragraph by paragraph to pdf with formatting

HI ,

Is it possible to read ms word doc paragraph by paragraph and copy content to pdf with all formatting ?


Thanks for your inquiry. With Aspose.Words, you can convert Word document to PDF with same formatting of MS Word document. Could you please share some more detail about your use case? We will then provide you more information about your query.

Hi Tahir,
Thanks for quick reply.
I don’t need exact conversion.
I will need to pick some specific paragraphs and copy them to pdf. I don’t need all data to be copied.

  1. Loop paragraph by paragraph in word doc.

  2. Select specific paragraph with formatting and fill pdf template blocks.

  3. And so on.


Thanks for your inquiry. You can import a paragraph from one Word document into another using Aspose.Words. However, Aspose.Words does not provide API to import paragraph of Word document into PDF. In your case, we suggest you following solution. Hope this helps you.

  1. Read the paragraph’s text and its formatting using Aspose.Words. Paragraph.ParagraphFormat property provides access to the paragraph formatting properties.
  2. Insert the paragraph’s text into PDF using Aspose.PDF.