HI
I had develop
this free tool for help people to easy layout boardgame cardsI works great but "the problem" is that it can be very high memory consuming when working with a lot of images and, for example, it can goes up to 2.5Gb or RAM
there is a easy way to fix that is that each time a page is done save it as one pdf file and when all pdf files are done marge it. doing that it goes up to 200Mb of RAM
right now the way i put the images on to the pdf file is
Code:
gfx.DrawImage(XImagen,x_position, y_position,x_size,y_size);
I´m trying to solve this and i have been reading that, for example, with one image that is multiple times on the PDF you can insert it only and then refer it over the document but i can not find any post here on how to do it
I have see that DrawImage creates the reference on the Page Dictionary but I can´t get to create instead on de Document Dictionary instead so i can call it form other pages and using
Code:
Document.Internals.AddObject(xObject);
gaves me the error that the xobject is already ther (true)
Any suggention where i can read help about this or documentation?
thank you so much