Fórum Localizando string em pdf. #274221
28/03/2005
0
Paulovitor
Curtir tópico
+ 0Posts
28/03/2005
Motta
Gostei + 0
28/03/2005
Paulovitor
cara não entendi o que você kiss dizer será q poderia colocar a linha de comando como exemplo.
Gostei + 0
28/03/2005
Motta
This example requires a TRichEdit, a TButton, and a TFindDialog.
Clicking the button click will display a Find Dialog to the right of the edit control. Filling in the "Find what" text and pressing the Find Next button will select the first matching string in the Rich Edit control that follows the previous selection.
procedure TForm1.Button1Click(Sender: TObject);
begin
FindDialog1.Position := Point(RichEdit1.Left + RichEdit1.Width, RichEdit1.Top);
FindDialog1.Execute;
end;
procedure TForm1.FindDialog1Find(Sender: TObject);
var
FoundAt: LongInt;
StartPos, ToEnd: Integer;
begin
with RichEdit1 do
begin
{ begin the search after the current selection if there is one }
{ otherwise, begin at the start of the text }
if SelLength <> 0 then
StartPos := SelStart + SelLength;
else
StartPos := 0;
{ ToEnd is the length from StartPos to the end of the text in the rich edit control }
ToEnd := Length(Text) - StartPos;
FoundAt := FindText(FindDialog1.FindText, StartPos, ToEnd, [stMatchCase]);
if FoundAt <> -1 then
begin
SetFocus;
SelStart := FoundAt;
SelLength := Length(FindDialog1.FindText);
end;
end;
end;
fonte help do D5
Gostei + 0
28/03/2005
Motta
Gostei + 0
29/03/2005
Paulovitor
Alguem sabe como resolver este meu problema ???
Gostei + 0
29/03/2005
Motta
Localizei no Google
http://www.ozgrid.com/Services/acrobat-text-convert.htm
Gostei + 0
29/03/2005
Paulovitor
Trankilo veio, mas esse link tem não, po essa parada varias pessoas procuraram saber aqui no forum e nenhuma teve sucesso ate agora, mas acredito que tenha como fazer, só não sei como !!!
Gostei + 0
29/03/2005
Marcelo Saviski
Gostei + 0
29/03/2005
Gandalf.nho
Gostei + 0
30/03/2005
Paulovitor
sim sim eu estou abrindo o delphi dentro da aplicação...
Gostei + 0
30/03/2005
Paulovitor
a ta vou da uma olhada , mas com isso perco na rapidez do meu sistema , pq ele teria que abrir a aplicação e quando solicitase a abertura do pdf iria ter que abrir o adobe acrobat que por sinal é um pouco pesado, e demora um pouco a carregar. Vo ve se so tiver essa alternativa vou tentar fazer com que ao abrir a aplicação o adobe ira abrindo aos poucos tmb.. vo ve mas se alguem encontrar algo me avisa !!! abs
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)