Problems changing paper size while printing to PDF
Reported by
jleedev@gmail.com,
Jun 25 2016
|
|||||||
Issue descriptionSteps to reproduce the problem: 1. Choose menu > Print... > Save as PDF Notice that Paper size is at its default value of Letter, and there are 5 pages of output. Tap the action button to save as PDF and verify that the correct output is produced. 2. Choose Paper size > Index Card 3x5 As this is smaller than Letter, I would expect to see more pages of output. Instead, there are still just 5, and the document is cut off somewhere in the middle. This can be seen in the preview, and also in the rendered output. 3. Choose Paper size > Legal As Legal is taller than Letter, the output fits on 4 pages, but the preview still indicates that there will be 5 pages of output. Page 5 is not blank but instead shows a printer icon, as if to indicate that it is waiting for a print preview that will never appear. An IllegalArgumentException is thrown from PdfRenderer. Tap the action button to save as PDF. The print dialog gets stuck and cannot be exited. I have to kill com.android.printspooler to continue. What is the expected behavior? What went wrong? In short: Printing to 3x5 paper cuts the document short. Printing to legal paper seems to wedge the print spooler and it must be killed to continue. 06-25 16:20:31.648 11733 11751 W Binder : Caught a RuntimeException from the binder stub implementation. 06-25 16:20:31.648 11733 11751 W Binder : java.lang.IllegalArgumentException: Invalid page index 06-25 16:20:31.648 11733 11751 W Binder : at android.graphics.pdf.PdfRenderer.throwIfPageNotInDocument(PdfRenderer.java:247) 06-25 16:20:31.648 11733 11751 W Binder : at android.graphics.pdf.PdfRenderer.openPage(PdfRenderer.java:202) 06-25 16:20:31.648 11733 11751 W Binder : at com.android.printspooler.renderer.PdfManipulationService$PdfRendererImpl.renderPage(PdfManipulationService.java:111) 06-25 16:20:31.648 11733 11751 W Binder : at com.android.printspooler.renderer.IPdfRenderer$Stub.onTransact(IPdfRenderer.java:86) 06-25 16:20:31.648 11733 11751 W Binder : at android.os.Binder.execTransact(Binder.java:453) 06-25 16:20:32.486 4326 10479 I ActivityManager: Start proc 12002:com.google.android.apps.fitness/u0a138 for broadcast com.google.android.apps.fitness/.api.services.alarmreceivers.ActivityDetectionAlarmReceiver Did this work before? N/A Chrome version: 53.0.2774.4 Channel: dev OS Version: Android 6.0.1; Nexus 5X Build/MTC19V Flash Version: This might be partially fixed on N, but I'm not 100% sure. In particular, printing on Legal paper seems to work, but printing on 3x5 paper still cuts off the document somewhere in the middle.
,
Jun 27 2016
,
Aug 30 2016
This is still here on N, but the symptoms are less severe as I described; the printing system no longer crashes. Mozilla/5.0 (Linux; Android 7.0; Nexus 5X Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.80 Mobile Safari/537.36 I can't test on 54 because there is no Print item in the menu for some reason. In particular: - Selecting a larger paper size prints correctly, but the unused pages in the preview show "Can't display preview". - Selecting a smaller paper size still cuts off the document at the end.
,
Aug 30 2016
tedchoc: Is there someone that looks at Android printing issues?
,
Sep 21 2016
,
Sep 22 2016
Thanks for the report. I could repro the issues you described in Chrome Dev too (M55). In M54 Print has been moved to the Share menu. I don't have cycles to look into this right now, and I don't know if there is someone looking at printing issues. I'll grab the bug to put it in my queue, but if someone else has a moment to start working on it earlier, feel free to take it. I'll update here if I have an ETA for a fix.
,
Sep 6 2017
,
Nov 6 2017
I observed this issue before, and I had resolved this already.
,
Nov 6 2017
Issue 313761 has been merged into this issue.
,
Nov 7 2017
|
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 by acid0804...@gmail.com
, Jun 26 201678 bytes
78 bytes View Download