On Mon, 2015-11-30 at 22:41 +0100, julian.rehb...@de.gbs.com wrote:
> to c)
> For BLOBs the only solution would be to use the current datetime(by
> creating a new PdfDate object). 
> If I am right you talk about this method? 
> 
> void PdfFileSpec::EmbeddFileFromMem( PdfObject* pStream, const
> unsigned char* data, ptrdiff_t size ) const 

        Hi,
yes, that's it. Just do not hard code what dates will be used, add
optional parameters for them both and only if the caller didn't set
them then use the current time. The caller can know the exact dates,
but still would prefer to attach the data as a blob. The code will be
reused on other places, if found later.

> If not, what else represents your description? 

Thinking of it, one can sometimes attach files without using
PdfFileSpec (playing with dictionaries manually). It would be useful to
have the method from b) defined as 'static' and 'public' for such
cases, thus it's reusable even out of the PdfFileSpec. The actual
prototype can be changed too, like passing PdfDate as pointers, and if
they are NULL, then fill them as the current time. (Hmm, my initial
proposal for the method prototype might be defined as a 'const' method,
because it doesn't change anything in the class itself. As it'll be
'static' now, it doesn't matter much.)

        Thanks and bye,
        zyx

P.S.: Message list digests are breaking threading (if not used
properly, or when the client doesn't support to reply to individual
messages). Consider changing your settings, the message digest is an
ancient way of saving bandwidth and something like that, which is
(usually) not a problem these days.

-- 
http://www.litePDF.cz                                 i...@litepdf.cz



------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to