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

Hello, how to upload an image from a Pdf document?
https://forum.pdfsharp.net/viewtopic.php?f=2&t=1428
Page 1 of 1

Author:  attt123 [ Sat Nov 20, 2010 2:40 am ]
Post subject:  Hello, how to upload an image from a Pdf document?

Hello, how to upload an image from a Pdf document?

There is an option
PdfDictionary resources = Page.Elements.GetDictionary("/Resources");
if (resources != null)
{
PdfDictionary xObjects = resources.Elements.GetDictionary("/XObject");
if (xObjects != null)
{ and ….}
But if xObjects = null since resources.Elements contained only ProcSet and no XObject

Author:  Remis [ Wed Nov 24, 2010 10:53 pm ]
Post subject:  Re: Hello, how to upload an image from a Pdf document?

"upload from" - I've seen "download from" but not this form...

Do you want to extract an image from @"C:\Temp\whateverButSarahYoung.pdf" ?

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