Visualizer

Job ID: 32013002

Budget: €30 – €250 EUR

Currently i'm developing an utility in which i need a control to visualize PDF documents
(It must be a custom control. I don't need a commercial control, .Net Webbrowser, pdfAcroViewer or similar)

Technology: .Net
Languaje: C#
App Type: Windows Forms
Framework: 4.6

Requirements:
(I PROVIDE AN EXAMPLE SOLUTION IN WHICH YOU JUST HAVE TO RENDER THE IMAGE (AND OVERLAY) IN THE PICTUREBOX WITH THE CORRESPONDING PROPORTIONAL SIZES)

The control will be streched to parent control in long side and saving proportions
The custom control must contain, at least, a picturebox with the same size (except a little margin).
Then, the control and picturebox must have the same proportions as the paper size.
PaperSizes and PageSizes could not be standa sizes
The page could be portrait or landscape

The visualizer will have a function that will receive the following parameters:
- file: Path to pdf document
- pSize: Printing paper size
- fittingType: Fit to paper or Real Size
- totalPages: Document pages count (ignore this parameter)
- page: The page number that we must show

The function must return the scale percentage.

Image rendering (i thing it is the pending part you must develop)

- If fitting type is FIT, the image should be streched to picturebox (allways with the same proportions)
- If fitting type is REAL SIZE:
The picturebox must show an image of the corresponding page with the scaled size
The image must be centered
The proportions between papersize and pagesize must be ensured
If the page is larger than paper size, the picturebox must show the complete page with an overlay that show the complete document indicating the cut side (shadow and internal red borders in the larger side or sides) and the printing image.
Related categories: .NET C# Programming