Opened 8 years ago

Last modified 3 years ago

#13313 closed bug

Print to file (PDF) not working... — at Version 23

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.

Change History (28)

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)
Note: See TracTickets for help on using tickets.