<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>Debenu Quick PDF Library - PDF SDK Community Forum : VBscript .LoadFromFile do nothing</title>
  <link>http://www.quickpdf.org/forum/</link>
  <description><![CDATA[This is an XML content feed of; Debenu Quick PDF Library - PDF SDK Community Forum : I need help - I can help : VBscript .LoadFromFile do nothing]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 19:15:27 +0000</pubDate>
  <lastBuildDate>Mon, 24 May 2021 20:07:47 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 11.01</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.quickpdf.org/forum/RSS_post_feed.asp?TID=3919</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Debenu Quick PDF Library - PDF SDK Community Forum]]></title>
   <url>http://www.quickpdf.org/forum/forum_images/QPDF_Forum_Title.png</url>
   <link>http://www.quickpdf.org/forum/</link>
  </image>
  <item>
   <title><![CDATA[VBscript .LoadFromFile do nothing : Thanks ]]></title>
   <link>http://www.quickpdf.org/forum/vbscript-loadfromfile-do-nothing_topic3919_post15741.html#15741</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=3273">Thierry_B</a><br /><strong>Subject:</strong> 3919<br /><strong>Posted:</strong> 24 May 21 at 8:07PM<br /><br />Thanks<div><br></div>]]>
   </description>
   <pubDate>Mon, 24 May 2021 20:07:47 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/vbscript-loadfromfile-do-nothing_topic3919_post15741.html#15741</guid>
  </item> 
  <item>
   <title><![CDATA[VBscript .LoadFromFile do nothing : Hi Thierry,the function LastErrorCode...]]></title>
   <link>http://www.quickpdf.org/forum/vbscript-loadfromfile-do-nothing_topic3919_post15740.html#15740</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 3919<br /><strong>Posted:</strong> 24 May 21 at 1:13PM<br /><br />Hi Thierry,<br><br>the function LastErrorCode always returns with a more detailed error code from the last called function...<br>https://www.debenu.com/docs/pdf_library_reference/LastErrorCode.php<br>directly after Load... should have return with error code 401 or 408 and then you would have known ;-)<br><br>Cheers and welcome here,<br>Ingo<br><br>]]>
   </description>
   <pubDate>Mon, 24 May 2021 13:13:31 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/vbscript-loadfromfile-do-nothing_topic3919_post15740.html#15740</guid>
  </item> 
  <item>
   <title><![CDATA[VBscript .LoadFromFile do nothing : Ok it seems running.I changed...]]></title>
   <link>http://www.quickpdf.org/forum/vbscript-loadfromfile-do-nothing_topic3919_post15739.html#15739</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=3273">Thierry_B</a><br /><strong>Subject:</strong> 3919<br /><strong>Posted:</strong> 24 May 21 at 9:40AM<br /><br />Ok it seems running.<div>I changed main folder (p:\...) to C:\...</div><div>P folder is a "space storage" on Windows Server 2012</div><div><br></div><div>Thanks for helping</div>]]>
   </description>
   <pubDate>Mon, 24 May 2021 09:40:45 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/vbscript-loadfromfile-do-nothing_topic3919_post15739.html#15739</guid>
  </item> 
  <item>
   <title><![CDATA[VBscript .LoadFromFile do nothing : Ok, omit &amp;#034;.pdf&amp;#034; in my...]]></title>
   <link>http://www.quickpdf.org/forum/vbscript-loadfromfile-do-nothing_topic3919_post15738.html#15738</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=3273">Thierry_B</a><br /><strong>Subject:</strong> 3919<br /><strong>Posted:</strong> 24 May 21 at 9:12AM<br /><br />Ok, omit ".pdf" in my example.<div><br><div>Here is the function called by hMailServer (EventHandlers):</div><div><br></div><div><div><span style="white-space:pre">	</span>Function ImageToPDF(FileName, ExtFileName, SaveFolder)</div><div><span style="white-space:pre">		</span>' Converti les images en PDF</div><div><span style="white-space:pre">		</span>' JPG/JPEG/TIFF/TIF&nbsp; EPS à tester?</div><div><span style="white-space:pre">		</span>' Retourne True si Ok</div><div><span style="white-space:pre">		</span>' Retourne False si erreur</div><div><span style="white-space:pre">		</span></div><div><span style="white-space:pre">		</span>Dim ClassName</div><div><span style="white-space:pre">		</span>Dim QP</div><div><span style="white-space:pre">		</span>Dim OutFileName</div><div><span style="white-space:pre">		</span>Dim lWidth</div><div><span style="white-space:pre">		</span>Dim lHeight</div><div><span style="white-space:pre">				</span></div><div><span style="white-space: pre;">		</span>ClassName = "DebenuPDFLibraryLite1114.PDFLibrary"</div><div><span style="white-space:pre">		</span>Set QP = CreateObject(ClassName)</div><div><span style="white-space:pre">		</span></div><div><span style="white-space:pre">		</span>ImageToPDF = False</div><div><span style="white-space:pre">		</span></div><div><span style="white-space:pre">		</span>' Load the image that you'd like to convert to PDF</div><div><span style="white-space:pre">		</span>If (<b>QP.AddImageFromFile(FileName, 0)</b>) = 1 Then</div><div><br></div><div><span style="white-space:pre">			</span>' Get the width and height of the image</div><div><span style="white-space:pre">			</span>lWidth = QP.ImageWidth()</div><div><span style="white-space:pre">			</span>lHeight = QP.ImageHeight()</div><div><br></div><div><span style="white-space:pre">			</span>' Reformat the size of the page in the selected document&nbsp;</div><div><span style="white-space:pre">			</span>Call QP.SetPageDimensions(lWidth, lHeight)</div><div><br></div><div><span style="white-space:pre">			</span>' Draw the image onto the page using the specified width/height</div><div><span style="white-space:pre">			</span>Call QP.DrawImage(0, lHeight, lWidth, lHeight)</div><div><br></div><div><span style="white-space:pre">			</span>' Save the new PDF to disk</div><div><span style="white-space:pre">			</span>OutFileName = SaveFolder &amp; GetBaseFile(FileName) &amp; "." &amp; "pdf"</div><div><span style="white-space:pre">			</span>Call QP.SaveToFile(OutFileName)</div><div><span style="white-space:pre">			</span>ImageToPDF = True</div><div><span style="white-space:pre">		</span>End If<span style="white-space:pre">	</span></div><div><span style="white-space:pre">		</span></div><div><span style="white-space:pre">		</span>Set QP = Nothing</div><div><span style="white-space:pre">	</span>End Function</div></div><div><br></div><div>AddImageFromFile don't load file and retour code error is 0</div><div>File name is correct : "<span style="font-family: Calibri, sans-serif; font-size: 11pt;">C:\MailServerAttachements\XXXXX@XXXX.cc\2021\20210524100511001info@XXXX.be.image.jpg</span></div><div><span style="font-family: Calibri, sans-serif; font-size: 11pt;"><br></span></div><div><span style="font-family: Calibri, sans-serif; font-size: 11pt;">Any idea ?</span></div></div>]]>
   </description>
   <pubDate>Mon, 24 May 2021 09:12:07 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/vbscript-loadfromfile-do-nothing_topic3919_post15738.html#15738</guid>
  </item> 
  <item>
   <title><![CDATA[VBscript .LoadFromFile do nothing : Thanks :-) ]]></title>
   <link>http://www.quickpdf.org/forum/vbscript-loadfromfile-do-nothing_topic3919_post15737.html#15737</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=3273">Thierry_B</a><br /><strong>Subject:</strong> 3919<br /><strong>Posted:</strong> 24 May 21 at 8:41AM<br /><br />Thanks :-)]]>
   </description>
   <pubDate>Mon, 24 May 2021 08:41:46 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/vbscript-loadfromfile-do-nothing_topic3919_post15737.html#15737</guid>
  </item> 
  <item>
   <title><![CDATA[VBscript .LoadFromFile do nothing : Hi Thierry,Please check first...]]></title>
   <link>http://www.quickpdf.org/forum/vbscript-loadfromfile-do-nothing_topic3919_post15736.html#15736</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=3215">Sopracenery</a><br /><strong>Subject:</strong> 3919<br /><strong>Posted:</strong> 23 May 21 at 11:28PM<br /><br />Hi Thierry,<div><br></div><div>Please check first your filename.</div><div><b style="-webkit-text-size-adjust: auto;"><br></b></div><div><b style="-webkit-text-size-adjust: auto;">testPDF</b></div><div><br></div><div>looks not like a PDF file. Try&nbsp;</div><div><br></div><div><b style="-webkit-text-size-adjust: auto;">test.PDF &nbsp;</b></div><div><b style="-webkit-text-size-adjust: auto;"><br></b></div><div><span style="-webkit-text-size-adjust: auto;">and then read out&nbsp;</span><span style="-webkit-text-size-adjust: auto; : rgb251, 251, 253;">WScript.Echo(QP.LastErrorCode)</span></div><div><span style="-webkit-text-size-adjust: auto; : rgb251, 251, 253;"><br></span></div><div><span style="-webkit-text-size-adjust: auto; : rgb251, 251, 253;">It returns 0 with „testPDF“ and it returns 401 with „test.PDF“ when File Not Found.</span></div><div><br></div><span style="font-size:10px"><br /><br />Edited by Sopracenery - 24 May 21 at 8:26AM</span>]]>
   </description>
   <pubDate>Sun, 23 May 2021 23:28:11 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/vbscript-loadfromfile-do-nothing_topic3919_post15736.html#15736</guid>
  </item> 
  <item>
   <title><![CDATA[VBscript .LoadFromFile do nothing : Hello,Sorry for bad enghish, I&amp;#039;m...]]></title>
   <link>http://www.quickpdf.org/forum/vbscript-loadfromfile-do-nothing_topic3919_post15734.html#15734</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=3273">Thierry_B</a><br /><strong>Subject:</strong> 3919<br /><strong>Posted:</strong> 23 May 21 at 11:24AM<br /><br /><div>Hello,</div><div><br></div><div>Sorry for bad enghish, I'm French</div><div>I try to load un PDF file with Lite Library but always receive 0 result (file not loaded).</div><div>I tried with full path and without, with differents files.&nbsp; Always same result.</div><div>Any ideas ?</div><div><br></div><div>Thanks</div><div>Thierry</div><div><br></div><div><br></div><div>' Debenu Quick PDF Library Lite Sample</div><div><br></div><div>WScript.Echo("Debenu Quick PDF Library Lite - Hello World Sample")</div><div><br></div><div>Dim ClassName</div><div>Dim QP</div><div><br></div><div>Dim InFileName</div><div>Dim OutFileName</div><div>Dim lWidth</div><div>Dim lHeight</div><div><br></div><div>ClassName = "DebenuPDFLibrary64Lite1114.PDFLibrary"</div><div>InFileName = "image.png"</div><div>OutFileName = "Testfini.pdf"</div><div><br></div><div>Set QP = CreateObject(ClassName)</div><div><br></div><div><b><br></b></div><div><b>' Load the PDF that you want to add the image to</b></div><div><b>if (QP.LoadFromFile("testPDF", "")) = 0 Then WScript.Echo("Erreur chargement PDF")</b></div><div><br></div><div>' Load the image that you'd like to convert to PDF</div><div>Call QP.AddImageFromFile(InFileName, 0)</div><div><br></div><div>' Get the width and height of the image</div><div>lWidth = QP.ImageWidth()</div><div>lHeight = QP.ImageHeight()</div><div><br></div><div>' Reformat the size of the page in the selected document&nbsp;</div><div>Call QP.SetPageDimensions(lWidth, lHeight)</div><div><br></div><div>' Draw the image onto the page using the specified width/height</div><div>Call QP.DrawImage(0, lHeight, lWidth, lHeight)</div><div><br></div><div>' Save the new PDF to disk</div><div>If QP.SaveToFile(OutFileName) = 1 Then</div><div>WScript.Echo("File " + OutFileName + " written successfully")</div><div>Else</div><div>WScript.Echo("Error, file could not be written")</div><div>End If</div><div><br></div><div>Set QP = Nothing</div><div>WScript.Sleep(9000)</div>]]>
   </description>
   <pubDate>Sun, 23 May 2021 11:24:29 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/vbscript-loadfromfile-do-nothing_topic3919_post15734.html#15734</guid>
  </item> 
 </channel>
</rss>