Re: [Podofo-users] Accessing the images of one page?

2018-02-27 Thread Dmitry Salychev
Hi Matthew, Olivier,

I agree about XObjects, but it's not so hard to deal with inline ones
using tokenizer class. I already have it implemented for both types
of images, but don't have enough time to prepare a good snippet.
Give me several days and it'll be here :)

Regards,

- Dmitry
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users


Re: [Podofo-users] Accessing the images of one page?

2018-02-27 Thread Matthew Brincke
Hello Dmitry, hello Olivier, hello all,

> On 20 February 2018 at 19:50 Dmitry Salychev  wrote: 
>  
> 
> Hi, Olivier. 
>  
> First of all, you've to know what kind of image you're going to access. They 
> usually can be stored in a PDF file two ways: XObject image or inline one. 

IIRC if you don't want to tokenize page content yourself (e.g. helped by the
PdfContentsTokenizer class) the only way supported by PoDoFo is the XObject one.

> Does it make any sense? 
> 
> 
> Regards,
>  
> - Dmitry 
> 

Best regards, mabri

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users


Re: [Podofo-users] Accessing the images of one page?

2018-02-21 Thread Olivier Mascia

> Le 21 févr. 2018 à 18:02, Dmitry Salychev  a écrit :
> 
> Olivier,
> 
> ah, I see.
> Anyway, your idea is to get any PDF file, scan it page by page and perform an
> action if there is a specific image (QR code) placed on any page.
> Am I correct. ?

Precisely, yes. That’s something I do today using another toolkit than PoDoFo, 
but I would like to switch to PoDoFo for the future.

-- 
Best regards, Meilleures salutations, Met vriendelijke groeten,  
Olivier Mascia (from mobile device)

smime.p7s
Description: S/MIME cryptographic signature
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users


Re: [Podofo-users] Accessing the images of one page?

2018-02-21 Thread Dmitry Salychev
Olivier,

ah, I see.
Anyway, your idea is to get any PDF file, scan it page by page and perform
an
action if there is a specific image (QR code) placed on any page.
Am I correct?

Regards,

- Dmitry
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users


Re: [Podofo-users] Accessing the images of one page?

2018-02-21 Thread Dmitry Salychev
Hi, Olivier.

(this is a copy of my previous reply which, for some reason, wasn't posted
on the mailing list yesterday O_o)

First of all, you've to know what kind of image you're going to access. They
usually can be stored in a PDF file two ways: XObject image or inline one.
Does it make any sense?

Regards,

- Dmitry


Regards,

- Dmitry

On Tue, Feb 20, 2018 at 5:26 PM, Olivier Mascia  wrote:

> Dear all,
>
> The podofoimgextract tool is a good documentation on how to access all
> images in a PDF file.
> What I would like to do is access all the images used on one page.
> I'm a bit short on documentation or sample code to get inspiration, short
> of reading the Adobe PDF standard, I suppose. :)
>
> To understand the context, the purpose is to scan for QR barcodes on each
> page and act on that page when found. The QR side is not an issue. I'm just
> hardly finding my way on how to properly enumerate the images used on a
> page instead of browsing all the images as a whole without consideration on
> which page it is used. It probably is incredibly simple to do using the
> primitives of PoDoFo, but I'm still struggling learning it deeper than at
> its surface.
>
> If you know of a bit of code or merely a bit of documentation which might
> be useful for me to read, I'm all ears.
>
> Thanks a lot,
> --
> Best Regards, Meilleures salutations, Met vriendelijke groeten,
> Olivier Mascia
>
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Podofo-users mailing list
> Podofo-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/podofo-users
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users