PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Apr 27, 2024 9:09 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: PdfSharp: Overlay PDF's
PostPosted: Tue Jan 16, 2024 1:11 pm 
Offline

Joined: Tue Jan 16, 2024 11:31 am
Posts: 3
Hi,

i'am using PDFSharp.
Is it possible to overlay two PDF's oder two PDF Pages?
But not as an image, but as a PDF so that you can copy data out.

Thank you.


Top
 Profile  
Reply with quote  
PostPosted: Tue Jan 16, 2024 4:26 pm 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 916
Location: CCAA
It is possible to overlay two PDF pages.

Opaque parts of the top PDF page will hide the bottom PDF page.

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


Top
 Profile  
Reply with quote  
PostPosted: Tue Jan 16, 2024 6:17 pm 
Offline

Joined: Tue Jan 16, 2024 11:31 am
Posts: 3
Hi
TH-Soft wrote:
It is possible to overlay two PDF pages.

Opaque parts of the top PDF page will hide the bottom PDF page.


But how can I say, that a page overlays an other page? I find only that I can add pages.


Top
 Profile  
Reply with quote  
PostPosted: Tue Jan 16, 2024 9:37 pm 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 916
Location: CCAA
AndreasGey76 wrote:
But how can I say, that a page overlays an other page?
Use DrawImage to draw the new page where you want it and in the size you want it.
See the "Two pages on one" sample for code.
https://pdfsharp.net/wiki/TwoPagesOnOne-sample.ashx

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


Top
 Profile  
Reply with quote  
PostPosted: Wed Jan 17, 2024 11:21 am 
Offline

Joined: Tue Jan 16, 2024 11:31 am
Posts: 3
TH-Soft wrote:
AndreasGey76 wrote:
But how can I say, that a page overlays an other page?
Use DrawImage to draw the new page where you want it and in the size you want it.
See the "Two pages on one" sample for code.
https://pdfsharp.net/wiki/TwoPagesOnOne-sample.ashx


Thank you , it works!


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 420 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