Hello
there is any way to override the wpf-viewer to add a panel between the rendered pdf page and the scrollviewer of wpf viewer. (i.e. the area which is define by the arrow in the picture)
Thank you
Daniel
Hello
there is any way to override the wpf-viewer to add a panel between the rendered pdf page and the scrollviewer of wpf viewer. (i.e. the area which is define by the arrow in the picture)
Thank you
Daniel
Hi Daniel,
This depends a bit on what you would expect to happen as you change the zoom.
The layout you’re describing can be achieved by setting the horizontal alignment to left (PDFViewWPF.SetHorizontalAlign(-1)) and then finding an appropriate zoom level.
However, when you zoom in, it will take up the gray space you have indicated.
We currently do not have a way to display a PDF with a specific amount of gray space only to the right of the document.
You could try to use void SetPageSpacing(int horizSpace, int vertSpace, int horizPad, int vertPad);
though that will leave blank space both left and right of the page.
Finally, you could try to create a custom control.
For example, if this control has it’s own scroll viewer that is bound to the one of the PDFViewWPF, you might be able to hide the ScrollBar of the PDFViewWPF.
Best Regards,
Tomas Hofmann
Hello Thomas,
thanks for help. I try to get the scrollviewer with PDFViewWPF.GetScrollViewer() because the API documentation speak about it. But when i try it, the IDE show me the message that no function with the name is founding? Is the function obsolete?
How i can get the scrollviewer to gide them!
Greeting
Daniel
Am Donnerstag, 17. Oktober 2013 12:33:50 UTC+2 schrieb Daniel Lutz:
Hello
there is any way to override the wpf-viewer to add a panel between the rendered pdf page and the scrollviewer of wpf viewer. (i.e. the area which is define by the arrow in the picture)
Thank you
Daniel