Paragraph Before and After Space is Increased | DOC to PDF Conversion using .NET

Hello,

I am using IDAutomationC128S.ttf as barcode font in my word document. When using Aspose.Words to convert Word to PDF the position changes. It adds space above and below the font. This does not happen when using word save as PDF functionality (standard functionality).

Aspose Words
Product Version: 21.2.0
File Version: 21.2.0.0

Code:

using Aspose.Words;
namespace AsposeConsole
{
    class Program
    {
        static void Main(string[] args)
        {
            Document wordDocument = new Document(@"C:\AsposeConsole\Barcode Test.doc");
            wordDocument.Save(@"C:\AsposeConsole\Aspose Barcode Test.pdf", SaveFormat.Pdf);           
        }
    }
}

AsposeWordPdf.zip (74.9 KB)

Attached zip file contains:

  1. Barcode Test.doc - Input file for word file
  2. Aspose Barcode Test.pdf - word to pdf file converted using Aspose.Words API
  3. Word Barcode Test.pdf - word to pdf file converted using word save as PDF functionality (standard publishing).
  4. IDAutomationC128S.ttf - barcode file used in the word document.

Can you provide feedback, if there are other options in the API that can be used so that the position is not moved, or if this is an issue?

Thanks,
Nirav

@niravkanjia

We have tested the scenario and managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-22806. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

A post was split to a new topic: Paragraph before and after space is increased after DOC to PDF conversion