Two Pilots™    Home  |  Navigation  |  Site Map  |  Products  |  Download  |  Prices  |  For Partners  |  Support


All forums · Statistics · Search ·

Two Pilots forum / For software developers / PDF Creator Pilot features, capabilities & pr
Author Message
GeorgeS
Member
# Posted: 28 Dec 2004 00:10


Hi,
just came accross your website.
Our company is using PDF components for generating custom Newsletters, Cards & fliers for Real Estate & Mortgage Brokers.
Right now we are successfully using aspPDF component on our web server.

I noticed that your server license for PDF Library is priced rather high - almost 6 times more than some of the competing products.
There must be a good reason for this besides multiple scripting languages support.

What are the advantages in terms of features & capabilities of your product over the competing ones?

Thank you,
George

Eugene
Member
# Posted: 29 Dec 2004 08:42 · Edited by: Eugene


Dear George,

Our library provides real HDC, ASP and ASP.NET support, Unicode support and many other features. Also there is a HTML2PDF Add-on available at [url=http://www.colorpilot.com/html2pdfaddon.html
]http://www.colorpilot.com/html2pdfaddon.html
[/url]

Sincerely, Eugene

GeorgeS
Member
# Posted: 29 Dec 2004 21:31


Hi Eugene,
thanks for responding!

Questions:

- can existing PDF document (created within ADOBE InDesign or other software) be use as a template so we can dynamically add pictures, text & forms to it?

- does you library support picture transparency, frames & masks?

All the best,
George

Eugene
Member
# Posted: 3 Jan 2005 12:10


Dear George,

Sorry but in current version existing PDF documents can not be used as templates. transparency, frames and masks are not supported although you can use Win GDI and GDI+ functions with .HDC property that mimics screen/printer DC.

sincererly, Eugene

Lyndsey
# Posted: 15 Oct 2007 06:12


Eugene,

Has PDF creator pilot been changed since this post as it is over 2 years old to allow PDF documents to be used as templates?

Lyndsey

Stanislav
Member
# Posted: 15 Oct 2007 06:24


Dear Lyndsey,

Unfortunately not, but this is in the to-do list. Sorry for any inconvenience.

Best regards,
Stanislav
Two Pilots
www.colorpilot.com

shubh
Member
# Posted: 27 Dec 2007 10:22


I have to convert my aspx web page to pdf on clicking a hyperlink at runtime.how can i do it using PDF Creator Pilot ?Please reply me as early as possible as it is very urgent

shubh
Member
# Posted: 27 Dec 2007 11:38


My aspx page has images,css for tables and div and css are in different locations.Hw can i convert this aspx page into pdf.Please help me...

vit.shibaev
# Posted: 28 Dec 2007 06:31


Hi shubh,

There are 2 solutions:
1) You may convert aspx to html and then html to pdf using HTML2PDF Add-on;
2) You may write your own converter from aspx to pdf using our library.

Best regards,
Vitaliy Shibaev
Two Pilots
http://www.colorpilot.com

shubh
Member
# Posted: 30 Dec 2007 11:34


Hi Shibaev,

Thanks for your reply.I would like to inform you that i have written the following code.It is generating the html string from the aspx page(compareJets.aspx) but while calling html.LoadHTMLString(htmlCodeToConvert, "Application"); it is throwing some error although it is converting the aspx page into pdf but without any images and css. The code is as below:
private void ConvertToPDF()
{
StringWriter sw = new StringWriter();
Server.Execute("CompareJets.aspx", sw);
string htmlCodeToConvert = sw.GetStringBuilder().ToString();
PDFCreatorPilot3Lib.PDFDocument3Class pdf = new PDFCreatorPilot3Lib.PDFDocument3Class();
pdf.StartEngine("demo@demo", "demo");
//set AutoLaunch flag to TRUE to automatically open the generated pdf
pdf.AutoLaunch = true;
// set filename
pdf.FileName = sPath + fileTitle ;
pdf.BeginDoc();
HTML2PDF2Class html = new HTML2PDF2Class(); //create HTML2PDF2 Add-on object

html.StartHTMLEngine("", ""); //initialize HTML engine

html.ConnectToPDFLibrary(pdf); //connect to PDF Creator Pilot instance



try

{

html.LoadHTMLString(htmlCodeToConvert, "Application");

html.ConvertAll();

}

catch (Exception ex)

{

}

html.DisconnectFromPDFLibrary();

//html.UnloadAll();
html = null;
pdf.EndDoc();

}

could you please suggest me how to solve these problems?Other pdf converters are providing utility methods which directly converts an aspx page with css and images in different folders directly to pdf.Does colorpilot provide the same?could you give me a detail information on that?we want it to buy asap if it meets our requirements.



Do you have print options also where can i print the page after converting it to pdf?

shubh
Member
# Posted: 30 Dec 2007 11:39


it would be better if you can give me a detailed piece of code to do this asap? and the code to print the converted pdf document?

mvf
Member
# Posted: 2 Jan 2008 01:51 · Edited by: mvf


Try please html.LoadURL instead of LoadHTMLString. LoadURL method will emulate an usual request to the server and download all pictures and CSS as if it is opened in a browser.
Allso esure that aspx page has permissions to create a file in the directory specified:
pdf.FileName = sPath + fileTitle;

So the code will look like this:

PDFCreatorPilot3Lib.PDFDocument3Class pdf = new PDFCreatorPilot3Lib.PDFDocument3Class();
pdf.StartEngine("demo@demo", "demo");
pdf.AutoLaunch = true;
pdf.FileName = "full/path/to/file.pdf";
pdf.BeginDoc();
HTML2PDF2Class html = new HTML2PDF2Class(); //create HTML2PDF2 Add-on object
html.StartHTMLEngine("", ""); //initialize HTML engine
html.ConnectToPDFLibrary(pdf); //connect to PDF Creator Pilot instance

try
{
html.LoadURL("http://server.name/path/to/CompareJe ts.aspx");
html.ConvertAll();
}
catch (Exception ex)
{
}

html.DisconnectFromPDFLibrary();
html = null;
pdf.EndDoc();

shubh
Member
# Posted: 3 Jan 2008 02:09


Hi mvf,
I tried in the same way whatever you suggested but now it is showing "Action Cancelled" page with no data.With the previous code it was showing data but without any images or css.One more thing about my CompareJets.aspx is it is reading data from xml as well and those data which are coming from xml are not getting displayed with the previous code also.please help me asap.

mvf
Member
# Posted: 3 Jan 2008 05:04


I don't know why your code does not work but here is an example, examine it please
http://www.omsknet.ru/mvf/WebApplication1.zip (129 Kb)
example loads and converts page that contain css and graphics in separate files.

shubh
Member
# Posted: 3 Jan 2008 23:34


Hi mvf,

Your example worked fine but when i just replace html.LoadURL("http://localhost:1496/Application/q. aspx"); with html.LoadURL("http://localhost:1496/Application/Se arch/CompareJets.aspx"); it is showing "The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))" could you tell me why is this?In addition i would like to tell my pages are inheriting master page as well (must not be a problem but i told for your information).

shubh
Member
# Posted: 4 Jan 2008 01:25


I have noticed one thing any page inheriting from the master page is not getting converted and throwing this error.Well, i am sending you the aspx code of my page it may help you in solving this issue:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CompareJets.aspx.cs" ValidateRequest="false"
MasterPageFile="~/MasterPages/BridgeMasterPage.mas ter" Inherits="CompareJets"
EnableViewStateMac="false" EnableEventValidation="false" ViewStateEncryptionMode="Never" %>

<asp:Content ID="Compare" ContentPlaceHolderID="BodyPlaceHolder" runat="server">

<script type="text/javascript" language="javascript" src="../Css/CompareJets.js"></script>

<div class="InnerPageContent">
<h1>
Aircraft Comparison</h1>
<div id="ContentDiv" class="ContentSectionMain">
</div>
</div>
<input type='hidden' name='hdnXSLSource' id='hdnCompareXSLSource' runat="server" />
<input type='hidden' name='hdnXMLSource' id='hdnXMLSource' runat="server" />
<input type="hidden" id="Tail1" name="selectedTail1" runat="server" />
<input type="hidden" id="Tail2" name="selectedTail1" runat="server" />
<input type="hidden" id="Tail3" name="selectedTail1" runat="server" />
<input type="hidden" id="Tail4" name="selectedTail1" runat="server" />
<input type="hidden" id="BookedResultXml" runat="server" />
<input type="hidden" name="hdnIsFromSearchOrComparePage" id="hdnIsFromSearchOrComparePage"
runat="server" />
<input type="hidden" name="hdnTailId" id="hdnTailId" runat="server" />
<input type="hidden" name="hdnJetManufacturer" id="hdnJetManufacturer" runat="server" />
<input type="hidden" name="hdnJetCategoryName" id="hdnJetCategoryName" runat="server" />
<input type="hidden" name="hdnTripLength" id="hdnTripLength" runat="server" />
<input type="hidden" name="hdnTripPrice" id="hdnTripPrice" runat="server" />
<input type='hidden' name='hdnTailXML' id='hdnTailXML' runat="server" />
</asp:Content>

shubh
Member
# Posted: 7 Jan 2008 01:11


it has been a long time that i have posted the last message but i m not getting any positive reply. Could u tell me how to solve the master page issue asap?Could u pass me a sample asap?

 

 

Powered by miniBB 2.0 RC7 © 2001-2004 Page creation time (sec.): 0.015

 

Page top