Missing bulletpoints

  • Hi,

    I'm trying to print a rich text, but run into problems when I include bullet points. The troubling thing is that it's not constant. What happens is, I have a TWPRichText-object, and use its Memo->PaintRTFPage()-method to print the text to a canvas, which I then output to either a print preview, a printer, or a pdf-file depending on user input. When continuing to preview or to printer, everything seems fine, but when I try to export to pdf my bullet points disappear. At first glance this didn't seem like problem with the component, so I did some additional testing with a separate canvas which I exported to a metafile, just to have a glance at what's going on. And lo and behold, this metafile has the same problem, even though it's completely independent of any devices. To confuse the matter even more, I at the same time export the rich text as an rtf-file, which looks great in all cases.

    Ok, this got confusing. Maybe a bit of code can clarify:

    Here, prwp->wp is my original TWPRichText-object, and PPC is the canvas that eventually goes to print.

    So, when the user wants to preview or print, PPC, temp.emf and temp3.rtf all looks good, with bullet points
    When the user wants to export to pdf, temp3.rtf looks good, but PPC and temp.emf both loose the bullet points.

    I can't understand why this would happen for both the result coming from PPC and temp.emf if the PaintRTFPage()-method is good. And I can't understand how this method would be affected by how the user wants the result to be produced...

    This all seems very weird to me, hope you have some insight for me :) I use CodeGear C++ Builder 2007 and wptools 6

    • Offizieller Beitrag

    Hi,

    Zitat

    When continuing to preview or to printer, everything seems fine, but when I try to export to pdf my bullet points disappear.

    This seems to be rather a problem with the PDF export. Do you use our product wPDF?

    Here you have the possibility to embed at least the symbol fonts, see property FontMode. Otherwise symbols, such as bullets, can usually not be reproduced.

    Julian

  • Hi,

    We do use wPDF, yes, and we already include wpEmbedTrueTypeFonts. But if this was a problem with wPDF, then why would my metafile be affected? Are we perhaps using global variables so PaintRTFPage is affected?

    Bjorn

  • Has this issue been resolved? If so, what was the problem.

    I have the similar effects here (bullets not showing) and can't figure out how to correct it. Bullets do not show in the created PDF, yet they do show in the debugmode-EMF as well as a "SaveToFile"-RTF.

    The wpdf-Export is supposed to be running in a Windows-service. If I run the source from a VCL-Forms-Application, the bullets show fine. If I run the source from the service, the bullets do not show. The components (wpdf and wptools) are created as described in the manual:

    dummy := TWPRichText.CreateDynamic;
    le_WPPDF := TWPPDFExport.Create(nil);
    le_WPPDF.Source := dummy;

    Any idea?