Pdf images and doc different sizes7/10/2023 ![]() For instance, if the output image quality ratio is set to 1:2 and the output resolution is set to 300 dpi, the raster content is output at approximately 150 dpi. The control determines the effective resolution of raster content on output. When exporting a map, the dpi is calculated automatically. DPI is available only when exporting a layout. The effective dpi of the vector data in the layout. This option should be left on unless you need clear text for troubleshooting. This only applies when certain compression types are used.Ĭompress the vector content streams. Low quality has a smaller file size but less clear data max quality has a larger file size but crisper data. The amount of image compression applied to the export. ![]() Adaptive-JPEG and Deflate compression are combined, depending on the contents of the stream.JPEG-Lossy compression method that works well for photographic-type images.LZW-Lossless compression method using a code table.Deflate-Lossless compression method that works well for most cases.RLE-Run-length encoded compression, a lossless compression method that works well if there are large areas of the same color.The compression scheme used to compress image or raster data in the output file. Options specific to vector data, such as Layers and attributes, are unavailable when Output as image is checked. For maps or layouts containing vector layers with a high density of vertices, this can drastically reduce the output file size. The CoordDocumentInchToViewerPixel method does the same thing, but the other way around.Export all content as an image. The first method is CoordViewerPixelToDocumentInch, it will convert pixels coordinates of a point relative to the viewer into inches coordinates relative to the document. If, for any reason, you need to convert coordinates from a one system to another, GdPicture.NET also provides two methods that will save you the hassle of the translation both ways (from viewer to document and also from document to viewer). GdPicture.NET provides several methods to retrieve coordinates and sizes either in the viewer coordinate system (in pixels) or in the document coordinates system (in inches). Indeed, the area coordinates in the viewer frame are very different from what you would obtain in the document coordinates system and they are also in a different units (pixels vs inches). ![]() Knowing this, it becomes easy to draw something on a PDF page at a given location.īut when the user interactively selects an area or a location in the viewer, that is displaying the page and the goal is to draw something at this exact location, you need to be careful about the coordinates you retrieve. That’s why GdPicture.NET provides the NormalizePage method that will set the page rotation to 0 and also set the CropBox equal to the MediaBox, so you can work using a simple regular coordinates system. With a 90° or 270° rotation, width and height will be swapped and it can make several processing operations tricky. When such rotation is set, the whole content is rotated at display time without changing the coordinates system or its origin. So keep in mind, that the higher the resolution is, the bigger the result image will be and so will be the required memory and system resources.įinally, PDF pages can have an internal clockwise rotation of 90°, 180° or 270°. The same formula applies, when you want to convert a PDF page to a raster image (this process is called rasterization), because it is the exact same thing except that you will be choosing the output resolution instead of working with the screen or printer resolution. Note that the current display resolution is accessible through HorizontalResolution and VerticalResolution properties of the GdViewer object. When displayed at 150%, resolution is 144 DPI, so the display size will be 1684 x 1191 pixels and so on. When displayed at 100%, the resolution is 96 DPI,so by applying the well-known “ inches = pixels / resolution” formula, the actual pixels needed to display the image will be 1123 x 794 pixels. For instance, let’s take a full A4 page, its height will be 8.27 inches and its width will be 11.69 inches. The physical size of the page won’t change, but depending on the zoom level, the number of pixels used to represent it, will vary. For display, the resolution depends on the rendering zoom level. Only raster images have a resolution, in a PDF document, anything that is text or vector graphic will be rendered at the desired resolution of the output device (screen or printer).
0 Comments
Leave a Reply. |