Hello,
I'm trying to display multi line text in a PDF Document. It displays as one line.
The lines are passed to the draw routine separated by the newline character. "\n".
We're using wxWidgets 3.1.0 and the latest wxPdfDocument source, 0.95.
Running on Window 7 and building using VS2015.
The multiline text displays fine in our application, but not in our PDF viewer.
Is there a setting I'm missing or am I doing something wrong.
Thanks.
Multi Line Text using wxPDFDC
Re: Multi Line Text using wxPDFDC
Which DC method are you using to display your multiline text? It should work, if you use method DrawText. However, currently it does not work for DrawRotatedText.rsb wrote:I'm trying to display multi line text in a PDF Document. It displays as one line.
The lines are passed to the draw routine separated by the newline character. "\n".
We're using wxWidgets 3.1.0 and the latest wxPdfDocument source, 0.95.
Running on Window 7 and building using VS2015.
The multiline text displays fine in our application, but not in our PDF viewer.
Is there a setting I'm missing or am I doing something wrong.
Regards,
Ulrich
Re: Multi Line Text using wxPDFDC
Thanks, I was using DrawRotatedText.
Re: Multi Line Text using wxPDFDC
In earlier versions of wxWidgets multi line output was not supported for DrawText and DrawRotatedText of wxDC. On user request multi line support was added for method DrawText of wxPdfDC. I will try to add multi line support for method DrawRotatedText as well.rsb wrote:Thanks, I was using DrawRotatedText.
Regards,
Ulrich
-
- Ultimate wxWidgets Guru
- Posts: 540
- Joined: Fri May 22, 2009 8:52 am
- Location: Bremen, Germany
Re: Multi Line Text using wxPDFDC
Does multiline support not include empty lines? When displaying this string on screen "one\n\ntwo\n\nthree", it works as expected in my app but is without the empty lines in the pdf.