View previous topic :: View next topic |
Author |
Message |
yigosan
Joined: 16 Feb 2009 Posts: 2
|
Posted: Mon Feb 16, 2009 5:44 pm Post subject: Is it possible to create an invisible Paragraph for Outline? |
|
|
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 |
|
|
yigosan
Joined: 16 Feb 2009 Posts: 2
|
Posted: Mon Feb 16, 2009 5:56 pm Post subject: |
|
|
As it happens all the time, I solved my problem shortly after posting on the forum
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 ) |
|
Back to top |
|
|
Thomas Hoevel
Joined: 16 Oct 2006 Posts: 387 Location: Cologne, Germany
|
Posted: Tue Feb 17, 2009 10:50 am Post subject: |
|
|
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 |
|
|
|