How To Print Tiles In Pdf

0 views
Skip to first unread message

Stephaine Zitzow

unread,
Aug 4, 2024, 1:03:11 PM8/4/24
to renarenhe
IfI capture the Web Map as JSON from the browser debugger and use it directly in the print service REST (services directory) form, I get the same result. I've tried the print with print services at version 10.7.1, both a standard print service and a custom service created in ArcGIS Pro. I've also tried it in the sample print service at I understand vector tile printing was supported as of 10.6.

I've attached a Web Map as JSON string that I've tested, which includes data from the topo-vector service as generated by the JavaScript API. Any ideas or suggestions on how to debug the request are appreciated.


I am using a 10.7.1 ArcGIS Server and was able to capture the web map parameter from my print request that does not have an imageData parameter. The resulting PDF does display the vector tile basemap along with the requested visible layers.


My problem is using a custom GP print service that I publish. Any time my web map JSON parameter is sent to the print service, it contains the imageData parameter and does not display the basemap. By executing the task directly from the REST service endpoint, I insert my web map JSON from the successful test above but I still don't get a basemap back. For me, it seems isolated to a print service I publish while the out of the box service works fine.


I am also seeing this. On my custom service on 10.5.1 and with a custom vector basemap where I tweaked the Navigation basemap, and print a map to PDF from Web App Builder 2.12. No basemap tiles are present. Only the vector layers come through to the Print.


Using a custom print service, I have tested and confirmed, it does not load vector basemap tiles in the output. It works fine loading our own imagery tiles, and loading the classic Raster basemaps from Esri. But it does not load the vector basemaps. The reason I need the custom print service is so I can add support for printing poster size (34x44") since the AGOL utility only goes to 11x17. Is there an estimated timeline for a fix?


As a cross-test, I used the Esri print service (export web map task) from AGOL. It worked fine, and printed my vector basemap fine. Update below::: it appears to be a bug between a custom Esri print service and Chrome.


Update::: an additional bug. Even in Firefox - when I added a 34x44" size template to my custom print service, I print it in Firefox and it only prints some of the tiles. See below. However once I opened the Advanced button in Web App Builder 2.12 and selected Preserve Extent; then... most of the tiles printed. It was still missing a sliver on each side.


I noticed another bug I will start a new thread about. The default template MXDs have a dual scale bar of miles and kilometers. I changed it Feet for the bottom scalebar in the MXD. But it displays Miles for both, on the print output in the WAB app. Update:::: I see there is a bug with WebApp Builder. It overrides the print templates. I set it to feet, and they are both Feet. Set it to any unit and it overrides the templates. I created a new bug thread: Bug - print templates and Web App Builder


With core AGOL leadership is tagged here, I want to note that this is another example where Web GL has issues. I think it is still premature to depend on Web GL and use featureLayers. That is why Grouping in AGOL needs to support map image layers (dynamic map services) and load map image sublayers as true map image layers and not force feature layers or web GL. Web GL still has the 'too many contexts' web worker bug that crashes Chrome after a few tabs with web GL are opened, as I found in 2018 and still appears present.


For others who are following or find this thread, the published bug is here: BUG-000128127: Chrome does not print vector tile layers when the 'U.. If this is affecting you, I encourage you to click the Subscribe button which will set you up for notifications and will also increment the count of affected customers:


Hi is there any quick and easy way to print a large image, (Tiff/300dpi/50 megapixels) in grid form of multiple smaller pages (example A4 or A3/A3+) to then assemble the printed trimed sheets and get a large image in paper with for example nine A3 sheets? Using Affinity Photo or another Serif app (I own all). My printer goes only up to A3+ borderless. Thank you very much.


You can use Affinity Designer to manually lay out a multi page spread using the Artboards tool/feature. Make your artboard match you sheet size, then simply add as many artboards as you need. Margins might get tricky tho, but I see your printer is borderless so that should help with alignment of tiles after printing


It's up to you. PDF is a container format which may contain various file types (e.g. text, image, video, sound) of various file formats and with their own settings. By creating a PDF from an image file, e.g. via Affinity export, you usually can influence its color space, profile, resolution (> pixel dimensions), compression method / compression rate (> file size, image quality), whereas the applied settings may vary with the input file format.


I noticed if you export a JPG from APub in its original size then APub doesn't recompress it on export, regardless of your set compression rate. Then altering the size from 100 to 101 or 99 % may be sufficient to cause a recompression on export. In a quite early APub version it appeared that 16bit images did not get compressed at all, while TIFF files get compressed with ZIP compression (ignoring the JPG compression export settings). I haven't tried if APub export still works this way.


It exists but appears a kind of buggy. It seems to work (according to the dialog window's preview thumbnail) to tile a document page sizes if it's larger than the printer's paper. But it displays confusion if I want to tile + scale during print, e.g. one A4 page upscaled on four A4 sheets. Then the preview doesn't scale the page content preview at all but adds empty pages. Didn't try if it would work when printed.


Another thing I've noticed with manual tiling is that only the top left, bottom left and top right crop marks are printed, meaning unless you have a full bleed design you don't know where to cut the sheet on the right + bottom sides? Could that be because I have the overlapping margin set to 0?


I would prefer to use InDesign, but here I'll show a solution for Illustrator. I'll make a grid of tight fitting artboards. This could be done in InDesign as well, but InDesign spreads can only contain 10 pages and you might sometimes need more.


First you need to find a fitting page size. Find out the print area of your printer. Subtract 6 mm from each dimension to make room for 3 mm bleed and subtract an additional 4 mm from each dimension to make room for 2 mm crop marks.


I cannot print normally, because the horizontal orientation of the document leaves the font too small to read. So, I have to do it portrait, but scale in poster mode. There are graphics that I don't need on some tiles, so I don't want to print those.


You can choose 'print to file' under "Advanced Print Setup, then insert the poster layout/sizing/scaling specifications and press print. Find the saved file after it 'prints to file,' for me this saved as a .prn file (not a pdf or jpg) - when you open it the pages will be laid out using the sizing/scaling you specified on the original file - now you can pick and choose the pages (individual tiles) of the poster that you want to print. I just figured this out after having to refill ink that started to fade at page 21 of a 36-page poster. Once I printed to file, I was able to restart the print at page 21. Hope that helps!


The print widget generates output map without the vector tile webamp or cached map image , tried several webmaps, even the ESRI topographic map (vector tile) and the output always the same-- white background (see attachment). Map image services without cache are printed on map.


3. I am using the printing service that came with the ArcGIS Enterprise and as mantioned before tried with a custom service as well, but none of them worked for me. Same problem with cached services on both.


If by tiled printing you mean more than one copy of the document per printed page, you can do this by grouping everything in your document, scaling that down appropriately, duplicating the group as many times as needed, & arranging them on the canvas however you want them to be printed on the printed page.


The only "gotcha" when doing this is Frame text does not scale if you use the Transform panel to do the scaling, but you can do the scaling by selecting the group & on the canvas scale it using the extra control handle that appears below & to the right of the bounding box when you select anything that contains Frame text.

3a8082e126
Reply all
Reply to author
Forward
0 new messages