Hello,
Silly question, do I have to do my initialisation for every WPViewPDF in my project or just is enough for every one ?
WPViewPDF1.ViewerStart('wPDFView04plus.dll', 'my company', 'xxxx-xxxx-xxxx-xxx' , xxxxxxx );
TKS
Best regards.
Hello,
Silly question, do I have to do my initialisation for every WPViewPDF in my project or just is enough for every one ?
WPViewPDF1.ViewerStart('wPDFView04plus.dll', 'my company', 'xxxx-xxxx-xxxx-xxx' , xxxxxxx );
TKS
Best regards.
Hi,
When I look at links properties in Acrobat Pro I see:
Title : 51-00-00 STRUCTURES - STANDARD PRACTICES
Action "Display/Hide a field: move to the location. Use page number: 70 of 1890"
The PDF opened in notepad++ gives me:
obj
<</A 380499 0 R/Count 0/Next 380496 0 R/Parent 380270 0 R/Prev 380500 0 R/Title(51-00-00 STRUCTURES - STANDARD PRACTICES\r)>>
endobj
380499
Hi,
here is my Delphi code:
procedure TForm1.ExtractbookmarksfromPDF1Click(Sender: TObject);
var
BM_Lit : tstringlist;
begin
screen.cursor := CrHourglass;
BM_Lit := tstringlist.create;
BM_Lit.text:= WPViewPDF1.CommandGetStr(COMPDF_GetBookmarkXML, BM_Lit.text, 1 ) ;
BM_Lit.savetofile(changefileext(WPViewPDF1.filename, '.xml'));
BM_Lit.free;
screen.cursor := CrDefault;
end;
My problem is that whatever any integer value passed to CommandGetStr or whatever kind of PDF, I do not get the destinations into the XML File.
I always got:
<?xml version="1.0" encoding="utf-8"?>
<File id="6">
<Outline Title="STRUCTURAL REPAIR MANUAL (PSP 497)&WCF_AMPERSAND " A="">
<Outline Title="TRANSMITTAL LETTER" A=""/>
<Outline Title="RECORD OF REVISIONS" A=""/>
<Outline Title="RECORD OF TEMPORARY REVISIONS" A=""/>
<Outline Title="SERVICE BULLETIN" A=""/>
<Outline Title="INTRODUCTION" A="">
<Outline Title="LIST OF EFFECTIVE PAGES" A=""/>
<Outline Title="TABLE OF CONTENTS" A=""/>
<Outline Title="INTRODUCTION" A=""/>
</Outline>
<Outline Title="CHAPTER 51 - STRUCTURES&WCF_AMPERSAND " A="">
<Outline Title="LIST OF EFFECTIVE PAGES" A=""/>
<Outline Title="TABLE OF CONTENTS" A=""/>
<Outline Title="51-00-00 STRUCTURES - STANDARD PRACTICES&WCF_AMPERSAND " A=""/>
...
I never get something like : <Outline Title="Delphi" pid="19" pnr="16" X="57" Y="376" Z="0"/>
What am I doing wrong ?
thanks.
Zugriffsverletzung bei Adresse 0726446F in Modul 'wPDFViewPlus04.dll'. Lesen von Adresse 00000000.
Just after : WPViewPDF1.ViewerStart('wPDFViewPlus04.dll', 'aircraft data systems', 'YYYY-YYYY-YYYY-YYYY' , XXXXXXX );
Coordinates:
WPViewPDF1.command(COMPDF_GetTextSetOptions, 4+2); // Activate the filter
WPViewPDF1.command(COMPDF_GetTextFilterRectX , 457 );
WPViewPDF1.command(COMPDF_GetTextFilterRectY , 86 );
WPViewPDF1.command(COMPDF_GetTextFilterRectX1, 100 );
WPViewPDF1.command(COMPDF_GetTextFilterRecty1, 23 );
WPViewPDF1.AddHighlightRect(0, StrToInt(Edit6.Text), StrToInt(Edit7.Text), StrToInt(Edit8.Text), StrToInt(Edit9.Text) , 255, [wpAnnotAtFoundText] );
RzMemo1.Lines.Add(WPViewPDF1.GetPageText(0));
What I have in my Installation and execution folders:
wp_type1ttf.dll Version 2.10.0.0
wp_type1ttf64.dll Version 2.4.6.2
wpdecodejp.dll Version 1.2.0.1
wpdecodejp64.dll Version 1.2.0.1
wPDFView03.dll Version 3.28.4.2
wPDFView03x64.dll Version 3.28.4.3
wPDFViewPlus04.dll Version 4.8.0.2
wPDFViewPlus04x64.dll Version 4.4.2.0
Hi,
I tried with that :
FormCreate :
WPViewPDF1.ViewerStart('wPDFViewPlus04.dll', 'aircraft data systems', 'YYYY-YYYY-YYYY-YYYY' , XXXXXXX );
WPViewPDF1.MouseMode(wpLeftButton, wpmDrawCustom );
WPViewPDF1.Command(COMPDF_SelectMode, wpmouse_DrawCustom );
And I get the same result.
The whole page is recongnized whatever I pass as parameters:
ButtonCLick:
WPViewPDF1.command(COMPDF_GetTextSetOptions, 4+2); // Activate the filter
WPViewPDF1.command(COMPDF_GetTextFilterRectX , StrToInt(Edit6.Text) );
WPViewPDF1.command(COMPDF_GetTextFilterRectY , StrToInt(Edit7.Text) );
WPViewPDF1.command(COMPDF_GetTextFilterRectX1, StrToInt(Edit8.Text) );
WPViewPDF1.command(COMPDF_GetTextFilterRecty1, StrToInt(Edit9.Text) );
WPViewPDF1.AddHighlightRect(0, StrToInt(Edit6.Text), StrToInt(Edit7.Text), StrToInt(Edit8.Text), StrToInt(Edit9.Text) , 255, [wpAnnotAtFoundText] );
RzMemo1.Lines.Add(WPViewPDF1.GetPageText(0));
What is that ?
function GetPageText(PageNo: Integer; format: string = ''): AnsiString;
{ :: This function retrieves the ANSI text of a certain page in the range 0..PageCount-1<br>
PageNo = -1 will read the complete text.<br>
PageNo = -2 will read the selected pages.<br>
PageNo = -3 will read the selected text<br>
This formats are possible: RTF, ANSI, UNICODE, HTML.<br>
For HTML it is possible to add a '=' and the path which will be used for the images: HTML=path
}
should I put : RzMemo1.Lines.Add(WPViewPDF1.GetPageText(-3)); ?
Hi,
I load the new version and started working on it...
{$I WPViewPDFINC.INC}
Uses WPDF_ViewCommands, WPViewPDF4, WPViewPDF3,..
...
WPViewPDF1.ViewerStart('wPDFView03.dll', 'aircraft data systems', 'yyyyyyyyyyyyyyyyy' , xxxxxxxxx);
WPViewPDF1.MouseMode(wpLeftButton, wpmDrawCustom );
WPViewPDF1.Command(COMPDF_SelectMode, wpmouse_DrawCustom );
...
WPViewPDF1.command(COMPDF_GetTextSetOptions, 4+2); // Activate the filter
WPViewPDF1.command(COMPDF_GetTextFilterRectX , StrToInt(Edit6.Text) ); --> 36
WPViewPDF1.command(COMPDF_GetTextFilterRectY , StrToInt(Edit7.Text) ); --> 483
WPViewPDF1.command(COMPDF_GetTextFilterRectX1, StrToInt(Edit8.Text) );--> 47
WPViewPDF1.command(COMPDF_GetTextFilterRecty1, StrToInt(Edit9.Text) ); --> 541
RzMemo1.Lines.Add(WPViewPDF1.GetPageText(0));
...
Coordinates were taken out of a direct selection on screen with the DoSelRectEvent event.
And it takes the whole page text every times.
Hi,
I know this sounds possible but I could not figure any where how to do it.
I have thousands of PDFs that have their reference at the same place.
I would like to be able to select this area and get the text to identify the reference of the PDF.
Basically I would like to have something like :
WPDF_GETTEXT( x, y , width , height, Page number) : string;
How should I do ?
(No action from user requiered, batch fonctionnement).
thanks