<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Save pdf file</title>
        <description>Hello

I'm evaluating your product, but I have some problems while i am testing it.

I'm working with ASP.NET 2.0, VB.NET.

I have a page that is dynamically created, so every time you run it, it can be different.

What I need is that the page render event saves a pdf of the generated page.


In order to test your product, I am running this code.

        Dim client As New pdfcrowd.Client(&amp;quot;xxx&amp;quot;, &amp;quot;xxx&amp;quot;)

        Dim html As String = _
            &amp;quot;&amp;lt;html&amp;gt;&amp;quot; &amp;amp; _
                &amp;quot;&amp;lt;body&amp;gt;&amp;quot; &amp;amp; _
                    &amp;quot;&amp;lt;div&amp;gt;&amp;quot; &amp;amp; _
                        &amp;quot;&amp;lt;table border=&amp;quot;&amp;quot;1&amp;quot;&amp;quot; bordercolor=&amp;quot;&amp;quot;fuchsia&amp;quot;&amp;quot; style=&amp;quot;&amp;quot;position:absolute; top:100; left:100&amp;quot;&amp;quot; &amp;gt;&amp;quot; &amp;amp; _
                            &amp;quot;&amp;lt;tr&amp;gt;&amp;quot; &amp;amp; _
                                &amp;quot;&amp;lt;td colspan=&amp;quot;&amp;quot;2&amp;quot;&amp;quot;&amp;gt;Test text&amp;lt;/td&amp;gt;&amp;quot; &amp;amp; _
                            &amp;quot;&amp;lt;/tr&amp;gt;&amp;quot; &amp;amp; _
                        &amp;quot;&amp;lt;/table&amp;gt;&amp;quot; &amp;amp; _
                    &amp;quot;&amp;lt;/div&amp;gt;&amp;quot; &amp;amp; _
                &amp;quot;&amp;lt;/body&amp;gt;&amp;quot; &amp;amp; _
            &amp;quot;&amp;lt;/html&amp;gt;&amp;quot;

        client.convertHtml(html, New FileStream(&amp;quot;c:\html.pdf&amp;quot;, FileMode.CreateNew))

But when I open the generated pdf file, I get the following error:

      &amp;quot;Failed to open the document. The file is damaged beyond repair.&amp;quot;

I'm running this code in the page render event.


I hope you can help with this issue


Thanks</description>
        <link>http://pdfcrowd.com/forums/read.php?3,377,377#msg-377</link>
        <lastBuildDate>Sun, 26 May 2013 00:19:10 -0400</lastBuildDate>
        <generator>Phorum 5.2.14</generator>
        <item>
            <guid>http://pdfcrowd.com/forums/read.php?3,377,380#msg-380</guid>
            <title>Re: Save pdf file</title>
            <link>http://pdfcrowd.com/forums/read.php?3,377,380#msg-380</link>
            <description><![CDATA[It works perfectly!!<br />
<br />
Thank you]]></description>
            <dc:creator>IsdGlobal</dc:creator>
            <category>Pdfcrowd Support Forum</category>
            <pubDate>Wed, 11 May 2011 11:26:57 -0400</pubDate>
        </item>
        <item>
            <guid>http://pdfcrowd.com/forums/read.php?3,377,379#msg-379</guid>
            <title>Re: Save pdf file</title>
            <link>http://pdfcrowd.com/forums/read.php?3,377,379#msg-379</link>
            <description><![CDATA[Please, try this code:<br />
<br />
<pre class="bbcode">
Dim fs As New FileStream(&quot;c:\html.pdf&quot;, FileMode.CreateNew)
client.convertHtml(html, fs) 
fs.Close()</pre>
<br />
Did it help?]]></description>
            <dc:creator>support</dc:creator>
            <category>Pdfcrowd Support Forum</category>
            <pubDate>Wed, 11 May 2011 10:36:01 -0400</pubDate>
        </item>
        <item>
            <guid>http://pdfcrowd.com/forums/read.php?3,377,378#msg-378</guid>
            <title>Re: Save pdf file</title>
            <link>http://pdfcrowd.com/forums/read.php?3,377,378#msg-378</link>
            <description><![CDATA[Hello, <br />
<br />
please send the generated PDF to info@pdfcrowd.com and we will look into it.]]></description>
            <dc:creator>support</dc:creator>
            <category>Pdfcrowd Support Forum</category>
            <pubDate>Wed, 11 May 2011 10:20:39 -0400</pubDate>
        </item>
        <item>
            <guid>http://pdfcrowd.com/forums/read.php?3,377,377#msg-377</guid>
            <title>Save pdf file</title>
            <link>http://pdfcrowd.com/forums/read.php?3,377,377#msg-377</link>
            <description><![CDATA[Hello<br />
<br />
I'm evaluating your product, but I have some problems while i am testing it.<br />
<br />
I'm working with ASP.NET 2.0, VB.NET.<br />
<br />
I have a page that is dynamically created, so every time you run it, it can be different.<br />
<br />
What I need is that the page render event saves a pdf of the generated page.<br />
<br />
<br />
In order to test your product, I am running this code.<br />
<br />
        Dim client As New pdfcrowd.Client(&quot;xxx&quot;, &quot;xxx&quot;)<br />
<br />
        Dim html As String = _<br />
            &quot;&lt;html&gt;&quot; &amp; _<br />
                &quot;&lt;body&gt;&quot; &amp; _<br />
                    &quot;&lt;div&gt;&quot; &amp; _<br />
                        &quot;&lt;table border=&quot;&quot;1&quot;&quot; bordercolor=&quot;&quot;fuchsia&quot;&quot; style=&quot;&quot;position:absolute; top:100; left:100&quot;&quot; &gt;&quot; &amp; _<br />
                            &quot;&lt;tr&gt;&quot; &amp; _<br />
                                &quot;&lt;td colspan=&quot;&quot;2&quot;&quot;&gt;Test text&lt;/td&gt;&quot; &amp; _<br />
                            &quot;&lt;/tr&gt;&quot; &amp; _<br />
                        &quot;&lt;/table&gt;&quot; &amp; _<br />
                    &quot;&lt;/div&gt;&quot; &amp; _<br />
                &quot;&lt;/body&gt;&quot; &amp; _<br />
            &quot;&lt;/html&gt;&quot;<br />
<br />
        client.convertHtml(html, New FileStream(&quot;c:\html.pdf&quot;, FileMode.CreateNew))<br />
<br />
But when I open the generated pdf file, I get the following error:<br />
<br />
      &quot;Failed to open the document. The file is damaged beyond repair.&quot;<br />
<br />
I'm running this code in the page render event.<br />
<br />
<br />
I hope you can help with this issue<br />
<br />
<br />
Thanks]]></description>
            <dc:creator>IsdGlobal</dc:creator>
            <category>Pdfcrowd Support Forum</category>
            <pubDate>Wed, 11 May 2011 10:10:25 -0400</pubDate>
        </item>
    </channel>
</rss>
