|
Rank: Newbie Groups: Member
Joined: 8/18/2011 Posts: 4
|
I am looking for a new component to convert XML invoices (with stylesheets, displayable in a browser) to PDF / TIF, that supports paging (my old one does not support paging). Converting an XML with your component gives an error: Converting: http://www.xmlfiles.com/examples/cd_catalog_with_css.xmlUnhandled Exception: EO.Pdf.HtmlToPdfException: Operation times out. at EO.Pdf.HtmlToPdfException.b(Exception A_0) at EO.Pdf.Internal.j2.h() at EO.Pdf.HtmlToPdf.a(j2 A_0) at EO.Pdf.HtmlToPdf.ConvertUrl(String url, String pdfFileName, HtmlToPdfOptio ns options) Press any key to continue . . . Converting http://www.portal.fo/ with the same code works as expected, with pages and everything :) I actually need to convert local XML files. Am just using internet XML file for testing. So, is there any way to get XML files to work with your component?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
We have confirmed this to be an issue. The core engine does support this but it is not enabled. We will enable it and provide you an update build either today or tomorrow.
Thanks!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
We have posted a new build that should handle xml file correctly. Please see your private message for the download location.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 8/18/2011 Posts: 4
|
Thanks.
Does your software support converting PDF's to multi page TIFF files? For the final results, I need TIF files.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
No. We do not support that yet, but we can add that for you easily.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 8/18/2011 Posts: 4
|
I really need to be able to do this.
I tried ABCPDF, and this component does it easilty... But it costs 3000 - 4000 dollars for our use, which is too much. Yours costs 549, which is a lot more reasonable.
Our users are importing invoices in PDF and TIF format... I need to be able to convert TIF to PDF and PDF to TIF, so that I always have both formats. After this, I have some code that converts the TIF image to JPG images - which works fine, without any component.
Is saving to TIF's something you will add? If yes, when?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
I believe what we will do is to give you the result of the HTML to PDF converter as a list of System.Drawing.Image objects. You can then call the Image object's Save method to save it to TIF or whatever other format you wish to use. This should be something that's very easy for us to do. So we should have it for you within a few days.
Please keep in mind this is not a "PDF to Image" converter. This is a "HTML to Image" converter. So you will not be able to take an existing PDF file and convert it to TIF file. Please let us know if that works for you.
Thanks
|
|
Rank: Newbie Groups: Member
Joined: 8/18/2011 Posts: 4
|
Hi I will discuss this with our team. Just tested the fix you sent me. It now works correctly to convert the on-line XML, but I'm getting an error when converting my actual XML file, which points to a XSL stylesheet. If I remove the reference to the stylesheet it shows correctly, so it seems the component can't handle the reference to a stylesheet in the same folder (or a parent folder, which is what I actually need) Here is an example. Try converting this: http://www.formula.fo/OIOXML-Example.zip
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Thanks for the test file. We will look into that and get back to you as soon as possible.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, We have looked into the issue. The HTML parsing engine in our converter can not do XSLT translation. However you can do the translation with .NET XslTransform class easily:
Code: C#
//Create an XslTransform object and load the xsl file
XslTransform transform = new XslTransform();
transform.Load(your_xsl_file);
//Load the xml document
XmlDocument doc = new XmlDocument();
doc.Load(your_xml_file);
//Convert the XML to HTML
MemoryStream output = new MemoryStream();
transform.Transform(doc, null, output);
string html = Encoding.UTF8.GetString(output.ToArray());
//Now convert the HTML to PDF
HtmlToPdf.ConvertHtml(html, your_pdf_file);
Please let us know if this works for you. Thanks!
|
|