PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Jul 18, 2024 9:16 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Tue Aug 17, 2010 9:19 am 
Offline

Joined: Tue Aug 17, 2010 9:13 am
Posts: 3
The normal
PdfOutline outline = PdfDocument.Outlines.Add(... -Method only allows you to link to a page (top of the page)

However i want to link to a certain point (from which i know the pixel coordinates) within the page.
I figured that i could maybe set the: outline.Reference.ObjectID -Property, but i failed because i could not find an object/... that i could place at the point i want that is compatible to (a subclass of) PdfObject. I think i need a PdfObject that i can use PdfInternals.GetObjectID(...) to obtain the id that i could then assign to the above property.

Could this work or would my solution fail anyway? Or is there maybe any other/easyer/better way?

Thanks in advance!


Top
 Profile  
Reply with quote  
PostPosted: Thu Aug 19, 2010 8:37 am 
Offline

Joined: Tue Aug 17, 2010 9:13 am
Posts: 3
Maybe it wasn't clear what i meant:
what i want to get are bookmarks that take you to some point within a page. The bookmarks i can add with the outline-class only take me to the beginning of a page.
It must be possible to create such bookmarks, because they exist in one of your example documents: http://www.pdfsharp.net/wiki/GetFile.as ... output.pdf
(the "From Wikipedia...."-bookmark for example)

If it's not possible to create them with one of the classes from pdfSharp, ist there a way to create such bookmarks via PdfObjects (somehow like adding the open action as in this tutorial http://www.pdfsharp.net/wiki/WorkOnPdfO ... ample.ashx )?

Any help is appreciated! Thanks


Top
 Profile  
Reply with quote  
PostPosted: Mon Aug 23, 2010 10:09 am 
Offline
PDFsharp Expert
User avatar

Joined: Wed Dec 09, 2009 8:59 am
Posts: 343
I understand what you need - but had to forward this to our PDF guru.

_________________
Öhmesh Volta ("() => true")
PDFsharp Team Holiday Substitute


Top
 Profile  
Reply with quote  
PostPosted: Wed Sep 15, 2010 6:47 am 
Offline

Joined: Tue Aug 17, 2010 9:13 am
Posts: 3
Any update/news on this one yet?

Thanks


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 26 guests


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 post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group