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 

Is it possible to create an invisible Paragraph for Outline?

 
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
yigosan



Joined: 16 Feb 2009
Posts: 2

PostPosted: Mon Feb 16, 2009 5:44 pm    Post subject: Is it possible to create an invisible Paragraph for Outline? Reply with quote

Hi,

Thx for the great product.

I have a multisheet pdf, created completely by MigraDoc, and I Outline certain Paragraphs so they're clickable on the left navigation menu (not sure what this is called technically).

I do this by :
paragraph = this.CoverPage.AddParagraph("List of Products");
paragraph.Format.OutlineLevel = OutlineLevel.Level1;

I also have a cover letter for the 'first page' which contains greetings. I want to add the "CoverPage" on the left Outline Link panel among other links for navigation, but I don't want to display the text "CoverPage" on the actual page itself.

I've tried to set the FontSize to 0 on the page for this paragraph, but it won't work. There is no visibility option in Paragraph object either. Could you recommend me a way to accomplish this?

Thanks in advance, and thanks again for the great product.
Back to top
View user's profile Send private message
yigosan



Joined: 16 Feb 2009
Posts: 2

PostPosted: Mon Feb 16, 2009 5:56 pm    Post subject: Reply with quote

As it happens all the time, I solved my problem shortly after posting on the forum Very Happy

Not the best of solution, but it seems to work :

paragraph.Format.OutlineLevel = OutlineLevel.Level1;
paragraph.Format.Font.Size = "0.01mm";

The text won't show at this micro size, however I'd rather solve this problem different if there is a more legit way of doing it. I'm not sure what future problems the above solution may bring (for ex: when converting pdf to a different document type, or someone with supernatural eyes detecting the text Shocked )
Back to top
View user's profile Send private message
Thomas Hoevel



Joined: 16 Oct 2006
Posts: 387
Location: Cologne, Germany

PostPosted: Tue Feb 17, 2009 10:50 am    Post subject: Reply with quote

We did it the same way (yes, it's a hack).
You can also set the colour of the text.
_________________
Regards
Thomas Hoevel
PDFsharp Team
Back to top
View user's profile Send private message Visit poster's website
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