C# Print PDF

Closed Posted Mar 19, 2012 Paid on delivery
Closed Paid on delivery

I am using both itextsharp and pdfsharp to manipulate pdfs. One thing that I cannot seem to get working is accessing the print options of the pdf. For example I would want to be able to set the page scaling to "Fit to Printable Area". I found an example of how to change the page scaling in itextsharp but the only option I see is setting it None. Also I have not even been able to get that example to work as I keep getting an exception "Document has no pages" when i attempt to close the document. Here is the example below:

string NewPDF = [login to view URL]() + ".pdf";

try

{

[login to view URL] reader = new [login to view URL]([login to view URL]);

[login to view URL] document = new [login to view URL]([login to view URL](1));

[login to view URL] writer = [login to view URL](document, new FileStream(NewPDF, [login to view URL]));

[login to view URL]([login to view URL], [login to view URL]);

[login to view URL]();

[login to view URL]();

[login to view URL]();

}

catch (Exception ex)

{

}

if you can get me a working example of how I can change the page scaling of a pdf so later I can send it to print via PDFSharp's print function you will win. First person to do so will win $30.

Good luck

.NET C# Programming

Project ID: #1513257

About the project

9 proposals Remote project Active Apr 23, 2012

9 freelancers are bidding on average $40 for this job

Nirmal2006

Kindly check your inbox for more details. Thank you.

$30 USD in 0 days
(159 Reviews)
7.0
jatinkindra

Hands on experience with various database driven customized managed applications. Experience with Asp.Net, DevExpress, MVC, MVP, WCF, WPF, REST API, Ajax, Jquery & Razor design patterns. Experience with various technol More

$32 USD in 1 day
(4 Reviews)
4.2
VirtualHorizon

Hi, We request you to consider our bid, please refer the PM for more details warm regards Team Virtual Horizon

$100 USD in 3 days
(4 Reviews)
3.5
chSoft

I have send a sample output. Please check your PMB.

$30 USD in 1 day
(2 Reviews)
2.4
jianxiangyi

Hi, I would like to do this job for you, please contact me. thank you.

$50 USD in 1 day
(0 Reviews)
0.0
strongit

hi. let me do it. it easy with me. thanks!

$30 USD in 2 days
(0 Reviews)
0.0
rajibalahsan

Plz check PM.

$30 USD in 2 days
(0 Reviews)
0.0
ParthoBiswas007

Ready to start. Please see PMB.

$30 USD in 2 days
(0 Reviews)
0.0
etaha

Already facing this problem, also if you have Unicode data such as Arabic it will not be printed fine, I have a very old experience with iTextsharp library, so let me do it for you

$30 USD in 1 day
(0 Reviews)
0.0