View previous topic :: View next topic |
Author |
Message |
pradeep
Joined: 30 Mar 2007 Posts: 1
|
Posted: Fri Mar 30, 2007 6:21 am Post subject: Adding Text to PDF but it should not be visible in the PDF |
|
|
Hi,
I have a PDF document with some jpg images. I want to add some content/text to this PDF document. But this content/text should not be visible when the PDF document is being viewed.
I want to add this content so that the document search lists this PDF when searched for the keywords in the content.
Can any one please tell me how can i do this....
Regards,
Pradeep |
|
Back to top |
|
|
komplikator
Joined: 21 May 2008 Posts: 3
|
Posted: Wed May 21, 2008 11:54 am Post subject: |
|
|
Hi!
I would also be interested in a solution for this problem.
Tx. |
|
Back to top |
|
|
AlbinoTux
Joined: 21 May 2008 Posts: 7
|
Posted: Wed May 21, 2008 4:07 pm Post subject: |
|
|
Have you tried placing the text outside the boundaries of the page?
For Example,
Code: | XPoint t = new XPoint(page.Width, page.Height)));
gfx.DrawString("Offpage",new XFont("Verdana",10), XBrushes.Black, t); |
|
|
Back to top |
|
|
komplikator
Joined: 21 May 2008 Posts: 3
|
Posted: Wed May 21, 2008 5:47 pm Post subject: |
|
|
AlbinoTux wrote: | Have you tried placing the text outside the boundaries of the page?
For Example,
Code: | XPoint t = new XPoint(page.Width, page.Height)));
gfx.DrawString("Offpage",new XFont("Verdana",10), XBrushes.Black, t); |
|
You're almost there.
Point is - if and when a user searches text within the document (using adobe Reader's search), Reader should position the view to the word it found. So, the word that was found would be selected, but words around it would not be visible since it would be 'behind' the image. |
|
Back to top |
|
|
AlbinoTux
Joined: 21 May 2008 Posts: 7
|
Posted: Wed May 21, 2008 5:52 pm Post subject: |
|
|
Try a brush that is completely transparent?
Code: | XColor bg = XColors.DarkGray;
bg.A = 0.0;
XSolidBrush br = new XSolidBrush(bg);
XPoint t = new XPoint(0, 0)));
gfx.DrawString("Offpage",new XFont("Verdana",10), br, t); |
|
|
Back to top |
|
|
komplikator
Joined: 21 May 2008 Posts: 3
|
Posted: Wed May 21, 2008 6:42 pm Post subject: |
|
|
AlbinoTux wrote: | Try a brush that is completely transparent?
Code: | XColor bg = XColors.DarkGray;
bg.A = 0.0;
XSolidBrush br = new XSolidBrush(bg);
XPoint t = new XPoint(0, 0)));
gfx.DrawString("Offpage",new XFont("Verdana",10), br, t); |
|
Ok, I will try this. I'll let you know how it went...
Thanx. |
|
Back to top |
|
|
|