Convert HTML to PDF from Local System Account

Hi

I'm having trouble running verypdf within a scheduled task on one of our servers.
It is server 2008r2 x64, the scheduled task (a powershell script) is running as local system which then executes htmltools.
Here's the error I get:

Thank you for choosing our product.
C:\verypdf\htmltools.exe -$ XXXXXXXXXXXXXXXXX -debug -noempty -height 840 -width 600 -emfheight 750 -nocenter -margin 25x100x25x60 -unicode http://www.myweb.com/Itineraries/PRINT_ItineraryViewer.aspx?id=47 S:\Formate_PDFs\Tour_Itineraries\N47.pdf
Start the conversion...
http://www.myweb.com/Itineraries/PRINT_ItineraryViewer.aspx?id=47 ==> S:\Formate_PDFs\Tour_Itineraries\N47.pdf
Convert HTML to other formats: "http://www.myweb.com/Itineraries/PRINT_ItineraryViewer.aspx?id=47"=>"S:\Formate_PDFs\Tour_Itineraries\N47.pdf"
[OK] Create virtual 'htmlsdk.dll' file properly.
[OK] Register virtual 'htmlsdk.dll' file, return code = -2147024890.
[FAILED] Register 'htmlsdk.dll' file (memory).
[FAILED] DllEntryPoint in RegisterOcx.
[FAILED] Register 'htmlsdk.dll' file (disk).
Can't register 'htmlsdk.dll' file properly, please contact 'support@verypdf.com' to get assistance.
Try convert document continue (1)...
The number of converted files is 0.
Conversion time = 5210ms
http://www.myweb.com/Itineraries/PRINT_ItineraryViewer.aspx?id=47 ==> S:\Formate_PDFs\Tour_Itineraries\N47.pdf, result=ERROR
TickCount = 5210ms(5.21s), Result = 0

Running the same scheduled task in a user accout works:

Thank you for choosing our product.
C:\verypdf\htmltools.exe -$ XXXXXXXXXXXXXXXXXX -debug -noempty -height 840 -width 600 -emfheight 750 -nocenter -margin 25x100x25x60 -unicode http://www.myweb.com/Itineraries/PRINT_ItineraryViewer.aspx?id=42 S:\Formate_PDFs\Tour_Itineraries\N42.pdf
Start the conversion...
http://www.myweb.com/Itineraries/PRINT_ItineraryViewer.aspx?id=42 ==> S:\Formate_PDFs\Tour_Itineraries\N42.pdf
Convert HTML to other formats: "http://www.myweb.com/Itineraries/PRINT_ItineraryViewer.aspx?id=42"=>"S:\Formate_PDFs\Tour_Itineraries\N42.pdf"
[OK] Create virtual 'htmlsdk.dll' file properly.
[OK] Register virtual 'htmlsdk.dll' file, return code = 0.
[OK] Register 'htmlsdk.dll' file (memory).
Detecting proxy settings...
Looking up sh-armley-isa1.shearings-group.net
Connecting to site 192.168.201.146
Website found. Waiting for reply...
Start downloading from site: http://www.myweb.com/Itineraries/PRINT_ItineraryViewer.aspx?id=42
Waiting for http://www.myweb.com/Itineraries/PRINT_ItineraryViewer.aspx?id=42...
(5 items remaining) Downloading picture http://www.myweb.com/Images/Itinerary/oban_fishing_boats.jpg...
(5 items remaining) Downloading picture http://www.myweb.com/Images/Itinerary/oban_fishing_boats.jpg...
(4 items remaining) Downloading picture http://www.myweb.com/images/itinerary/loch_lomond_new.jpg...
(3 items remaining) Waiting for http://www.myweb.com/Itineraries/PRINT_ItineraryViewer.aspx?id=42...
(3 items remaining) Downloading picture http://www.myweb.com/i/space.gif...
(2 items remaining) Downloading picture http://www.myweb.com/Images/Itinerary/loch_lomand_2.jpg...
(1 item remaining) Waiting for http://www.myweb.com/Itineraries/PRINT_ItineraryViewer.aspx?id=42...
(1 item remaining) Downloading picture http://www.myweb.com/Images/Itinerary/clay06.jpg...
Done
Captured EMF/WMF succeeded
Capture Web page return code: 1.
Try convert document continue (1)...
The number of converted files is 1.
Creating 'S:\Formate_PDFs\Tour_Itineraries\N42.pdf' file (1).
Creating 'S:\Formate_PDFs\Tour_Itineraries\N42.pdf' file (2).
Split metafile by height.
RclBounds: [0,0,899,972]
Adjust page height for page 1: 1168 ==> 972
Ready to convert Metafile to PDF file.
Enter EMF to PDF Conversion function.
Exit EMF to PDF Conversion function.
Finished Metafile to PDF file conversion.
Exit the DOC to PDF conversion function.
Conversion time = 7129ms
http://www.myweb.com/Itineraries/PRINT_ItineraryViewer.aspx?id=42 ==> S:\Formate_PDFs\Tour_Itineraries\N42.pdf, result=OK
TickCount = 7129ms(7.13s), Result = 1

Is there any way to make this work for the local system account?

Many Thanks
===========================================
Hi,

"local system account" is not an interactive user account, it has some limitations, we suggest you may run the conversion inside Administrator user account to instead of "local system account", then you will get it work properly.

Thank you!
VeryPDF

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

This entry was posted in HTML Converter (htmltools) and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!