html converter (htmltools)

Problem with bwidth parameter (HTMLTools.exe)

We are currently evaluating your HTMLTools.exe commandline tool for use in our server product. We plan to convert html pages on-the-fly to pdf files.

However, we are having a very basic issue with the product. Whatever we specify with the -width or -bwidth parameter, the output does look the same. We use the htm2pdf2 switch for the new rendering.

How can we control the virtual browser window width used for rendering the page ? Let's say the converter shall use a virtual 1280 pixel screen to render the html page. What would the command line look like ?

Your help is greatly appreciated.
====================================
-htm2pdf2 switch will ignore the -bwidth and -bheight parameters, if you need use -bwidth and -bheight parameters , you may remove the -htm2pdf2 parameter to try again.

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

Thanks for the quick reply.

We got it to work with the -widht and -height params and htm2pdf2.

We have another question: We are migrating from htmldoc.org converter, where we had a conditional linebreak command.  It worked like your embedded linebreak command (with a "magic word") but with an additional parameter to specify, how much room woul be needed to avoid the linebreak.  Example: <!--LINEBREAK-150--> would mean: If there at least another 150 units free of space on this page, do NOT perform a line break, otherwise DO perform a linebreak).

Do you see any possiblity to add this command to your product ? We could not live without that functionality and maybe other customers too.

Your feedback is greatly appreciated.
================================
>>We got it to work with the -width and -height params and htm2pdf2.

Yes, -htm2pdf2 does support -width and -height parameters, but -htm2pdf2 doesn't support  -bwidth and -bheight parameters.


Yes, you can insert " magic word " into the HTML file where you want to break into the new page, please refer to the attached HTML file and following command lines,

htmltools.exe -nocenter -playemf2 -width 612 -height 792 -breakpagebytext "Break page at here" "%CD%\test.htm" "%CD%\test_keep_breakpagetext.pdf"

htmltools.exe -nocenter -playemf2 -width 612 -height 792 -delbreakpagetext -breakpagebytext "Break page at here" "%CD%\test.htm" "%CD%\test_delete_breakpagetext.pdf"

you can use -breakpagebytext parameter to break long HTML file to multi-page PDF file automatically.

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)
verypdf blog

call EncrptPDF.exe (command line) from SAP ABAP programming

One of my client has requirement to Encrypt Payslips generated from SAP.


Now we are using concept creating PDF file and sending the same as a attachment to a mail with the help of SAP ABAP programming.

But in ABAP we don't have the facility of adding password to PDF file.

Now we are planning to use EncrptPDF(command line)to get the desired functionality.


We have download trail version of the same and it is working fine.

But we are not able to call this functionality from SAP. We do have different function modules to call external Programs or command from SAP like WS_EXECUTE.

Please let us know if any help available in  this regards.
====================================
You can use following sample code to Calling an Executable Program Using ABAP,

~~~~~~~~~~~~~~~~~~
REPORT  Z_Calling_EXE_Program.

CALL FUNCTION 'GUI_RUN'
EXPORTING
COMMAND          = 'C:\EncryptPDF.exe'
PARAMETER         = '-i c:\sample.pdf -w owner -u user -e 40 -p'.
*   CD               = '
* IMPORTING
*   RETURNCODE       = .
~~~~~~~~~~~~~~~~~~

VeryPDF
====================================
thanks for your help, it is working fine and as expected.

Please let us know if any possibility to use this tool on SAP Application server level, so that we can execute program in the Background for generating payslips.

====================================
Yes, you can call EncryptPDF.exe from SAP Application server level, that's no problem, you can try to do by yourself, if you encounter any problem, please feel free to let us know, we are glad to assist you asap.

VeryPDF
VN:F [1.9.20_1166]
Rating: 7.2/10 (5 votes cast)
VN:F [1.9.20_1166]
Rating: +1 (from 1 vote)
pdf to vector converter, xps to pdf converter

XPS to PDF and PDF to XPS

Trying to make some tests with your technology

Converting form PDF to XPS and the pdf2vec.exe
It runs fine in my windows 7 desktop computer, but fails in Windows Server 2008 R2..
No error message.

Appreciate your help.
===============================================
Information recorded in the eventlog

Faulting application name: pdf2vec.exe, version: 2.5.0.1, time stamp: 0x4bad956b
Faulting module name: pdftoolsdk.dll, version: 2.1.1.1, time stamp: 0x4a44259c
Exception code: 0xc0000005
Fault offset: 0x000f9001
Faulting process id: 0x2ff4
Faulting application start time: 0x01cc3693ae3b12a3
Faulting application path: C:\Users\mlen\Desktop\pdf2vec_cmd\pdf2vec_cmd\pdf2vec.exe
Faulting module path: C:\Users\mlen\Desktop\pdf2vec_cmd\pdf2vec_cmd\pdftoolsdk.dll
Report Id: ec8762af-a286-11e0-a273-00155d013213

===============================================
Please turn off DEP for "pdf2vec.exe" application to try again, please refer to following steps about how to turn off DEP in your system,

1. Click "Start"
2. Select "Control Panel"
3. Select "System"
4. Click the "Advanced" tab
5. In the "Performance" region select "Settings"
6. Click the "Data Execute" tab in the dialog box that opens
7. Select "Turn on DEP for all programs and services except for those I select"
8. Click "Add"
9. The open dialog box will open. Browse and select "pdf2vec.exe" application in your computer,
10. Click "Open"
11. Click "Apply"
12. Click "Ok"
13. Reboot

OK, you can run "pdf2vec.exe" without any problem now, please to try.

VeryPDF
===============================================
Can I run parallel processes or threads in the same machine, converting from pdf to xps?
===============================================

Yes, you can run multiple instances of PDF2Vector on same machine to convert more PDF files to XPS files at same time, that’s no problem.

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

Thanks it work,

Is there any way I can call a DLL directly through .Net C# or I need to convert only through the command line.

Other question: is there  a way to convert from XPS to PDF?

Regards,
======================================
>>Is there any way I can call a DLL directly through .Net C# or I need to convert only through the command line.

You can call "PDF to Vector Converter SDK" from our website to try,

http://www.verydoc.com/pdf2vec_sdk.zip

You can call "PDF to Vector Converter SDK" from C# code easily, please refer to following sample code,

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
using System;
using System.Runtime.InteropServices;

namespace PDF2Vector
{
/// <summary>
/// Summary description for Class1.
/// </summary>
class Class1
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(string[] args)
{
int nRet;
string strCmd;
strCmd = "pdf2vec" & " -$" & " XXXXXXXXXXXXXXXXXXXX"
strCmd = strCmd & " d:\temp\11.pdf"
strCmd = strCmd & " C:\out.swf"
nRet = VeryPDF_PDF2Vector(strCmd);
}
[DllImport("pdf2vec.dll", EntryPoint="VeryPDF_PDF2Vector",  SetLastError=true,
CharSet=CharSet.Ansi, ExactSpelling=true,
CallingConvention=CallingConvention.StdCall)]
public static extern int VeryPDF_PDF2Vector(string strCommandLine);
}
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

You can also refer to detailed C# examples in the pdf2vec_sdk.zip package.


>>Other question: is there  a way to convert from XPS to PDF?

Yes, you can use our XPS to PDF Converter Command Line to convert XPS file to PDF file, XPS to PDF Converter Command Line can be downloaded from following web page,

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

VeryPDF
======================================
I was testing verydoc. I have some questions.

Do it can't detect Japanese or Chinese fonts?. When I use a pdf with ckj languages, it only brings me images.

There is another things. When I open multiple instances of the app. It opens splwow64.exe too, and I would think it close when the app close, but it didn't.
======================================

>>Do it can't detect Japanese or Chinese fonts?. When I use a pdf with ckj languages, it only brings me images.

XPS to PDF doesn't support Japanese and Chinese fonts in the current version, we are planning support CJK languages in the future releases.


>>There is another things. When I open multiple instances of the app. It
>>opens splwow64.exe too, and I would think it close when the app close, but it didn't.

splwow64.exe is controlled by Windows system, it is not launched by our XPS to PDF Converter, we can do nothing to splwow64.exe, please understand.

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 print, pdfstamp command line

Is it possible to print a pdf file (adding a text) directly on a printer by pdf stamp?

I’m trying PDF Stamp comman line. I have a question :

Is it possible to print a pdf file (adding a text) directly on a printer ? ( not create another pdf file)

I mean a command like this :

pdfstamp -PDF "example.pdf" -AT “www.verypdf.com\n Demo “ -print

I would like to add text to the file "example.pdf" and print the document directly (not create another pdf file)
=================================
Please download PDFPrint Command Line from following web page to try, you can use PDFPrint Command Line to print your PDF file easily,

https://www.verypdf.com/pdfprint/index.html#dl

for example,

pdfprint.exe -wtext "Watermark" C:\input.pdf

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

line width and text string length in PDF Stamp command line product

I'm currently trying PDFStamp CommandLine version. The goal is to put a text barring the page in full diagonal.
The text should be passed as "variable" if possible in a batch file, to automatically process the files and customize them for every reader in a list.
I'm limited by the line width. I feel that the width correspond to the one of a horizontal line, wich is rotated. So is there a way to have a longer width corresponding to the diagonal length?
Thank you very much,
================================
Thanks for your messag,e you can use “-lw” parameter to set the line width to line stamp, for example,

pdfstamp.exe -pdf example.pdf -o stamp-line1.pdf -al -lineex 100,100,200,200 -LW10 -C#FF0000

pdfstamp.exe -pdf example.pdf -o stamp-line2.pdf -AL -LW30 -opacity30 -LINEEX 100,100,200,200 -C#00FF00

VeryPDF
================================
Thank you for the answer,
but probably did I poorly explain the problem.
The "-lw" is not intended to work with text line, only graphics. I would like to increase the text length that I would like to put on a diagonal.
For instance, if I use
pdfstamp.exe -PDF test1.pdf -O test1STAMP.pdf -AT "This is my text in diagonal and I can extend it as much as I want and up to the full diagonal of my page" -P7 -R55 -OPACITY40
I cannot actually write on the full diagonal but only about half the diagonal, wich correspond to the horizontal length of my page. So I get two lines that do not fill the diagonal.
================================
We apologize for any inconvenience this may have caused to you, we are understand your problem completely now.

Yes, this is a problem in the current version of PDFStamp Command Line product, the current version of PDFStamp Command Line product can’t calculate the length of rotated text string correctly, so it will swap the text string automatically. This is a minor problem, after you purchased the PDFStamp Command Line product, please email to us your Order ID, we will ask our engineer to work on this problem and provide a new version to you shortly.

VeryPDF
================================
By the way, do you intend to allow .eps files to be processed as images? Or directly a .pdf page that could be defined as layer and automatically put into the file?
.eps files should be more "Adobe compliant" than .png or .tiff for the resulting .pdf and also more easily processed by the machine afterwards.

================================
Sorry, PDFStamp Command Line doesn't support EPS and PDF formats as stamp, however, we have a solution to support EPS and PDF formats as stamp, we will send an email for the details to you shortly.

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)