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:
- Barcode Test.doc - Input file for word file
- Aspose Barcode Test.pdf - word to pdf file converted using Aspose.Words API
- Word Barcode Test.pdf - word to pdf file converted using word save as PDF functionality (standard publishing).
- 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