Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PDF and VFP data on first page
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows Server 2008
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01530528
Message ID:
01530658
Views:
50
>>>>Hey Gang!
>>>>
>>>>Question....
>>>>
>>>>We have a PDF that gets printed.. from VFP.... cool.
>>>>
>>>>Now they wish to print on the first page of the PDF, at the top, info about a client.
>>>>
>>>>Any quick and dirty way to do this from VFP ???
>>>>
>>>>Thanks!
>>>
>>>Why not create a new PDF and print it before the existing one?
>>
>>They wish to print the new info on the TOP of the existing PDF file. I don't understand what you wish for me to do exactly....
>>
>>Thanks!
>
>Is this a static PDF?
>
>If so, can you just duplicate it in a VFP report so you have control of the report content?
>
>I'm also thinking that XFRX had a limited capability to operate with existing PDF files. I'm not sure if that would do you any good.
>
>UPDATE..
>
>From the XFRX manual..
>
>8.4 Appending generated output to existing PDF Documents
>Note: This paragraph applies both to VFP 9 and VFP 8.
>
>From version 10.1, XFRX is able to append the generated report to an existing PDF document. It is possible to append the report at the end of the document or at an arbitrary position within the document: with either inserting the new pages or replacing the pages in the existing PDF document.
>
>In XFRX for VFP 8 this feature is controlled by a new parameter of SetParams(…) method: tuAppend. Please see the SetParams method reference na stránce 74 for more information about setting this parameter.
>
>In XFRX for VFP 9 you can interchangeably use the new parameter of SetParams(…) method or AppendToFile property of the XFRXListener class.
>
>Notes:
>
>It's not guaranteed that XFRX will be able to append to any PDF document. It works fine with PDF documents generated by XFRX and we've successfully tested PDFs from other sources, too, but the PDF specification allows for some internal structures that XFRX wouldn't be able to decode. (To be precise: XFRX doesn’t support linearized PDF documents and documents that use page tree structures).
>Because of the way the PDF file is constructed, the size of the PDF document never shrinks, even if the number of pages in the resulting PDF document is smaller than in the original one.
>
>
>Example: The TEST.FRX report will be appended to the existing TEST.PDF document. If the TEST.PDF file does not exist, it will be created.
>
>
>
>Oxfrx = XFRX("XFRX#LISTENER")
>lnRetVal = Oxfrx.SetParams("test.pdf",,,,,,"PDF",,,,.T.)
>IF lnRetVal = 0
> REPORT FORM test object oxfrx
>ENDIF

Thanks, Good Info!!!
Tommy Tillman A+ NetWork+ MCP
Previous
Reply
Map
View

Click here to load this message in the networking platform