C# Print PDF

Lezárva Kiadva: Mar 19, 2012 Kiszállításkor fizetve
Lezárva Kiszállításkor fizetve

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# programozás

Projektazonosító: #1513257

A projektről

9 ajánlat Távolról teljesíthető projekt Utoljára aktív: Apr 23, 2012

9 szabadúszó tett átlagosan 40$ összegű árajánlatot erre a munkára

Nirmal2006

Kindly check your inbox for more details. Thank you.

$30 USD 0 napon belül
(159 vélemény)
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 Továbbiak

$32 USD 1 napon belül
(4 vélemény)
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 3 napon belül
(4 vélemény)
3.5
chSoft

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

$30 USD 1 napon belül
(2 vélemény)
2.4
jianxiangyi

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

$50 USD 1 napon belül
(0 vélemény)
0.0
strongit

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

$30 USD 2 napon belül
(0 vélemény)
0.0
rajibalahsan

Plz check PM.

$30 USD 2 napon belül
(0 vélemény)
0.0
ParthoBiswas007

Ready to start. Please see PMB.

$30 USD 2 napon belül
(0 vélemény)
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 1 napon belül
(0 vélemény)
0.0