How to isolate just images in a rectangular area?

71 skatījums
Pāriet uz pirmo nelasīto ziņojumu

Ryan

nelasīta,
2016. gada 20. sept. 19:11:0520.09.16
uz PDFTron PDFNet SDK
Question:

How to get just the images that are contained in a region, without getting other ones that might be partially included?

Answer:

Attached is a modified ElementEdit sample, and input file, that does this.

Further improvement you could do, is to crop the page to just the minimal bounding box, and then export to image.

page.SetCropBox(page.GetVisibleContentBox());
pdfdraw
.Export(page, "out.png", "PNG");


ElementEditTest.cs
Atbildēt visiem
Atbildēt autoram
Pārsūtīt
0 jauni ziņojumi