PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Apr 28, 2024 10:29 am

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: Fri Mar 26, 2010 8:10 pm 
Offline

Joined: Sun Nov 29, 2009 11:16 am
Posts: 5
Is it possible to embed a pdf page in a migradoc document??

Thanks in advance.


Top
 Profile  
Reply with quote  
PostPosted: Mon Mar 29, 2010 7:53 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3096
Location: Cologne, Germany
Yes.

Insert PDF pages like you insert images (JPEG, GIF, PNG, etc.).

Append "#<pagenumber>" to the filename if you don't want the first page (e. g. "c:\mypdf.pdf#7" for page 7).

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Tue Mar 30, 2010 7:48 pm 
Offline

Joined: Mon Jan 04, 2010 2:44 pm
Posts: 23
Out of curiosity, how would one go about importing a file whose name (or path) contains a hash?


Top
 Profile  
Reply with quote  
PostPosted: Wed Mar 31, 2010 7:59 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3096
Location: Cologne, Germany
DaleStan wrote:
Out of curiosity, how would one go about importing a file whose name (or path) contains a hash?

If the filename ends with digits preceded by a hash sign, then PDFsharp interprets the digits as the desired page number (1-based).

If the filename ends with ".pdf", you can have any number of hashes within your filename.
"#123.pdf" will work.

If you omit ".pdf" and name your file "#123" then you can always add "#1" to make it work.
A filename "#123" would have to be passed as "#123#1".
A filename like "ac#dc" will work without the trick.

_________________
Regards
Thomas Hoevel
PDFsharp Team


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 314 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:  
cron
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group