Opened 8 years ago

Closed 3 years ago

#13313 closed bug (fixed)

Print to file (PDF) not working...

Reported by: bruno Owned by: phoudoin
Priority: normal Milestone: R1/beta4
Component: Printing Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: x86-64

Description (last modified by bruno)

using Haiku 64bit x86 hrev55736 with StyleEdit...

Trying to print text to pdf with noto sans.ttf font.

Attachments (5)

syslog (233.2 KB ) - added by bruno 8 years ago.
print_addon_server-773-debug-18-02-2017-16-05-10.report (13.1 KB ) - added by vidrep 8 years ago.
print_addon_server-773-debug-18-02-2017-16-05-40.report (14.0 KB ) - added by vidrep 8 years ago.
printallpages.png (8.6 KB ) - added by bruno 8 years ago.
errorlog.png (102.7 KB ) - added by bruno 8 years ago.

Download all attachments as: .zip

Change History (37)

comment:1 by diver, 8 years ago

Component: - GeneralPrinting
Description: modified (diff)
Owner: changed from nobody to phoudoin
Platform: x86All
Priority: blockernormal

comment:2 by humdinger, 8 years ago

As the ticket says "using Haiku x86 hrev50955", I assume it's a gcc5-only build? On gcc2hybrid hrev50953 at least, printing to PDF workd for me with StyledEdit, BePDF, Showimage and (badly) Terminal.

comment:3 by bruno, 8 years ago

it is a x86 gcc2 build.. I will attach the syslog...

by bruno, 8 years ago

Attachment: syslog added

comment:4 by vidrep, 8 years ago

I tried to replicate with slighly different result. Print to file from StyledEdit text document with PDF Writer causes the print_add-on_server to hang, one CPU core to peg at 100%, and no data in preview window. However, the PDF is created, and displays correctly when opened with BePDF. I attached the debugger to the print_add-on_server, and have attached reports for the debugged threads.

Last edited 8 years ago by vidrep (previous) (diff)

by bruno, 8 years ago

Attachment: printallpages.png added

by bruno, 8 years ago

Attachment: errorlog.png added

comment:5 by bruno, 8 years ago

Btw... ShowImage is printing without problems to file (PDF!)

comment:6 by vidrep, 6 years ago

This is a regression. Confirmed not working on hrev52716 x86_64.

comment:7 by diver, 6 years ago

Platform: Allx86-64

Just stumbled upon this bug and can confirm that printing to PDF works under 32 bit Haiku and doesn't under x86_64. Under 32 bit Haiku PDF Writer causes the print_add-on_server to hang, one CPU core to peg at 100% as reported above.

comment:8 by diver, 6 years ago

High CPU usage is being tracked in #9429.

comment:9 by jackburton, 4 years ago

Is the PDF Writer source code hosted here https://github.com/HaikuArchives/PDFWriter ?

comment:11 by jackburton, 4 years ago

I tried hrev54549 and it works fine. Although initially I recompiled the printer addon from source and put it in non-packaged. I tried it and it worked. Then i removed the addon from there, and it was also removed from system.

comment:12 by diver, 4 years ago

Did you try it on x86_64?

comment:13 by jackburton, 4 years ago

Yes, on x86_64

comment:14 by bruno, 4 years ago

I just tried again, and it does not work for me... Got a blank white page, and I am not able to choose the right font. I have only Helvetica to choose from. Maybe because I have all other fonts in my non-packaged folder?

in reply to:  14 comment:15 by jackburton, 4 years ago

Replying to bruno:

I just tried again, and it does not work for me... Got a blank white page, and I am not able to choose the right font. I have only Helvetica to choose from. Maybe because I have all other fonts in my non-packaged folder?

Did you try on master or on beta2 ?

comment:16 by jackburton, 4 years ago

Tried again: with the stock PDF Writer addon, it doesn't work. With the PDF Writer addon compiled from source and put into /boot/system/non-packaged/addons/Print, it works.

comment:17 by modeenf, 4 years ago

In hrev54972, I see that there are no PDFWriter to choos from if you like to make a new PDFPrinter. Nor are there any PDFWriter file under add-on, Printer. So I guess the drivers missing? There are no PDFWriter source code ether in Haiku.

So a workaround. Download PDFWriter from HaikuDepot. Remove the printer Print To PDf and make a new one. (can be same name), Choose PDFWriter and Print To File.

comment:18 by pulkomandy, 4 years ago

It is unclear if this bugreport is about a bug in PDF Writer (in which case it should be moved there) or a more general bug with the print kit. Do other printers work properly?

comment:19 by modeenf, 4 years ago

The preview works, so I Think it's the PDFWriter that comes with Haiku.

comment:20 by modeenf, 4 years ago

Or that Haiku har the PDFWriter in printer option but the driver don't exist from start, kan it be a jam file that puts it there?

comment:22 by bruno, 3 years ago

Description: modified (diff)

Maybe I have no pdf writer translation tool anymore? Maybe I deleted it by accident in the printer preferences window?

The "Ok" Button is greyed out now!? See: http://0x0.st/-Cjn.png

Print to file is missing too? http://0x0.st/-CjR.png

Last edited 3 years ago by bruno (previous) (diff)

comment:23 by bruno, 3 years ago

Description: modified (diff)

comment:24 by bruno, 3 years ago

I installed "pdfwriter" from HaikuDepot but if I try to use it with StyleEdit the j"OK-Button" is grayed out!?

comment:25 by humdinger, 3 years ago

You first have to set up the page format and print job to get a clickable OK button.
The PDF translator has nothing to do with all this. That is just used to e.g. view PDFs in ShowImage as a bitmap.

comment:26 by cocobean, 3 years ago

  1. System -> Peferences -> Printers

Note: You should see 'Save as PDF' which a checkmark over the printer image (make default). The driver info should show 'PDF Writer' with 'Transport: Print to File'.

If you use 'Print test page', the page setup dialog box appears which shoulod show 'Printer: Save As PDF'. Continue from there to do 'Page Setup' and other features to test. If you press "OK", the print addon server dialog box appears to save file to a file system directory. Give a file name and sAve your new PDF file. Review for results with BePDF.

Version 0, edited 3 years ago by cocobean (next)

comment:27 by cocobean, 3 years ago

Ticket resolved.

comment:28 by leavengood, 3 years ago

Milestone: UnscheduledR1/beta4
Resolution: fixed
Status: newclosed

comment:29 by bruno, 3 years ago

Resolution: fixed
Status: closedreopened

I like to reopen this problem!

I cannot choose:

"Continue" from there to do 'Page Setup' and other features to test. If you press "OK", the print addon server dialog box appears to save file to a file system directory. Give a file name and save your new PDF file. Review for results with BePDF.

http://0x0.st/oXe3.png http://0x0.st/oXeG.png I have to reinstall the print to pdf driver! Because i accidently deleted it!? How to reinstall the driver?

comment:30 by cocobean, 3 years ago

  1. pkgman install pdfwriter

comment:31 by bruno, 3 years ago

ok seems to work now after installing: "pkgman install pdfwriter"

comment:32 by pulkomandy, 3 years ago

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.