html converter (htmltools)

htmltools.exe Permission Problems when call from ASP.NET source code

I purchased the command line server product of HTML to PDF Converter and I am having a problem I need help with.  My application creates a series of .rtf files with each file containing a page for a carrier access bill. I use the htmltools.exe product to convert the pages from .rtf format to .pdf format.  I then use the htmltools.exe product to combine the resulting .pdf files to a single file.

The command line product is called from a compile perl script.  Here are the symptoms I am seeing;

When I run the command line product from a command window, it runs with very acceptable run times.

When I run the compiled perl program from a command line window, which calls the htmltools.exe product, it runs with very acceptable run times.

However, when I run the compiled perl program from my ASP.NET application, it starts the compiled perl program using a COM+ component that is impersonating my username, but I am getting very slow run times of htmltools.exe.

I created a log file to see what was happening and the results are attached.  It's getting a message saying 'StgCreateDocfile() function failed.' which is probably some sort of permissions problem, but I am not sure.

I have opened up the security for the folder in question allowing all access for Everyone, and the internal accounts used by ASP.NET.

Any suggestions you have would be greatly appreciated.
==================================
It seems the default account of ASP.NET application hasn't permission to calling the StgCreateDocfile() function, we suggest you may use CmdAsUser.exe to run htmltools.exe from an interactive user account (such as Administrator user account) to try again. CmdAsUser.exe can be downloaded from following web page,

http://www.verydoc.com/exeshell.html

~~~~~~~~~~~~~~~~~~~~~~~~~~
CmdAsUser - start a command as a specified user. CmdAsUser command line is a freeware.

CmdAsUser.zip (32.40 KB).

http://www.verydoc.com/download/cmdasuser.zip

Usage: CmdAsUser <user> <domain> [/p <password>] [/c <command>]

Where:
<user> is the name of the user.
<domain> is the logon domain, specify a period '.' for local.
<password> (optional) is the users password.
<command> (optional) is the command line to execute as the specified
user.

Notes:
If the password is not given then you will be prompted for it.
If the command is not given then "cmd" is assumed.
The calling process needs to either have administrative privileges (ie in the local adminstrators group) or at LEAST the following privileges:
"Act as part of the operating system" (SeTcbPrivilege),
"Bypass traverse checking" (SeChangeNotifyPrivilege),
"Increase quotas" (SeIncreaseQuotaPrivilege),
"Replace a process level token" (SeAssignPrimaryTokenPrivilege).
The utility may take a while if there is inappropriate security so please be patient.

Examples:

CmdAsUser Martyn . /p GingerNinja /c regedit
CmdAsUser test . /p 123 /c "C:\Program Files\docPrintPro v4.5\doc2pdf.exe" -i htttp://www.verypdf.com -o "C:\out.pdf"
~~~~~~~~~~~~~~~~~~~~~~~~~~

You may encounter Error 1314 in some Windows systems when you switch between user accounts, this is caused by permission setting, please by following steps to solve this 1314 Error,

ERROR 1314:
~~~~~~~~~~~~~
1314 A required privilege is not held by the client. ERROR_PRIVILEGE_NOT_HELD
~~~~~~~~~~~~~

To resolve this issue:
1. Click Start, click Run, type "secpol.msc", and then press ENTER.
2. Double-click "Local Policies".
3. Double-click "User Rights Assignment".
4. Double-click "Replace a process level token".
5. Click "Add", and then double-click the "Everyone" group
6. Click "OK".
7. You may have to logout or even reboot to have this change take effect.

Please refer to following two screenshots to understand above steps,

http://www.verydoc.com/images/err1314-1.png
http://www.verydoc.com/images/err1314-2.png

Please look at following page for the details about ERROR 1314,

http://www.verydoc.com/exeshell.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)
pdf to image converter

Problem of PDF to Image Converter, unable to convert PDF to TIF file

Please find below our original order for the PDFtoImage SDK.  I understand our support period has expired and you can’t spend much time helping us without that, but I was hoping if you could quickly examine the attached PDF and tell why it doesn’t convert to a valid TIF file.  The process works without error, but results in a 0-byte TIF file.

I thought maybe the PDF was corrupt, so I downloaded trial versions of a few other PDF to TIF converters and they are all able to convert this PDF to TIF fine.

We are very happy with VeryPDF and the conversion options it offers, and at some point will purchase the developer version for integration into our app, so I don’t want to have to consider other vendors etc, so hopefully it’s possible to tell why this PDF is not converting and maybe an upgrade of the VeryPDF SDK could fix this issue.  You had mentioned the COM version a few months back when I inquired about 64-bit version, which we still need to purchase since more and more people are using 64bit machines.  Maybe the COM version has this issue fixed in it?

The PDF is an image-only PDF, so it seems it should not be a complicated PDF inside.
==============================
The latest version of PDF2Image SDK can convert your PDF file to image file without any problem, please download the latest version of PDF2Image SDK from our website to try by yourself,

http://www.globalpdf.com/pdf2tif/pdf2image_sdk_trial.zip

you can download the converted TIFF files from following web URL for checking,

XXXXXXXXXXXXXX

also, the latest version of PDF2Image SDK does contain a PDF2ImageCOM.exe, this is a COM interface to pdf2image.dll library, after you register the PDF2ImageCOM.exe file, you can call it from both 32bit and 64bit EXE or script applications, please refer to following web page to study how to call PDF2ImageCOM.exe from 64bit applications,

Call PDF To Image Converter COM Component v2.0 from 64bit application

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)
doc to any converter

Need convert doc file to PDF

We need to convert ms word doc or ms doc xml files into PDF using asp.net C#, only via code using kind of DLL.

Please response ASAP for the same.
======================
Please download DOC to Any Converter SDK/COM Version from following web page to try,

http://www.verydoc.com/doc-to-any.html

you can call DOC to Any Converter SDK/COM Version from your C# code to convert office documents to PDF files easily.

VeryPDF
======================
Thanks for your replay,

I downloaded SDK from website but its seem windows application and we need for asp.net C# Web application.

Could you please share such as sample which developed in  asp.net C# environment.

Note: we are not allowed to do any external activity on Our web server, except deploy own folder.

Kindly response ASAP.
======================
Are you looking at doc2any.exe application? If yes, you can call it from your ASP.NET code easily, for example,

Dim doc2pdfProcess As Process = Process.Start("C:\test\doc2any.exe C:\test.doc C:\out.pdf")

If you can't call it from your ASP.NET code properly, it is maybe cause by permission settings,

VeryDOC DOC to Any Converter permission problem

you can also refer to more information at following web page,

https://www.verypdf.com/wordpress/category/doc-to-any-converter

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)
advanced pdf tools

Question on fields array in Interactive PDF Form Dictionary

We have an additional question on the tools we purchased from you:

We create PDF forms with (interactive) text and signature fields. The /fields array in the Interactive Form Dictionary of a PDF file lists all text and signature fields of a PDF document. The order of this list of fields in the /fields array controls the order for browsing through the text and signature fields (e.g. in Adobe Reader or Acrobat Professional).

We are using different tools from you during our creation process of PDF files:
- Merge (PDF Editor Toolkit Pro)
- PDFFontDelDup with -repair option
- PDFFontDeldup
- PDFFontSubSet
- PDFCompression
- PDFSecurity
- ConvertPDF2PDFA

It seems that after the merge process the field order remains as defined by the PDF input files in their subsequent order.
It seems that after "PDFFontDelDup - repair" the order of the list of fields in the /fields array gets rearranged.

Therefore it is not possible for us to define a specific order for the signature and text fields, because this defined order gets lost in "PDFFontDelDup -repair". Could you please tell us if it might be possible to keep the originally defined sort order of text and signature fields in the "PDFFontDelDup -repair" function?

Could you please tell us if the other tools might have impact on the sort order of the list of fields in the /fields array, too?

Do we have to renew the Gold Support Plan to get these questions answered or is this possible within the regular support?

Thank you very much and best regards,
==============================
Thanks for your message, we don't very understand your meaning for "the order of the list of fields in the /fields array gets rearranged", can you please email to us two sample PDF files for checking? One is before "PDFFontDelDup -repair" and another is after "PDFFontDelDup -repair" processing, after we understand your problem completely, we will figure out a solution to you shortly.

VeryPDF
==============================
Please find attached our example (Created for VeryPDF):

"After Merge.pdf" is the document in the status after merging and before using "PDFFontDelDup - repair"
"After DelDup.pdf" is the document after "PDFFontDelDup -repair"

Please note the following:
"After Merge.pdf": "/Fields [542 0 R 540 0 R 538 0 R 536 0 R 534 0 R 532 0 R 529 0 R 526 0 R 524 0 R 522 0 R 504 0 R 502 0 R 500 0 R 498 0 R 496 0 R 494 0 R 492 0 ..."
"After DelDup.pdf": "/Fields [41 0 R 43 0 R 45 0 R 47 0 R 49 0 R 51 0 R 53 0 R 59 0 R 61 0 R 63 0 R 65 0 R 67 0 R 69 0 R 71 0 R 73 0 R 75 0 R 77 0 R 79 0 R 81 0 R 83 0... "

Thank you very much for your support,
===========================================
Thanks for your message, we have checked your PDF files carefully, because "-repair" function will lookup all form fields in PDF file, from first obj to last obj, it will reconstruct /Fields array automatically, this is the reason why the order list in /Fields array be changed.

Also, we have added some new items into the /Fields array, such as "989 0 R", "991 0 R" and others,

/Fields [41 0 R 43 0 R 45 0 R ...... ...... 542 0 R 989 0 R 991 0 R 993 0 R 995 0 R 997 0 R 999 0 R 1001 0 R 1004 0 R 1009 0 R 1011 0 R 1013 0 R 1015 0 R 1017 0 R 1019 0 R 1021 0 R 1023 0 R 1025 0 R 1027 0 R 1029 0 R 1031 0 R 1033 0 R 1035 0 R 1037 0 R 1039 0 R 1041 0 R 1043 0 R 1045 0 R 1047 0 R 1049 0 R 1051 0 R 1053 0 R 1055 0 R 1057 0 R 1059 0 R 1061 0 R 1063 0 R 1065 0 R 1083 0 R 1085 0 R 1087 0 R 1090 0 R 1093 0 R 1095 0 R 1097 0 R 1099 0 R 1101 0 R 1103 0 R]

If you still prefer to keep the order in /Fields array, we will develop this function to you.

VeryPDF
===========================================
Thank you very much for your message!

Could you please check whether the other components from VeryPDF, that we use in our PDF development process, might have any impact on the order of the fields in the /Fields array, too:

- Merge (PDF Editor Toolkit Pro)
- PDFFontDeldup
- PDFFontSubSet
- PDFCompression
- PDFSecurity
- ConvertPDF2PDFA

We just want to be sure that the enhancement to PDFFontDelDup solves the topic and that we do not have to update other tools, too.

Thank you very much and best regards,
===========================================
Thanks for your message.

yes, these components are all developed by VeryPDF, we sure the new module will not impact to these components, please don't worry about this matter.

>>We just want to be sure that the enhancement to PDFFontDelDup solves the topic and that we do not have to update other tools, too.
>>- Merge (PDF Editor Toolkit Pro)
>>- PDFFontDeldup
>>- PDFFontSubSet
>>- PDFCompression
>>- PDFSecurity
>>- ConvertPDF2PDFA

I can't give you an exact answer at the moment, because this matter is depend on your process function, if your function will read the PDF file only after "PDFFontDelDup" module, we sure this change will solve this problem to you, however, if your function will not read the PDF forms immediately after "PDFFontDelDup" module, your function will read PDF forms after "ConvertPDF2PDFA" module, the form array order may be changed in the "ConvertPDF2PDFA" module, 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)
pdfstamp command line

Question about PDF Stamper Command Line page range option

We are evaluating PDF tools for an initiative my organization is undertaking, and am testing yours now.  It’s performing well so far but there is one particular thing I need to determine regarding the page range argument.

I know that I can specify multiple -AT calls (a header at the top and one at the bottom, for example), but when I use a page range value it seems to govern all -AT calls, so that both the top and the bottom stamps appear on all pages within that range.

If I want is to have a top center stamp on page 1 and a bottom center stamp on the other pages, can I do this?   If so, what is the syntax?
=============================
I have not heard from you, but I have bought a personal license.  Still determining whether I will recommend a developer license.

Regarding my question below, I am assuming it has to be done in a loop, each file requiring two separate lines in a bat file.  Am I right, or is there a way to do it in one line?

Another question:  I cannot get opacity values to work for text stamps.  It is opaque, regardless of what I do.  Below is an example that does not yield transparency.  Do you see an error?

pdfstamp.exe -PDF "100-XX_STAMPED.pdf" -AT "Footer" -fs12 -p6 -c#ff5555 -FT "Verdana" -mtb-30 -SR -S2 -E3 -opacity50

Appreciate your help on this, as we are on fast track to make a decision.
=============================

1). You need use two command lines to add the stamps to PDF file, you can't put them into one command line.

2). Please run following command line to get opacity option to work, this command line will work fine to you,

pdfstamp.exe -PDF "100-XX_STAMPED.pdf" -AT "Footer" -fs12 -p6 -c#ff5555 -FT "Verdana" -opacity50 -mtb-30 -SR -S2 -E3

VeryPDF
=============================
Yes, thanks, this works.  Another question:

How do I specify a page range of 2 to last page, where number of pages varies from book to book?
==============================
You can use following command line to specify a page range from 2 to last page,

pdfstamp.exe -PDF "example.pdf" -o "15.pdf" -AI "logo.jpg" -p2 -r-45 -mlr80 -mtb200 -w300 -h300 -l -S2

you can use "-S2" to specify the first page of 2, and without use "-E" parameter to specify maximum page.

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)