C# Print PDF

Zamknięty Opublikowano Mar 19, 2012 Płatność przy odbiorze
Zamknięty Płatność przy odbiorze

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 Programowanie w C#

Numer ID Projektu: #1513257

O projekcie

9 ofert Zdalny projekt Aktywny Apr 23, 2012

9 freelancerów złożyło ofertę za $40 w tym projekcie

Nirmal2006

Kindly check your inbox for more details. Thank you.

$30 USD w ciągu 0 dni
(159 Oceny)
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 Więcej

$32 USD w ciągu 1 dnia
(4 Oceny)
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 w ciągu 3 dni
(4 Oceny)
3.5
chSoft

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

$30 USD w ciągu 1 dnia
(2 Oceny)
2.4
jianxiangyi

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

$50 USD w ciągu 1 dnia
(0 Oceny)
0.0
strongit

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

$30 USD w ciągu 2 dni
(0 Oceny)
0.0
rajibalahsan

Plz check PM.

$30 USD w ciągu 2 dni
(0 Oceny)
0.0
ParthoBiswas007

Ready to start. Please see PMB.

$30 USD w ciągu 2 dni
(0 Oceny)
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 w ciągu 1 dnia
(0 Oceny)
0.0