Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PDF3 library issue
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Miscellaneous
Thread ID:
01663043
Message ID:
01663080
Views:
97
I was able to correct the printout discrepancy by adding this code to the ReportListener. It removes any leading / trailing spaces on the objects being rendered. When this code is applied, the output from PDF3 is identical to that of CutePDF when captured on the normal print operation:
PROCEDURE EvaluateContents
LPARAMETERS nFRXRecno, toObj	&& toObj actually is "oObjProperties"

    * Does it need extra spaces removed?
    IF ALLTRIM(toObj.text) == toObj.text
        RETURN  && No
    ENDIF
	
    * We want to render just the content, not the leading/trailing spaces
    toObj.reload = .t.
    toObj.text   = ALLTRIM(toObj.text)
It may not work in everyone's case if you are expressly sending leading spaces, for example, for alignment. But in our app's case it does work.

>Hi Rick,
>
>PDF3 is derived report listener.
>All metadata (text, value, left, top, width, height) are the same for PDF3 and each report listener (base or derived).
>
>MartinaJ
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform