C# Print PDF
$30-250 USD
货到付款
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
项目ID: #1513257
关于项目
有9名威客正在参与此工作的竞标,均价$40/小时
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 更多
Hi, We request you to consider our bid, please refer the PM for more details warm regards Team Virtual Horizon
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