Click here to Skip to main content
15,921,226 members
Home / Discussions / C#
   

C#

 
GeneralRe: adding a new column into a table ? Pin
HeadBlood26-Jul-06 1:01
HeadBlood26-Jul-06 1:01 
QuestionNeed code for shell icon overlay in C# Pin
chovdry25-Jul-06 21:53
chovdry25-Jul-06 21:53 
Questionget data to textfield from dataset Pin
simsen25-Jul-06 21:37
simsen25-Jul-06 21:37 
AnswerRe: get data to textfield from dataset Pin
rah_sin25-Jul-06 22:28
professionalrah_sin25-Jul-06 22:28 
GeneralRe: get data to textfield from dataset Pin
simsen25-Jul-06 22:42
simsen25-Jul-06 22:42 
QuestionHow to delete text from a PDF file ? Pin
Prathi.V25-Jul-06 21:35
Prathi.V25-Jul-06 21:35 
AnswerRe: How to delete text from a PDF file ? Pin
LongRange.Shooter26-Jul-06 9:31
LongRange.Shooter26-Jul-06 9:31 
QuestionRe: How to delete text from a PDF file ? Pin
Prathi.V26-Jul-06 19:16
Prathi.V26-Jul-06 19:16 
Thank you very much for the reply.
The following is the c# code where I'm trying to delete the text. Can you please tell me, what code to put in, in order to delete the text. I need this immediately.

Acrobat.CAcroPDDoc pdfPDDoc;
Acrobat.CAcroAVDoc m_objAVDoc;
Acrobat.CAcroPDTextSelect txtSelect;
Acrobat.CAcroHiliteList highlistList;
Acrobat.CAcroPDPage page;


pdfPDDoc = (Acrobat.CAcroPDDoc) Microsoft.VisualBasic.Interaction.CreateObject("AcroExch.PDDoc", "");;
m_objAVDoc = (Acrobat.CAcroAVDoc)Microsoft.VisualBasic.Interaction.CreateObject("AcroExch.avdoc", "");;
highlistList = (Acrobat.CAcroHiliteList)Microsoft.VisualBasic.Interaction.CreateObject("AcroExch.HiliteList","");;

private void cmdSetText_Click(object sender, System.EventArgs e)
{

m_objAVDoc.Open(@"D:\PDF\landscape_page.pdf","TEST");
pdfPDDoc.Open(@"D:\PDF\landscape_page.pdf");
bool existedtext=m_objAVDoc.FindText("3.2.S.1.3 General Properties",1,1,1);
if (existedtext== true)
{
//pdfPDDoc.DeletePages(0,0);
pdfPDDoc = (Acrobat.CAcroPDDoc)m_objAVDoc.GetPDDoc();
page = (Acrobat.CAcroPDPage)pdfPDDoc.AcquirePage(0);
highlistList.Add(12,28);
txtSelect = (Acrobat.CAcroPDTextSelect)page.CreatePageHilite
(highlistList);
m_objAVDoc.SetTextSelection(txtSelect);
m_objAVDoc.ShowTextSelect();
}

pdfPDDoc.Save(1,@"D:\PDF\landscape_page.pdf");
m_objAVDoc.Close(0);
}
}
QuestionDetecting that a Form has stopped moving Pin
boxed25-Jul-06 21:21
boxed25-Jul-06 21:21 
AnswerRe: Detecting that a Form has stopped moving Pin
stancrm25-Jul-06 21:32
stancrm25-Jul-06 21:32 
GeneralRe: Detecting that a Form has stopped moving [modified] Pin
boxed25-Jul-06 22:11
boxed25-Jul-06 22:11 
AnswerRe: Detecting that a Form has stopped moving Pin
Martin#25-Jul-06 22:34
Martin#25-Jul-06 22:34 
GeneralRe: Detecting that a Form has stopped moving Pin
boxed25-Jul-06 23:06
boxed25-Jul-06 23:06 
GeneralRe: Detecting that a Form has stopped moving Pin
Martin#25-Jul-06 23:33
Martin#25-Jul-06 23:33 
GeneralRe: Detecting that a Form has stopped moving [modified] Pin
boxed26-Jul-06 0:52
boxed26-Jul-06 0:52 
AnswerRe: Detecting that a Form has stopped moving [modified] Pin
Martin#26-Jul-06 1:25
Martin#26-Jul-06 1:25 
GeneralRe: Detecting that a Form has stopped moving Pin
boxed26-Jul-06 1:41
boxed26-Jul-06 1:41 
GeneralRe: Detecting that a Form has stopped moving Pin
Martin#26-Jul-06 1:51
Martin#26-Jul-06 1:51 
GeneralRe: Detecting that a Form has stopped moving Pin
boxed26-Jul-06 4:11
boxed26-Jul-06 4:11 
QuestionHorizontal tab menu Pin
Bijaya Meher25-Jul-06 21:12
Bijaya Meher25-Jul-06 21:12 
QuestionDll not found problem on Target machine [modified] Pin
engsrini25-Jul-06 21:04
engsrini25-Jul-06 21:04 
AnswerRe: Dll not found problem on Target machine Pin
LongRange.Shooter26-Jul-06 9:39
LongRange.Shooter26-Jul-06 9:39 
QuestionConnecting EPABX with Computer system Pin
Ashwani_kumar25-Jul-06 20:41
Ashwani_kumar25-Jul-06 20:41 
QuestionHow to save doc files in C Pin
arun.m25-Jul-06 20:32
arun.m25-Jul-06 20:32 
AnswerRe: How to save doc files in C Pin
Christian Graus25-Jul-06 20:36
protectorChristian Graus25-Jul-06 20:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.