PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index PDFsharp - moved to http://forum.pdfsharp.net/
Please visit the new PDFsharp forum at http://forum.pdfsharp.net/
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Important Notice: We regret to inform you that our free phpBB forum hosting service will be discontinued by the end of June 30, 2024. If you wish to migrate to our paid hosting service, please contact billing@hostonnet.com.
Adding Text to PDF but it should not be visible in the PDF

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/
View previous topic :: View next topic  
Author Message
pradeep



Joined: 30 Mar 2007
Posts: 1

PostPosted: Fri Mar 30, 2007 6:21 am    Post subject: Adding Text to PDF but it should not be visible in the PDF Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
komplikator



Joined: 21 May 2008
Posts: 3

PostPosted: Wed May 21, 2008 11:54 am    Post subject: Reply with quote

Hi!

I would also be interested in a solution for this problem.

Tx.
Back to top
View user's profile Send private message
AlbinoTux



Joined: 21 May 2008
Posts: 7

PostPosted: Wed May 21, 2008 4:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
komplikator



Joined: 21 May 2008
Posts: 3

PostPosted: Wed May 21, 2008 5:47 pm    Post subject: Reply with quote

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. Smile
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
View user's profile Send private message
AlbinoTux



Joined: 21 May 2008
Posts: 7

PostPosted: Wed May 21, 2008 5:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
komplikator



Joined: 21 May 2008
Posts: 3

PostPosted: Wed May 21, 2008 6:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/ All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


Start Your Own YouTube Clone

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com