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)
Posted in HTML Converter (htmltools) | Tagged , | Leave a comment

PDF to EMF

Thanks for you help. That does work, however I need to save it in EMF format and Adobe won't let me do that. I have figured out how to add the text in PDF editor, but it is very time consuming so I was hoping there was an easier way to get it to show up.

=========================================

Thanks for your message, you can download and install docPrint Pro v5.0 from following web page,

http://www.verypdf.com/artprint/index.html

After you installed it, you can open your PDF file in Adobe Acrobat product, print it to docPrint Printer, you will see your document in docPrint Preview Window, then you can click “Save As” button to save to EMF formats easily.

also, if you wish batch convert your PDF files to EMF files, you can download PDF to Vector Converter from following web page to try, PDF to Vector Converter can batch convert your PDF files to EMF files, it is work better than printing functin in Adobe Acrobat product,

http://www.verydoc.com/pdf-to-vector.html

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)
Posted in docPrint Pro, PDF to Vector Converter | Tagged , | Leave a comment

Ps2txt command line

Hi
I have downloaded your trial version which looks as though it works on
our .ps files running it from a command line. I have about 20 files I
want to convert to text, preferably in a batch job, how do I do this and
what license do I need.
Regards
=================================
You can run following command line to convert all PS files to text files
at one time,

#1: Convert all PS files to TXT files in D:\temp folder,

for %F in (D:\temp\*.ps) do "C:\VeryPDF\ps2txt.exe" "%F" "%~dpnF.txt"

Postscript to Text Converter Server License is USD195 per server, you
can purchase it from our website directly,

http://www.verydoc.com/ps-to-text.html

VeryPDF
===================================
is it possible to run this from within a python script and if so how do I do it?
===================================
ps2txt.exe is a command line application, you can call it from any script, of course, you can call it from python script too, please refer to following sample code,
~~~~~~~~~~~~~~~~~~~~~~
import commands

( stat, output ) = commands.getstatusoutput( "C:\VeryPDF\ps2txt.exe C:\test.pdf C:\out.txt" )

if( stat == 0 ):
    print "Command succeeded, here is the output: %s" % output
else:
    print "Command failed, here is the output: %s" % output
~~~~~~~~~~~~~~~~~~~~~~
VeryPDF
======================================
HI sorry to be a pain but I have 2 questions ifrstly when I ran the script you suggested I got:
 
Command failed, here is the output: '{' is not recognized as an internal or external command,
operable program or batch file.
 
so I am not sure what I should be changing, it is python 2.6 I am using.
 
Secondly assuming we do get it to work what changes do I need to make to pick out all .ps files from a mixed directory to produce a txt file for each ps file of the same name
 
Regards
======================================
You need use correct path to the ps2txt.exe, for example, if you place ps2txt.exe to C:\ folder, you need use following code,

( stat, output ) = commands.getstatusoutput( "C:\ps2txt.exe C:\test.pdf C:\out.txt" )

You can call following command line from a .bat file to Convert all PS files to TXT files in D:\temp folder,

For %%F in (D:\temp\*.ps) do "C:\VeryPDF\ps2txt.exe" "%%F" "%%~dpnF.txt"

You can then call this .bat file form your Python code, for example,

( stat, output ) = commands.getstatusoutput( "C:\test.bat" )

VeryPDF
======================================

Hi I have now got ps2txt.exe running from Python under Windows. import commands does not work under Windows so I had to use this instead:
 
def getstatusoutput(cmd):
    """Return (status, output) of executing cmd in a shell."""
    """This new implementation should work on all platforms."""
    import subprocess
    print cmd
    pipe = subprocess.Popen(cmd, shell=True, universal_newlines=True,
            stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
    output = str.join("", pipe.stdout.readlines())
    sts = pipe.wait()
    print sts
    print output
    if sts is None:
        sts = 0
    return sts, output
 
cmd = 'C:/ps2txt/ps2txt/ps2txt.exe "C:/ps2txt/ps2txt/test.ps" "C:/ps2txt/ps2txt/ab.txt"'
 
getstatusoutput(cmd)
which worked for a single file. So I then tried your for statement initiall from a bat file then from the command line and I got this
 
so the question now is what am I doing wrong on the command line or in the bat file which is behind the commandline window in the picture
 
Thank you
========================================

We have sent an example to you just now, please check it.

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)
Posted in Postscript to Text/PDF/Image | 2 Comments

PDFPrint return code or error code

Does your PDFPrint application work with 64-bit Windows 2008 (R1)?

Regards,
=====================================
Yes, our PDFPrint Command Line product does support 64-bit Windows 2008 (R1) system, that's no problem.

VeryPDF
======================================
Hi,

I am trying to run the pdfprint.exe command from a PL/SQL program and the pdfprint.exe returns an %ERRORLEVEL% value of -5.  Can you tell me what %ERRORLEVEL% -5 indicates?

Regards,
======================================
I figured out what -5 meant (can't find file), but I would like to know what a return code (ERRORLEVEL) of -13 means please.
======================================

Hi,

Please refer to following return values,

Return values:
   0: Print PDF file successfully.
-10: PDFPrint Library is damaged.
-11: Something is wrong in the command line options.
-101: Can't start "spooler" service, please start "spooler" service from Service Manager by manual.
  -4: Can't locate specify printer in this computer.
-12: Can't open specify printer.
-13: Something is wrong when set options to printer.
  -5: No input PDF file for printing.
   9: Password Required to open this PDF file.
Other values: Something is wrong during render PDF file.

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)
Posted in PDF Print | 2 Comments

Need product features info please, XPS to PDF Converter

I am preparing to download trial packages as we enter into the implementation phase of development.  I have one more question about conversion from XPS -> PDF, please...

We will need to produce PDF files with embedded movies (multi-frame GIF).  Are these features fully supported in your product?  Else, what are the limitations, and what are the alternate ways to support this need?
======================================
Our XPS to PDF Converter will convert first frame from GIF file to PDF file, because PDF format doesn't support GIF animation, please understand this matter.
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)
Posted in XPS to PDF Converter | Leave a comment
Page 1,402 of 1,410« First...102030...1,4001,4011,4021,4031,404...1,410...Last »