Hi, having a bit of free time I decided to create a tiny sample that demonstrates how one of our products, the Apitron.PDF.Rasterizer for .NET can be used for cross-platform development.
Make sure you have the right environment set up. To get the sample working on Mac OS I've used Xamarin Studio, while my Windows PC has MS VS, Xamarin Studio and Mono & gtksharp package installed.
STEP I
Download latest component package from http://www.apitron.com/Downloads and unzip it to the desired location.
STEP II
Download the GTKViewer sample project from this location and open it with your IDE.
Add a reference to Apitron.PDF.Rasterizer.dll.
NOTE:
If you are trying it on Windows with Visual Studio I'd suggest to add the following line to your post-build steps(set the option Run the postbuild event: On Successful build):
"C:\Program Files (x86)\Mono-2.10.9\bin\mono.exe" $(TargetFileName)
it runs your app using mono after build, otherwise if you try to run it as usual BadImageFormatException will be thrown.
STEP III
Run the sample and select PDF file for viewing ( click File->Open), use arrows to navigate between pages.
The images below demonstrate the same application running on Mac OS X and Windows.
Should you have any questions, please email me or post a comment. This example is quite simple but clearly demonstrates that cross-platform PDF processing is an easy task with right tools in hand.
Make sure you have the right environment set up. To get the sample working on Mac OS I've used Xamarin Studio, while my Windows PC has MS VS, Xamarin Studio and Mono & gtksharp package installed.
STEP I
Download latest component package from http://www.apitron.com/Downloads and unzip it to the desired location.
STEP II
Download the GTKViewer sample project from this location and open it with your IDE.
Add a reference to Apitron.PDF.Rasterizer.dll.
NOTE:
If you are trying it on Windows with Visual Studio I'd suggest to add the following line to your post-build steps(set the option Run the postbuild event: On Successful build):
"C:\Program Files (x86)\Mono-2.10.9\bin\mono.exe" $(TargetFileName)
it runs your app using mono after build, otherwise if you try to run it as usual BadImageFormatException will be thrown.
STEP III
Run the sample and select PDF file for viewing ( click File->Open), use arrows to navigate between pages.
The images below demonstrate the same application running on Mac OS X and Windows.
Mac OS X
Windows
No comments:
Post a Comment