PD4ML v4 Forums PD4ML v3 Archived Forums (Read Only) General questions / FAQ Looking For PD4ML.NET Serve side Header/Footer Display Code Re: Re: Looking For PD4ML.NET Serve side Header/Footer Display Code

#28411

As I wrote, there are some new Java samples there since few minutes ago.

OK, PD4ML.NET has PD4Converter.aspx.cs sample, which also takes URL as an parameter.

You need to add to the sample a section like

[language=java:9g47w3hd]PD4PageMark footer = new PD4PageMark();
footer.setPageNumberTemplate(“page $[page] of $[total]”);
footer.setTitleAlignment(PD4PageMark.LEFT_ALIGN);
footer.setPageNumberAlignment(PD4PageMark.RIGHT_ALIGN);
footer.setInitialPageNumber(1);
footer.setPagesToSkip(1);
footer.setFontSize(14);
footer.setAreaHeight(18);
pd4ml.setPageFooter(footer);[/language:9g47w3hd]
before
[language=java:9g47w3hd]pd4ml.render(new Uri(inputUrl), outfile);[/language:9g47w3hd]