Search found 22 matches

by SarrasiM
Tue Feb 28, 2017 4:30 pm
Forum: PDF
Topic: Merging PDF order
Replies: 2
Views: 4326

Re: Merging PDF order

Thank you Cedric.
by SarrasiM
Mon Feb 27, 2017 8:23 pm
Forum: PDF
Topic: Merging PDF order
Replies: 2
Views: 4326

Merging PDF order

Hello,

I would like to know if the merge order is assured with methods such as MergeDocuments or Merge2Documents. To be clearer, if I use MergeDocuments with te following input array:
1.pdf
2.pdf
3.pdf

Is the order ALWAYS to be 1 2 3 once merged or there is no guarantee?

Thank you,
by SarrasiM
Wed Jan 18, 2017 4:41 pm
Forum: PDF
Topic: GdPicturePDF.Scale and GdPicturePDF.Resize only resizing image
Replies: 7
Views: 7821

Re: GdPicturePDF.Scale and GdPicturePDF.Resize only resizing image

Hello delbeke,

Thanks, it worked :)
by SarrasiM
Mon Jan 16, 2017 8:33 pm
Forum: PDF
Topic: GdPicturePDF.Scale and GdPicturePDF.Resize only resizing image
Replies: 7
Views: 7821

Re: GdPicturePDF.Scale and GdPicturePDF.Resize only resizing image

Hello delbeke, Please see the two images attached. One has been resized using Scale() while the other has kept the original images dimensions. What we are looking to accomplish is to reduce the PDF size by resizing the images in it. This worked well in previous attempts as we scaled the image before...
by SarrasiM
Tue Jan 10, 2017 3:10 pm
Forum: PDF
Topic: GdPicturePDF.Scale and GdPicturePDF.Resize only resizing image
Replies: 7
Views: 7821

Re: GdPicturePDF.Scale and GdPicturePDF.Resize only resizing image

Hello delbeke :) Here's the code snippet as requested: using (GdPicturePDF pdf = new GdPicturePDF()) { var position = 1; pdf.NewPDF(true); pdf.SetJpegQuality(75); pdf.SetMeasurementUnit(PdfMeasurementUnit.PdfMeasurementUnitInch); foreach (var img in Directory.GetFiles(@"C:\Tests")) { var i...
by SarrasiM
Fri Jan 06, 2017 9:36 pm
Forum: PDF
Topic: GdPicturePDF.Scale and GdPicturePDF.Resize only resizing image
Replies: 7
Views: 7821

GdPicturePDF.Scale and GdPicturePDF.Resize only resizing image

Good day, I wanted to use these methods to resize the pages inside a PDF after the OCR has been done. To my surprise it didn't work as expected: it would only scale the image ON the page, and not the page itself. See the image for exemple (I have removed te page content for security reason). I've us...
by SarrasiM
Tue Dec 20, 2016 5:18 pm
Forum: Image Processing & Document Imaging
Topic: .TXT to image
Replies: 2
Views: 4542

Re: .TXT to image

Could you please check at my question? :) Thank you.
by SarrasiM
Tue Dec 13, 2016 9:40 pm
Forum: Image Processing & Document Imaging
Topic: .TXT to image
Replies: 2
Views: 4542

.TXT to image

Good day,

Although the .txt appears as a supported format I'm not able to load up a .txt file with the CreateGdPictureImageFromFile() method. We're looking to convert .txt file to an image like if it would be printed.

Is that possible?

Thanks!
by SarrasiM
Mon Oct 24, 2016 2:57 pm
Forum: PDF
Topic: Inserted images are too big
Replies: 5
Views: 5875

Re: Inserted images are too big

Got it! I was setting the PDF measurement before reloading a PDF. Thanks Cedric :)
by SarrasiM
Mon Oct 24, 2016 2:53 pm
Forum: PDF
Topic: Inserted images are too big
Replies: 5
Views: 5875

Re: Inserted images are too big

Cedric, the measurement unit is set to this pdf.SetMeasurementUnit(PdfMeasurementUnit.PdfMeasurementUnitInch).
by SarrasiM
Mon Oct 24, 2016 2:25 pm
Forum: PDF
Topic: Inserted images are too big
Replies: 5
Views: 5875

Re: Inserted images are too big

Hello Cedric, I've changed the code so that the 'width' and 'height' variables are respectively set to '8.5' and '11' with tis code: var width = (float)gdp.GetWidth(id) / (float)gdp.GetHorizontalResolution(id); // 8.5 var height = (float)gdp.GetHeight(id) / (float)gdp.GetVerticalResolution(id); // 1...
by SarrasiM
Thu Oct 20, 2016 2:29 pm
Forum: PDF
Topic: Inserted images are too big
Replies: 5
Views: 5875

Inserted images are too big

Good morning, I've been experimenting with the page insertion in PDF lately and I can't figure out why the pages that are added to an existing PDF are oversized. It does not happen when I append image. You can see the the actual view after insertion (text have been redacted) in the os.png attachment...
by SarrasiM
Wed Apr 06, 2016 5:24 pm
Forum: Feature Requests
Topic: HOCR
Replies: 8
Views: 16527

Re: HOCR

It also be a good addition for scenarios like this one: - Extract the text layer in HOCR format. - Make manipulations on the results - Create a searchable PDF from HOCR file. You wouldn't need to make OCR again at this point here, so it's a performance gain. Also, none of the provider that I know of...
by SarrasiM
Thu Mar 31, 2016 9:33 pm
Forum: PDF
Topic: Major Speed/Size when using SetCompressionForColorImage
Replies: 1
Views: 3677

Major Speed/Size when using SetCompressionForColorImage

Good day, We've been creating PDF with large grayscale image (plan) and we discovered that setting SetCompressionForColorImage to PdfCompressionJPEG2000 will cause a major slow down in processing as well as a very huge PDF. For instance: 214 JPEG, 1.84GB Total PDF size using SetCompressionForColorIm...