pdf to image converter

memory leak problem with your PDF to Image Converter SDK

Hello,

We have encountered a significant memory leak with your SDK.  Please let us know if this is something you can fix (and if so, when) – if not then we will have to design around it.

Thanks.

The Memory leak issue

The virtual memory size information available in the windows task manager is used to check for a possible memory leak.

Two test functions were used:

1. RasterizeNoThread()
This function is a loop that calls PDFToImageConverter function repeatedly. Monitoring the PVM shows no increase in the VM size.

2. Rasterize()
This function uses the _beginthread function. Monitoring the PVM shows a continuous increase in the VM size after the application has allocated all the memory it needs. This indicates a memory leak.


I have attached a PDF file in addition to test functions.
==================================
We haven't a new version of PDF2Image SDK product at the moment, we will try to solve this problem in the future releases, at the moment, we suggest you may by following steps to solve this memory leak problem,

1. You can write a standalone EXE Command Line application to call the PDF2Image SDK to convert PDF files to Image files,
2. Call this Command Line EXE application from your main application,
3. OK.

Because EXE process will release its memory after it exit from Windows, so this solution will solve the memory leak problem completely, we hoping this solution will useful to 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)
pdf to vector converter

Italic fonts in printed PCL file

the problem is that the we need to send to a PCL printer, and the printout is showing an italic font. Or how would you explain the difference between emf and pcl?
============================
How do you print the EMF file to Windows Printer? Can you print your PCL file to Windows Printer correctly by following steps?

1. Open EMF file in Windows Image Viewer application,
2. Print it to Windows Printer by manual,
3. Finished the printing.

Can you see non-Italic fonts in printout document?

Please look at attached XPS file, this XPS file was printed from EMF file, as you see, this XPS file doesn't contain non-Italic fonts.

Can you please double check the printing procedure? Maybe this problem is caused by your printing 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

ReportError: The RPC server is unavailable

In the process of evaluating your product I received the error shown in the screenshot below stating “ReportError: The RPC server is unavailable”. I’ve attached the files what I was testing with and the batch file I was using. Could this error occur because the “TEST SS.xlsx” file had some cells that reference the seconds file “TEST Linking.xlsx”? I assume your product supports this right? If not, then I don’t think your product will suit my needs. I look forward to your response as your products seems to do what I want with the exception of this error and not giving me any results so far.
==================================
I tried this again just to be sure and this time I got the following error with no image produced:

You have 293 time to evaluate this product, you may purchase a full version from https://www.verypdf.com.
Processing 1 of 1 sheets, sheet name is 'ss'...
Conversion time = 17206ms
C:\Users\Justin\Desktop\Test SS.xlsx ==> C:\Users\Justin\Desktop\Test Banners-Panels.jpg, result=ERROR
TickCount = 17206ms(17.21s), Result = 0
==================================
Please run following command line to try again, can you convert your XLSX file to JPEG files correctly by following command line?

Doc2any.exe -debug -useprinter -useoffice 1 C:\test.xlsx C:\out.jpg

VeryPDF
==================================
I got basically the same results.


C:\DOWNLOADS\XLS\doc2any_cmd\doc2any_cmd>doc2any.exe -debug -useoffice 1 "C:\Users\Justin\Desktop\Test Banners-Panels.xlsx" "C:\Users\Justin\Desktop\T
est.jpg"
Check license information...
You have 273 time to evaluate this product, you may purchase a full version from https://www.verypdf.com.
Check utility functions...
Start the conversion...
C:\Users\Justin\Desktop\Test Banners-Panels.xlsx ==> C:\Users\Justin\Desktop\Test.jpg
Convert Excel document by MS Office or OpenOffice application...
Convert Excel to metafile (2).
Processing 1 of 5 sheets, sheet name is 'Safety 10 mins'...
Processing 2 of 5 sheets, sheet name is 'Quality 10 mins'...
Processing 3 of 5 sheets, sheet name is 'ss'...
Processing 4 of 5 sheets, sheet name is 'Safety Panel'...
Processing 5 of 5 sheets, sheet name is 'Quality Panel'...
ReportError: The RPC server is unavailable.


abnormal program termination

C:\DOWNLOADS\XLS\doc2any_cmd\doc2any_cmd>
==================================
I would make sure that your RPC (Remote Procedure Call) server is running.  Right click "My Computer"->"Manage" and go to the services section.  You can start/stop "Remote Procedure Call" service from here.  You can also right click and select Properties.... and see the Dependencies of the service.

After the "Remote Procedure Call" service is running, the "The RPC server is unavailable." Problem will be solved automatically.

You can found more solutions about " The RPC server is unavailable." On google,

http://www.google.com/search?hl=en&source=hp&q=The+RPC+server+is+unavailable

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, pdf to vector converter

Convert a Word Doc file to an EMF file

We are looking for a program that converts a Word Doc file to an EMF file.  I have attached a copy of a tax form as a sample.  Could you please send me a converted EMF file so I can look at your output?  Thanks.

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

Please download converted EMF files from following URL,

XXXXXXXXXXXXXXXXXXXXX

these EMF files were converted by following two command lines,

doc2any.exe D:\temp4\Form1040.doc D:\temp4\Form1040.pdf

pdf2vec.exe D:\temp4\Form1040.pdf D:\temp4\Form1040.emf

you can use DOC to Any converter to convert your DOC file to PDF file first,

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

and use PDF to Vector to convert PDF file to EMF file again,

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)
pdf form filler, verypdf blog

Suppprt Barcode Generation in PDF Form Filler SDK product

#ifndef __PDFFORMFUNC_H__
#define __PDFFORMFUNC_H__

#include <windows.h>

#ifdef __cplusplus
extern "C" {
#endif

#define EXTERN __declspec(dllexport)

//PDFForm_SetLicenseKey
//Parameters:
//  lpLicenseKey: a License Key which issued by VeryPDF
EXTERN void WINAPI PDFForm_SetLicenseKey(LPCTSTR lpLicenseKey);

//PDFForm_MergeFDFIntoPDF
//  Merge FDF file into an existing PDF file and generate a new filled PDF file.
//Parameters:
//  lpInPDF: input PDF file
//  lpInFDF: input FDF file
//  lpOutPDF: merged PDF file
//Return value:
//  TRUE is success, FALSE is fail
EXTERN BOOL WINAPI PDFForm_MergeFDFIntoPDF(LPCTSTR lpInPDF, LPCTSTR lpInFDF, LPCTSTR lpOutPDF);
EXTERN BOOL WINAPI PDFForm_MergeXFDFIntoPDF(LPCTSTR lpInPDF, LPCTSTR lpInFDF, LPCTSTR lpOutPDF);

//PDFForm_ExtractFDFFromPDF
//  Extract FDF file from a filled PDF file.
//Parameters:
//  lpInPDF: input PDF file
//  lpOutFDF: output FDF file
//Return value:
//  TRUE is success, FALSE is fail
EXTERN BOOL WINAPI PDFForm_ExtractFDFFromPDF(LPCTSTR lpInPDF, LPCTSTR lpOutFDF);
//PDFForm_FlattenPDF
//  Flatten a form filled PDF file
//Parameters:
//  lpInPDF: input PDF file
//  lpOutPDF: output PDF file
//Return value:
//  TRUE is success, FALSE is fail
EXTERN BOOL WINAPI PDFForm_FlattenPDF(LPCTSTR lpInPDF, LPCTSTR lpOutPDF);

//PDFForm_EncryptPDF
//  Encrypt a PDF file.
//Parameters:
//  lpInPDF: input PDF file
//  lpUserPwd: user password
//  lpOwnerPwd: owner password
//  lpPermissions: permissions, it can be following values,
//     Printing // top quality printing
//     ModifyContents = ModifyContents | Assembly
//     Copy = Copy | ScreenReaders
//     ModifyAnnotations = ModifyAnnotations | FillIn
//     FillIn
//     ScreenReaders
//     Assembly
//     DegradedPrinting
//  nKeyLen: 128 or 40 bits
//  lpOutPDF: output PDF file
//Return value:
//  TRUE is success, FALSE is fail
EXTERN BOOL WINAPI PDFForm_EncryptPDF(LPCTSTR lpInPDF, LPCTSTR lpUserPwd, LPCTSTR lpOwnerPwd, LPCTSTR lpPermissions,
int nKeyLen, LPCTSTR lpOutPDF);

//PDFForm_Alloc
//Return value:
// 0 is an error, other values are valid ID.
EXTERN long WINAPI PDFForm_Alloc();
//PDFForm_Free
//Parameters:
//  id: a valid ID returned by PDFForm_Alloc() function
//
//Return value:
//  0 is success, other values are indicate an error
EXTERN long WINAPI PDFForm_Free(long id);

//PDFForm_SetTextField
//Parameters:
//  id: a valid ID returned by PDFForm_Alloc() function
//  lpFieldName: form field name
//  lpFieldValue: form field value
//
//Return value:
//  if return value less than zero, it is indicate an error,
//  if return value large than zero, it is the number of form fields in the list
EXTERN long WINAPI PDFForm_SetTextField(long id, LPCTSTR lpFieldName, LPCTSTR lpFieldValue);

//PDFForm_SetCheckBox
//Parameters:
//  id: a valid ID returned by PDFForm_Alloc() function
//  lpFieldName: form field name
//  lpFieldValue: form field value
//
//Return value:
//  if return value less than zero, it is indicate an error,
//  if return value large than zero, it is the number of form fields in the list
EXTERN long WINAPI PDFForm_SetCheckBox(long id, LPCTSTR lpFieldName, LPCTSTR lpFieldValue);

//PDFForm_Apply
//Parameters:
//  id: a valid ID returned by PDFForm_Alloc() function
//  lpInFile: input PDF file
//  lpOutFile: output PDF file
//  bFlatten: make the output file flatten or not
//
//Return value:
//  0 is success, other values are indicate an error
//  -6: create FDF file error
//  -7: import form data into PDF file error
//  -8: flatten filled PDF file error
EXTERN long WINAPI PDFForm_Apply(long id, LPCTSTR lpInFile, LPCTSTR lpOutFile, LONG bFlatten);

//PDFForm_ClearFields
//Parameters:
//  id: a valid ID returned by PDFForm_Alloc() function
//
//Return value:
//  0 is success, other values are indicate an error
EXTERN long WINAPI PDFForm_ClearFields(long id);

//PDFForm_RepairFormFonts
//Repair fonts layout in PDF forms
//Parameters:
//  lpInPDF: input PDF file
//  lpOutFDF: output FDF file
//Return value:
//  TRUE is success, FALSE is fail
EXTERN BOOL WINAPI PDFForm_RepairFormFonts(LPCTSTR lpInPDF, LPCTSTR lpOutPDF);
//PDFForm_InsertDataMatrixImageIntoPDF
//Insert DataMatrix Image Into PDF file
//Parameters:
//  lpInPDF: input PDF file
//  lpOutFDF: output FDF file
//  lpFormName: DataMatrix form name
//  lpBarcodeText: Barcode text
//Return value:
//  TRUE is success, FALSE is fail
//
//int bRet = PDFForm_InsertDataMatrixImageIntoPDF("C:\\test.pdf", "C:\\out.pdf", "Datamatrix", "01034009377771791712073110BXBWWW22");
EXTERN BOOL WINAPI PDFForm_InsertDataMatrixImageIntoPDF(LPCTSTR lpInFile, LPCTSTR lpOutFile, LPCTSTR lpFormName, LPCTSTR lpBarcodeText);

//PDFForm_InsertBarcodeIntoPDF
//Insert Barcode into PDF file
//Parameters:
//  lpInPDF: input PDF file
//  lpOutFDF: output FDF file
//  lpFormName: Barcode form name
//  lpFormType: Barcode type, lpFormType supports following CodeType:
//   private enum CodeType
//   {
//    Code128,
//    Code39,
//    Codabar,
//    Datamatrix,
//    EAN,
//    Inter25,
//    PDF417,
//    Postnet
//   }
//  lpFormValue: Barcode text
//Return value:
//  TRUE is success, FALSE is fail
//
EXTERN BOOL WINAPI PDFForm_InsertBarcodeIntoPDF(LPCTSTR lpInFile, LPCTSTR lpOutFile, LPCTSTR lpFormName, LPCTSTR lpFormType, LPCTSTR lpFormValue);

//PDFForm_InsertBarcodeIntoPDF2
//Insert Barcode into PDF file
//Parameters:
//  lpInPDF: input PDF file
//  lpOutFDF: output FDF file
//  lpFormValues: Parameters FieldIdBarcode, TypeBarcode, FieldValueBarcode as a string-list (separated by for example newline).
//   Then we would do ONE call instead of n-times calling the proc with
//   the n as the number of special fields
//  Barcode type supports following CodeType:
//   private enum CodeType
//   {
//    Code128,
//    Code39,
//    Codabar,
//    Datamatrix,
//    EAN,
//    Inter25,
//    PDF417,
//    Postnet
//   }
//Return value:
//  TRUE is success, FALSE is fail
//
//e.g.,
//
//string strFormValues;
//strFormValues += "BarCode1[0]=>Code128=>1234567890";
//strFormValues += "\n";
//strFormValues += "BarCode2[0]=>Code39=>1234567890";
//strFormValues += "\n";
//strFormValues += "BarCode3[0]=>Codabar=>A1234567890A";
//PDFForm_InsertBarcodeIntoPDF2("C:\\test.pdf", "C:\\out.pdf", strFormValues.c_str());
//
EXTERN BOOL WINAPI PDFForm_InsertBarcodeIntoPDF2(LPCTSTR lpInFile, LPCTSTR lpOutFile, LPCTSTR lpFormValues);

#ifdef __cplusplus
}
#endif

#endif

//Example code 1:

#include <windows.h>
#include "../vc++/pdfformfunc.h"
#include <io.h>
#include <stdio.h>

void GetModulePath(char *out_path,char *in_name)
{
char *p;
GetModuleFileName(NULL,out_path,256);
p =strrchr(out_path,'\\');
p[1]=0;
strcat(out_path,in_name);
}

void main(int argc, char *argv[])
{
char szBarcodeTemp[MAX_PATH];
GetModulePath(szBarcodeTemp, "Barcode-temp.pdf");
char szBarcodeNew[MAX_PATH];
GetModulePath(szBarcodeNew, "_Barcode-out.pdf");
CopyFile(szBarcodeTemp, szBarcodeNew, FALSE);

BOOL bRet = FALSE;
PDFForm_SetLicenseKey("XXXXXXXXXXXXXXXXXXXXX");
bRet = PDFForm_InsertBarcodeIntoPDF(szBarcodeNew, szBarcodeNew, "BarCode1[0]", "Code128", "1234567890");
bRet = PDFForm_InsertBarcodeIntoPDF(szBarcodeNew, szBarcodeNew, "BarCode2[0]", "Code39", "1234567890");
bRet = PDFForm_InsertBarcodeIntoPDF(szBarcodeNew, szBarcodeNew, "BarCode3[0]", "Codabar", "A1234567890A");
bRet = PDFForm_InsertBarcodeIntoPDF(szBarcodeNew, szBarcodeNew, "BarCode4[0]", "Datamatrix", "01034009377771791712073110BXBWWW22");
bRet = PDFForm_InsertBarcodeIntoPDF(szBarcodeNew, szBarcodeNew, "BarCode5[0]", "EAN", "01234567890100");
bRet = PDFForm_InsertBarcodeIntoPDF(szBarcodeNew, szBarcodeNew, "BarCode6[0]", "Inter25", "123456789");
bRet = PDFForm_InsertBarcodeIntoPDF(szBarcodeNew, szBarcodeNew, "BarCode7[0]", "PDF417", "1234567890");
bRet = PDFForm_InsertBarcodeIntoPDF(szBarcodeNew, szBarcodeNew, "BarCode8[0]", "Postnet", "1234567890");
printf("Return value is: %d\n", bRet);
return;
}

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

Example code 2:

#include <windows.h>
#include "../vc++/pdfformfunc.h"
#include <io.h>
#include <stdio.h>
#include <string>
using namespace std;

void GetModulePath(char *out_path,char *in_name)
{
char *p;
GetModuleFileName(NULL,out_path,256);
p =strrchr(out_path,'\\');
p[1]=0;
strcat(out_path,in_name);
}

void main(int argc, char *argv[])
{
char szBarcodeTemp[MAX_PATH];
GetModulePath(szBarcodeTemp, "Barcode-temp.pdf");
char szBarcodeNew[MAX_PATH];
GetModulePath(szBarcodeNew, "_Barcode-out2.pdf");

BOOL bRet = FALSE;
PDFForm_SetLicenseKey("XXXXXXXXXXXXXXXXXXXXX");

string strFormValues;
strFormValues += "BarCode1[0]=>Code128=>1234567890";
strFormValues += "\n";
strFormValues += "BarCode2[0]=>Code39=>1234567890";
strFormValues += "\n";
strFormValues += "BarCode3[0]=>Codabar=>A1234567890A";
strFormValues += "\n";
strFormValues += "BarCode4[0]=>Datamatrix=>01034009377771791712073110BXBWWW22";
strFormValues += "\n";
strFormValues += "BarCode5[0]=>EAN=>01234567890100";
strFormValues += "\n";
strFormValues += "BarCode6[0]=>Inter25=>123456789";
strFormValues += "\n";
strFormValues += "BarCode7[0]=>PDF417=>1234567890";
strFormValues += "\n";
strFormValues += "BarCode8[0]=>Postnet=>1234567890";
bRet = PDFForm_InsertBarcodeIntoPDF2(szBarcodeTemp, szBarcodeNew, strFormValues.c_str());

printf("Return value is: %d\n", bRet);
return;
}
============================================

I tried the new dll but had a problem to call the function, although I do exactly the same (I think so)
as I did with using BarcodeIntoPDF when I got it in the first release.
In the document I screenshoted the message and the .dll and .lib version info. I think PDFFom.dll / PDFform.lib are the only changed files ?!

And that is the .NET-program-source I'm using.
================================
Sorry for the mistake, the new pdfform.dll file does contain “_PDFForm_InsertBarcodeIntoPDF2@12” function name, this is wrong, we have corrected this problem in the new pdfform.dll file just now, please download new DLL file from following URL to try again,

XXXXXXXXXXXXXXXX

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)