Page 1 of 1
How to hide page numbers on Pdf
Posted: Wed Feb 26, 2014 7:43 pm
by starhu
Hello,
I exported ScaleRichview using Gnostice EdocEngine.
In the SRichViewEdit I set the pagenumbers to be hidden, however it can be seen in the generated Pdf.
Is this a ScaleRichview setting or EdocEngine setting?
In gtPDFEngine I set CalculateVariables := false and AutoPaginate := false ;
Thank you
Posted: Wed Feb 26, 2014 9:22 pm
by Sergey Tkachenko
ScaleRichView exporter for eDocEngine was written by Gnostice, so I do not know its settings.
But it should call either DrawPage or DrawMetafile method of TSRichViewEdit.
Look what is passed to "PageNoVisible" parameter in this call (the 3d parameter from the end)
Posted: Tue May 13, 2014 4:16 pm
by yagui
Starhu: would you be able to hide the page number when generating the PDF file with Gnostice EdocEngine?
I have exactly the same problem.
Thanks and regards,
Martin
Posted: Tue May 13, 2014 5:34 pm
by starhu
Yagui:
This is the solution:
In unit gtScaleRichviewIntf
in method makepagemetafile change
ASRichViewEdit.DrawMetafile(PageNo, Result, True, True, False);
to
ASRichViewEdit.DrawMetafile(PageNo, Result,False, True, False);
Posted: Wed May 14, 2014 11:49 am
by yagui
Thanks a lot Starhu!!!.
I went a little further and I've change the method invocation to:
Code: Select all
ASRichViewEdit.DrawMetafile(PageNo, Result,ASRichViewEdit.PageProperty.PageNoVisible,True,False);
so it uses the configuration defined in TSRichViewEdit object.
Thanks and regards,
Martin
Posted: Wed May 14, 2014 12:18 pm
by starhu
Martin:
You are welcome!
It was clever, what you did, I'm going to use this code myself, too.
Regards,
Zsolt
Posted: Wed May 14, 2014 12:36 pm
by Sergey Tkachenko
A page-number field for insertion in headers and footers will be implemented in this month, so displaying them separately will be an obsolete feature.
Posted: Wed May 14, 2014 1:23 pm
by yagui
I'm still having problems generating PDF files. The botton margin from page 2 and the next pages is not taked into account. The botton margin for page 1 is ok, but in page 2, 3, 4, etc it writes text where it should be blank.
I've use the demo ScaleRichViewDemo.exe with my own RFT file (RTF created from ScaleRichView export option) and I've got the same wrong result, page 1 botton margin ok but the following pages not.
Starhu, did you have the same problem?.
Thanks and regards,
Martin