C# Print PDF

已关闭 已发布的 Mar 19, 2012 货到付款
已关闭 货到付款

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# 编程

项目ID: #1513257

关于项目

9个方案 远程项目 活跃的Apr 23, 2012

有9名威客正在参与此工作的竞标,均价$40/小时

Nirmal2006

Kindly check your inbox for more details. Thank you.

$30 USD 在0天内
(159条评论)
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 更多

$32USD 在1天里
(4条评论)
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天内
(4条评论)
3.5
chSoft

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

$30USD 在1天里
(2条评论)
2.4
jianxiangyi

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

$50USD 在1天里
(0条评论)
0.0
strongit

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

$30 USD 在2天内
(0条评论)
0.0
rajibalahsan

Plz check PM.

$30 USD 在2天内
(0条评论)
0.0
ParthoBiswas007

Ready to start. Please see PMB.

$30 USD 在2天内
(0条评论)
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

$30USD 在1天里
(0条评论)
0.0