Search found 8 matches

by risotoh985
Thu Dec 12, 2019 6:21 pm
Forum: PDF
Topic: Reading/Writing Same PDF Increases Size
Replies: 4
Views: 204

Re: Reading/Writing Same PDF Increases Size

Hi Hugo, thanks a lot for your reply! This method seems not to remove all unused fonts, please try with attached "sample-test.pdf": This PDF is just a scan (so one image, no text, also no hidden text). If you load this PDF using "LoadFromFile()" into GdPicturePDF and call "GetFontCount()" the result...
by risotoh985
Mon Dec 02, 2019 6:21 pm
Forum: PDF
Topic: Reading/Writing Same PDF Increases Size
Replies: 4
Views: 204

Re: Reading/Writing Same PDF Increases Size

An additional info regarding this: I've found out in the meantime that the reason for the size increase is that with every round it embeds one additional font into the PDF file. In the resulting "sample1.pdf" (after the first round) there is only a single font in the PDF (free tool PDF-Analyzer used...
by risotoh985
Sun Dec 01, 2019 12:28 am
Forum: PDF
Topic: Reading/Writing Same PDF Increases Size
Replies: 4
Views: 204

Reading/Writing Same PDF Increases Size

Hi, I've noticed an interesting and very strange behavior: When I read a PDF file previously saved by GdPicturePdf with GdPicturePdf again, remove all hidden text, perform a new OCR recognition and save it again the file gets bigger and bigger every time I do this. Here is a short sample code that r...
by risotoh985
Fri Nov 15, 2019 7:39 pm
Forum: Image Processing & Document Imaging
Topic: Load image from file without loading it into memory
Replies: 9
Views: 298

Re: Load image from file without loading it into memory

Hi Loïc, no worries, I do know how garbage collection works, but this does not really matter here as GdPicture loads the image data into unmanaged memory which is obviously not effected by garbage collection. To verify this I just ran my small example project (attached now) using JetBrains dotMemory...
by risotoh985
Fri Nov 15, 2019 1:38 pm
Forum: Image Processing & Document Imaging
Topic: Load image from file without loading it into memory
Replies: 9
Views: 298

Re: Load image from file without loading it into memory

Hi Loic, thanks for getting back to me, appreciating your efforts. I've attached you a large, but just white JPG file to this post. I would like to ask you to run these two lines of code with it: for (var i = 1; i <= 10; i++) var imageId = _gdPictureImaging.CreateGdPictureImageFromFile("LargeImage.j...
by risotoh985
Thu Nov 14, 2019 11:11 am
Forum: Image Processing & Document Imaging
Topic: Load image from file without loading it into memory
Replies: 9
Views: 298

Re: Load image from file without loading it into memory

Hi Loic,

sorry for bothering, but did you get any feedback from your developers already?

thanks
riso
by risotoh985
Mon Nov 11, 2019 9:09 pm
Forum: Image Processing & Document Imaging
Topic: Load image from file without loading it into memory
Replies: 9
Views: 298

Load image from file without loading it into memory

Hi, testing your library at the moment and wonder why CreateGdPictureImageFromFile creates almost exactly the same memory footprint whether I set LoadInMemory to True or False. I use this very simple one line call: var imageId = _gdPictureImaging.CreateGdPictureImageFromFile("LargeImage.jpg", false)...