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


All forums · Statistics · Search ·

Two Pilots forum / For software developers / Blank pdf
Author Message
Vlada
# Posted: 16 Dec 2008 05:12


Hi,

i just instaled new version of
PDF Creator Pilot 3.9 and
HTML2PDF Add-on 3.9.60.

When i try to create pdf get blank pdf page.

here is my testing code:

PDFCreatorPilot3Lib.PDFDocument3 pdf = new PDFCreatorPilot3Lib.PDFDocument3Class();
pdf.StartEngine("", "");
pdf.LogActionsAndErrors = true;
pdf.FileName = Server.MapPath("~/files/formula/archive/test.pdf") ;
pdf.BeginDoc();
HTML2PDFAddOn.HTML2PDF2 html2pdf2 = new HTML2PDFAddOn.HTML2PDF2();
html2pdf2.SetLogFile(Server.MapPath("~/files/formu la/archive/log.txt"));
html2pdf2.StartHTMLEngine("", "");
html2pdf2.ConnectToPDFLibrary(pdf);
string htmlFile = Server.MapPath("~/files/formula/archive/pageexampl e.htm");
html2pdf2.LoadHTMLFile(htmlFile);
html2pdf2.ConvertAll();
html2pdf2.DisconnectFromPDFLibrary();
pdf.EndDoc();

here is my log.txt:
12/16/08 12:04:27 HTML2PDFImpl - Operating system is Microsoft Windows XP Professional (Build 2600), Service Pack 3
12/16/08 12:04:27 HTML2PDFImpl - Internet Explorer version is 7.0.5730.13
12/16/08 12:04:27 HTML2PDFImpl - Running version 3.9.60.0.
12/16/08 12:04:27 HTML2PDFImpl - Provided regname '' and regcode ''
12/16/08 12:04:27 HTML2PDFImpl - Provided registration data is invalid.
12/16/08 12:04:27 HTML2PDFImpl - PDFInterface released
12/16/08 12:04:27 HTML2PDFImpl - PDFInterface set
12/16/08 12:04:27 HTML2PDFImpl - ImageCreator created
12/16/08 12:04:27 CBrowserWindow - Created
12/16/08 12:04:27 CBrowserWindow - Arrived OnDocumentComplete for D:_work_kiviPIA 4.0srcwebfilesformulaarchivepageexample.htm (0x8FED858)
12/16/08 12:04:27 CBrowserWindow - Loaded. Ready to convert
12/16/08 12:04:27 CBrowserWindow - Conversion routine called for (0x8FB25A0)
12/16/08 12:04:27 ImageCreator - Conversion routine called for (0x8FB25A0)
12/16/08 12:04:27 ImageCreator - Save image called for (0x8FB25A0)
12/16/08 12:04:27 ImageCreator - Metafile 800 x 1759 created
12/16/08 12:04:27 ImageCreator - Trying to draw (0x8FB2390)
12/16/08 12:04:27 ImageCreator - Compatibility string is 'BackCompat'
12/16/08 12:04:27 ImageCreator - Standards-compliant mode is NOT switched on.
12/16/08 12:04:27 ImageCreator - Trying conservative way to draw
12/16/08 12:04:27 ImageCreator - Conservative way to draw succeeded
12/16/08 12:04:27 CBrowserWindow - Destroyed
12/16/08 12:04:27 CBrowserWindow - Destroyed
12/16/08 12:04:27 HTML2PDFImpl - Download complete
12/16/08 12:04:27 HTML2PDFImpl - Metafile created
12/16/08 12:04:27 CEmfSlicer - ProduceSlices called
12/16/08 12:04:27 CEmfSlicer - Allocated buffer for metafile
12/16/08 12:04:27 CEmfSlicer - Slicing image 801 x 1760
12/16/08 12:04:27 CEmfSlicer - Produced 2 slices
12/16/08 12:04:27 CEmfSlicer - Destroyed
12/16/08 12:04:27 CEmfSlicer - ProduceSlices called
12/16/08 12:04:27 CEmfSlicer - Allocated buffer for metafile
12/16/08 12:04:27 CEmfSlicer - Slicing image 801 x 1760
12/16/08 12:04:27 CEmfSlicer - Produced 2 slices
12/16/08 12:04:27 CEmfSlicer - Destroyed
12/16/08 12:04:27 HTML2PDFImpl - ImageCreator destroyed
12/16/08 12:04:27 HTML2PDFImpl - ConvertAllPages called
12/16/08 12:04:27 CEmf2PDFConverter - EMF Slicer created
12/16/08 12:04:27 CEmfSlicer - ProduceSlices called
12/16/08 12:04:27 CEmfSlicer - Allocated buffer for metafile
12/16/08 12:04:27 CEmfSlicer - Slicing image 801 x 1760
12/16/08 12:04:27 CEmfSlicer - Produced 2 slices
12/16/08 12:04:27 CEmf2PDFConverter - Starting conversion of pages from 0 to 1 inclusive
12/16/08 12:04:27 CEmf2PDFConverter - Converting page 0 with top margin = 0 and left margin = 0
12/16/08 12:04:27 CEmf2PDFConverter - Applying links to page 0
12/16/08 12:04:27 CEmf2PDFConverter - Drawing demo reminder
12/16/08 12:04:27 CEmf2PDFConverter - Converting page 1 with top margin = 0 and left margin = 0
12/16/08 12:04:27 CEmf2PDFConverter - Applying links to page 1
12/16/08 12:04:27 CEmf2PDFConverter - Drawing demo reminder
12/16/08 12:04:27 CEmfSlicer - Destroyed
12/16/08 12:04:27 HTML2PDFImpl - PDFInterface released
12/16/08 12:04:28 HTML2PDFImpl - Destroyed

I have checked my DEP setting and is ok. "Turn on DEP... services only"
I don't know what is wrong.

max.f
# Posted: 16 Dec 2008 05:57


Hello Vlada,
can you please sho me this "pageexampl e.htm" that you are trying to convert?
You may give me a link here or send the file via our web form at http://www.colorpilot.com/support.php ("Write Us" tab).

--
Max Filimonov

Vlada
# Posted: 17 Dec 2008 08:04


Any news ?

max.f
# Posted: 17 Dec 2008 23:04


Hello Vlada,

Did you sent us this "pageexampl e.htm" that you are trying to convert?

You may give me a link here or send the file via our web form at http://www.colorpilot.com/support.php ("Write Us" tab).

--
Max Filimonov

 

 

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

 

Page top