We use Aspose.Words to convert from DocX to PDF. However, given the attached* input file, the header seems to shift downwards. If the header is large, it would appear off the page. Here is the code from our unit test that shows the error.
Dim sDocFileName As String = IO.Path.Combine(Environment.CurrentDirectory, “DE47125.docx”)
Dim oDocoument As New Aspose.Words.Document(sDocFileName) oDocoument.Save(sPdfFileName, SaveFormat.Pdf)
- I’m also not sure how to attach a .docx file since the format for posting seems to have changed. Contact me at firstname.lastname@example.org for the input file.