Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Extract PDF from XML
Message
From
16/11/2022 07:54:02
 
 
To
16/11/2022 07:06:55
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Miscellaneous
Thread ID:
01685345
Message ID:
01685349
Views:
38
Yes, but limited number of parameters. I think STRTOFILE is enough (or not?).

Not sure if STRCONV() function exists in VFP6.


>I know that :-) but how to convert to PDF file (base 64 encoded)? Simply STRTOFILE or something else?
>
>Hi,
>
> Because you don't write more...
>
>LOCAL m.lcData, m.liES, m.liEE, m.lcES, m.lcEE
>m.lcES="<pdfstart>"
>m.lcEE="</pdfstart>"
>
>m.lcData=FILETOSTR("any.xml")
>m.liES=AT(m.lcES, m.lcData)
>m.liEE=AT(m.lcEE, m.lcData)
>
>m.lcPDFDATA=SUBSTR(m.lcData, m.liES+LEN(m.lcES), m.liEE-m.liSE-LEN(m.lcES)-1)
>
>?m.lcPDFDATA && data can be encode base64 or hex 
>
>
>MartinaJ
>
>>How can I extract PDF file which is integrated in XML as a attachment tag? (Note VFP6)
>>
>>Thanks in advance.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform