Some of our word documents contain a barcode which is added via word function
image.png (28.1 KB)
The barcode is shown properly within word and also when i save the word document as pdf.
I then use the following code to convert the docx to a pdf using aspose
string FilePath = @"C:\Users\test\Desktop\MeinBarcode.docx"; Aspose.Words.Document doc = new Aspose.Words.Document(FilePath); doc.Save(@"C:\Users\test\Desktop\Document.Doc2PdfSave Out.pdf", Aspose.Words.SaveFormat.Pdf);
The resulting pdf then doesn’t show the barcode:
image.png (4.8 KB)
I do understand there is an implementation sample CustomBarcodeGenerator(), but i do have the following question:
Do i need to implement the CustomBarcodeGenerator if i just want to display the same barcode as is already shown in word, or can i tell aspose just to show the same barcode as word already has?