PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Copying Portion of an Existing PDF Page to a New Page
https://forum.pdfsharp.net/viewtopic.php?f=2&t=3360
Page 1 of 1

Author:  oliver_m [ Tue May 17, 2016 11:03 am ]
Post subject:  Copying Portion of an Existing PDF Page to a New Page

Hi,

I there a way of selecting a portion of an existing page, copying it, and pasting it onto another page?

Author:  Thomas Hoevel [ Tue May 17, 2016 11:20 am ]
Post subject:  Re: Copying Portion of an Existing PDF Page to a New Page

Hi!

What do you mean with "selecting"? PDFsharp cannot show pages, so selecting regions or items on that page will be a bit difficult.
PDFsharp cannot show pages, it cannot render pages, it does not know which item goes where. There is no clipping when drawing pages on new pages.

There is always a way - but PDFsharp may not be very helpful with your case.

Author:  oliver_m [ Tue May 17, 2016 12:22 pm ]
Post subject:  Re: Copying Portion of an Existing PDF Page to a New Page

Apologies. I wasn't clear enough.

I have an existing pdf document, and I would like to copy a specific region of it onto a new document silently, using code -- no UI. I'm guessing this can't be done?

Author:  Thomas Hoevel [ Tue May 17, 2016 2:34 pm ]
Post subject:  Re: Copying Portion of an Existing PDF Page to a New Page

oliver_m wrote:
I'm guessing this can't be done?
As I already wrote: such a task cannot be done easily with PDFsharp.

I don't know any library that can do it easily.

Author:  oliver_m [ Tue May 17, 2016 4:16 pm ]
Post subject:  Re: Copying Portion of an Existing PDF Page to a New Page

When you say 'cannot be done easily', do you mean cannot be done at all? If it categorically cannot be done using PDFSharp, I'll explore other options. Thanks for your help.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/