PDF to Text Converter

Error Codes for PDF2TXTEx function and does PDF2TXTEx function working in blocking mode?

Hello! I’m, looking for a documentation to this library for version 3.0.0.2.
The main 2 questions I’ve not found in readme.txt are
* Is PDF2TXTEx() working in blocking mode? I mean execution is passed back to caller after PDF2TXTEx() call only when output is finished?
* Where can I find a list of result codes for PDF2TXTEx() function?

http://www.verypdf.com/app/pdf-to-txt-converter/try-and-buy.html#buy-com
http://www.verypdf.com/app/pdf-to-txt-converter/index.html

Customer
————————————–

image
>>* Is PDF2TXTEx() working in blocking mode? I mean execution is passed back to caller after PDF2TXTEx() call only when output is finished?

Yes, PDF2TXTEx() is working in blocking mode, this function will not return until the conversion be done completely.

>>* Where can I find a list of result codes for PDF2TXTEx() function?

Please find the result codes for PDF2TXTEx() function at below,

//////////////////////////////////////////////
//int __stdcall PDF2TXTEx(LPCTSTR lpPDFName, LPCTSTR lpTXTName,int nFirstPage,
//        int nLastPage, LPCTSTR ownerPWD,LPCTSTR userPWD);
//Description:
//        This function will convert PDF file to text file with some special options
//
//Parameters:
//        lpPDFName  : set the PDF file name
//        lpTXTName  : set output text file name
//        nFirstPage : first page to convert
//        nLastPage  : last page to convert
//        ownerPWD   : owner password (for encrypted files)
//        userPWD    : user password (for encrypted files)
//
//Return values:
//         0: – Success not found any problem.
//         1: – Couldn’t open PDF file, this PDF file maybe contains an open password or be damaged
//         2: – Couldn’t open output text file
//        10: – Success with found some embed fonts.
//        11: – Success with have only embed fonts in PDF file.
//        12: – Fail with empty text file such as this PDF is picture scan or PDF have only picture.
//        -1: – Fail with other causes (can not convert to text file)  such as found exception, time out, not enough memory.
//////////////////////////////////////////////       

VeryPDF

See Also:

PDF to Text, PDF to Excel, PDF to CSV, PDF to Table, etc. products on VeryUtils Platform:
https://veryutils.com/search?search=pdf%20to%20text

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 Text Replacer

pdftr.exe commercial license, background color does not extend to end of overlain or replaced text, you can use "-overlaybgwidth" and "-overlaybgheight" options to adjust the width and height to the background color block

Hello:

Detail are in attached text file along with sample command line used to produce pdf.

pdftr.exe -contentreplace “7094-054=>28580-004” -overlaytextfontsize 150% -overlaybgcolor 09F0F9 -overlaytextcolor 000000 T:\copyCovers\pdfOut\28580\28580-004.pdf T:\copyCovers\pdfOut\28580\tempworkspace\28580-001.pdf

This is the command line copied from debugger athat is fed to a shell command and was used to produce the attached pdf.
Behaviour and results are the same when this command line is paste into command prompt instead of being passed to shell by executable

The fontsize arg was added to compensate for the bgcolor issues in email that our the real issue attempting to solve ourselves we have tried both -searchandoverlaytext and -contentreplace originally using default color args and now specified hex colors.

Used in production on my dev machine several hundred pdfs printed useable but problematic all with same 2 issues in subject line. This is Windows 10 but if resolved on test/dev box factory floor runs both Win 7 and 10.

Executable that shells to pdftr is old vb6 program that calls your app, but We see no difference between running program produced command lines via shelling or pasting same into a command line prompt, Pdfs produced over past 10 years from jpegs assembled by MS publisher automation.

Thank you
Customer
—————————————–
We have added a new parameter of “-overlaybgwidth” in the new version to you, please download the new version from this URL,

http://www.verypdf.com/app/pdf-text-replacer/try-and-buy.html#buy-cmd
http://www.verypdf.com/dl2.php/pdftextreplacer_cmd.zip

after you download it, you can run following command line to replace the text in your PDF file properly,

pdftr.exe -contentreplace “28580<AD>004=>XXXXX-XXX” -overlaytextfontsize 150% -overlaybgwidth 140% -overlaybgcolor FF0000 -overlaytextcolor 0000FF D:\downloads\28580_004.pdf D:\downloads\28580_004-2.pdf

image

You can use “-overlaybgwidth” and “-overlaybgheight” options to control the width and height of background color block easily.

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

Advanced PDF Tools cannot change Created Date and ModifyDate files

I bought the tool to change the metadata information of my pdf files. But in the summary tab when I change Title, CreateDate, ModifyDate or others fields and change it, the new document doesn’t have the information required.

When I used the trial version, it Works, but with the final version doesn’t.

P.D. My Windows, and pdf tools are in spanish.

Can you Help me?

Customer
————————————–
Thanks for your message, please look at following web page, we hope the information on this web page will useful to you,

http://www.verypdf.com/pdfinfoeditor/pdf-date-format.htm

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 Viewer OCX, VeryPDF SDK & COM

Android / React Native PDF Viewer and PDF Annotation SDK

Hi,

We’re looking for an SDK that can help us with Android / React Native PDF capabilities such as annotations, a good reading experience. We’re basically trying to build an ebook app.

Would love to tie up with you.
Customer
—————————-
Thanks for your message, we have an Android PDF Viewer Application, we are also provide the Source Code License for this Android PDF Viewer, but this PDF Viewer application hasn’t annotation function yet, if you need it, you could download the trial version or purchase it from this web page, after you buy its source code license, you can add the PDF annotation functions into this project by yourself,

https://veryutils.com/app-game-templates-source-codes/android-app-templates-source-codes/pdf-reader-for-android-source-code

image

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 Editor, VeryPDF SDK & COM

How to hide File Open, Save, Print and Email buttons in the PDF Annotation / PDF Editor OCX Control?

Hi All,

I have a few questions regarding the PDF Viewer. We need to hide the file open, save, print and email buttons in the control. I see the following index of controls in your toolbars.pdf document.

But, when using the OCX control MainToolbarDeleteButton method, the indexes of the buttons don’t seem to match up. I would assume that the indexes of 0-4 would hide the first four buttons but instead, it hides the Open, Print, Spacer, and annotation edit buttons.

image

// Open button
ocx.MainToolbarDeleteButton(0);

// Print button
ocx.MainToolbarDeleteButton(1);

// First spacer bar
ocx.MainToolbarDeleteButton(2);

// Edit annotation button
ocx.MainToolbarDeleteButton(3);

Is there an updated index or is this a trial version issue?

Second, we are looking for a PDF viewer that can do annotations. I have been testing your PDF Annotator SDK. Is the free trial the latest version that you have available? Reason being, when I view a document that has highlighted annotations, your viewer seems to block the text. Let me show some examples:

image

Here is the same highlight annotation in Adobe Reader:

Is this something that has been addressed?

Thanks,
Software Developer
——————————————-
Thanks for your message, “MainToolbarDeleteButton” will delete the buttons and also change the index to the buttons, we suggest you may use “MainToolbarHideButton” method to instead of “MainToolbarDeleteButton“, the “MainToolbarHideButton” method just to hide the buttons instead of delete them, for example,

ocx.MainToolbarHideButton(ID_TOOLBAR_SAVE,TRUE);
ocx.MainToolbarHideButton(ID_TOOLBAR_EMAIL,TRUE);
ocx.MainToolbarHideButton(ID_TOOLBAR_CONTENT,TRUE);
ocx.MainToolbarHideButton(ID_TOOLBAR_CONTENT_TEXT,TRUE);
ocx.MainToolbarHideButton(ID_TOOLBAR_CONTENT_LINE,TRUE);
ocx.MainToolbarHideButton(ID_TOOLBAR_CONTENT_RECTANGLE,TRUE);
ocx.MainToolbarHideButton(ID_TOOLBAR_CONTENT_ELLIPSE,TRUE);
ocx.MainToolbarHideButton(ID_TOOLBAR_CONTENT_POLYLINE,TRUE);

Please refer to the macro definitions for the buttons at below,

#define ID_TOOLBAR_OPEN                 32772
#define ID_TOOLBAR_SAVE                 32774
#define ID_TOOLBAR_PRINT                32773
#define ID_TOOLBAR_EMAIL                32776
#define ID_TOOLBAR_HAND                 32777
#define ID_TOOLBAR_COMMENT              32778
#define ID_TOOLBAR_CONTENT              32779
#define ID_TOOLBAR_FORM                 32877
#define ID_TOOLBAR_LINKTOOL             32878
#define ID_TOOLBAR_COMMENT_TEXT         32780
#define ID_TOOLBAR_COMMENT_NOTE         32781
#define ID_TOOLBAR_COMMENT_STAMP        32782
#define ID_TOOLBAR_COMMENT_PENCIL       32783
#define ID_TOOLBAR_COMMENT_LINE         32784
#define ID_TOOLBAR_COMMENT_RECTANGLE    32785
#define ID_TOOLBAR_COMMENT_ELLIPSE      32786
#define ID_TOOLBAR_CONTENT_TEXT         32787
#define ID_TOOLBAR_CONTENT_LINE         32788
#define ID_TOOLBAR_CONTENT_RECTANGLE    32789
#define ID_TOOLBAR_CONTENT_ELLIPSE      32790
#define ID_TOOLBAR_CONTENT_POLYLINE     32791
#define ID_TOOLBAR_SELECT_TEXT          32792
#define ID_TOOLBAR_SELECT_IMAGE         32793

If you are prefer to use the “MainToolbarDeleteButton” method, please delete the buttons from right to left, for example,

// Edit annotation button
ocx.MainToolbarDeleteButton(3);

// First spacer bar
ocx.MainToolbarDeleteButton(2);

// Print button
ocx.MainToolbarDeleteButton(1);

// Open button
ocx.MainToolbarDeleteButton(0);

>>Here is the same highlight annotation in Adobe Reader:
>>Is this something that has been addressed?

For the highlight annotation problem, please feel free send to us your sample PDF file in question, we will test your PDF file and come back to you asap.

VeryPDF
———————————-
Thanks for the quick response!!

The yellow “highlight” annotation was done by a different PDF viewer. It looks like your application translates a highlight annotation as a drawn rectangle with around 39% opacity – which I can live with.

Thanks for the notes on the toolbar buttons. Is there a complete documentation manual for this OCX? For instance, if I want to provide my own toolbar, is there documentation that would allow me to invoke each of the annotation methods – like is done with the text search example in the trial code?

Thanks,
Customer
———————————-
Thanks for your message, yes, you can hide the toolbar from OCX and then provide a new toolbar by yourself, that’s no problem.

You can call following methods to implement some basic functions,

    static iSelect = 1;
    if(iSelect == 0)
        m_ctrlPDFOcx.InvokeMethod(41, 1, 0);//Hand
    else if(iSelect == 1)
        m_ctrlPDFOcx.InvokeMethod(21, 0, 0);//Text Copy
    else if(iSelect == 2)
        m_ctrlPDFOcx.InvokeMethod(22, 0, 0);//Picture Copy
    else if(iSelect == 3)
        m_ctrlPDFOcx.InvokeMethod(42, 1, 0);//Edit Comment
    else if(iSelect == 4)
        m_ctrlPDFOcx.InvokeMethod(43, 1, 0);//Edit Content
    else if(iSelect == 5)
        m_ctrlPDFOcx.InvokeMethod(45, 0, 0);//Form Filling
    else if(iSelect == 6)
        m_ctrlPDFOcx.InvokeMethod(46, 0, 0);//Edit Hyperlink
    iSelect++;
    if(iSelect >= 7)
        iSelect = 0;
    //m_ctrlPDFOcx.InvokeMethod(227, 0, 0);//Disable main popup menu

If you need more functions, please feel free to let us know, we will assist you asap.

VeryPDF

PDF Editor OCX Control (ActiveX) can be downloaded and purchased from following web page,

http://www.verypdf.com/app/pdf-editor/try-and-buy.html#buy-dev
http://www.verypdf.com/pdf-editor/pdfeditor_ocx.zip
http://www.verypdf.com/app/pdf-editor/pdf-editor-ocx-control.html

PDF Annotator OCX is an ActiveX for C# and .NET Developers, it is royalty free for redistribution. PDF Annotator OCX can be used to add notes & annotations to any PDF documents, include comments, corrections, signatures, highlighting, even photos, designs and drawings.

See Also:
http://www.verypdf.com/wordpress/201604/royalty-free-pdf-annotator-ocx-activex-control-for-c-and-net-developers-component-to-view-and-annotate-pdf-documents-42537.html

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