Convert to PDF - Footer acting up

0
danvonfeldt posted this 12 October 2017

I'm using the following chunk of code:

       Document doc = Document.Load(inputFilePath);
    using (Stream reportDocumentStream = File.Create(outputFilePath))
    {
        doc.Save(reportDocumentStream, Docentric.Documents.ObjectModel.SaveOptions.Pdf);
    }

PDF outputs, but footer is not displaying correctly. It is not centered and is missing some of the data.

Attached are the outputs.

Last edited 12 October 2017

22 Posts
22 Points
5 Comments
Order By: Standard | Newest | Votes
0
jles posted this 13 October 2017

Hi Dan,

I think we recently fixed this issue in the v5.1 pre-release: http://www.docentric.com/downloads/DocentricToolkitSetup5.1.exe

Could you please install and try this newest release and let me know if it fixes the issue? If it doesn't please send the Word document to us so that we can reproduce the issue.

Thanks, Jure Leskovec

Last edited 13 October 2017

115 Posts
241 Points
0
danvonfeldt posted this 17 October 2017

I already had that version as another one of our employees had requested some group by and additional xpath functions that you gave her this version for. Version 5.1 (5.1.18.1327) correct?

I'm attaching the word document that is not converting nicely.

22 Posts
22 Points
1
jles posted this 18 October 2017

Hi Dan,

The problem is the currently version of Docentric Toolkit doesn't properly resolve custom tab stops style inheritance. It hasn't been confirmed yet, but we will most probably fix this immediately which means that if this feature gets a go, the fix will be ready in a week.

In the meantime you can very easily solve this by removing unnecessary 2 tab stops from the paragraph in the footer, as shown in the attached screenshot.

Let me know if you control the templates and can use this technique.

Regards, Jure Leskovec

115 Posts
241 Points
1
jles posted this 25 October 2017

Hi Dan,

I'm informing you that we have fixed the misbehavior regarding those offsets. You can download and install the latest version here:

http://www.docentric.com/downloads/DocentricToolkitSetup5.1.exe

Please confirm that it works now properly by marking this post as the answer.

Best, Jure

115 Posts
241 Points
0
danvonfeldt posted this 27 October 2017

Looks like it is good, thanks!

22 Posts
22 Points

Our 4274 members have posted 260 times in 75 discussions