Page 1 of 1

PDF rotate in Active X VA_WEBCTL

Posted: Tue Sep 13, 2022 5:43 pm
by MegumiSawada
Hi all,

Do you know how to rotate the PDF shown in VA_WEBCTL ActiveX control?

Code: Select all

Function Options(*DIRECT)
Begin_Com Role(*EXTENDS #PRIM_FORM) Clientheight(302) Clientwidth(484) Left(512) Top(190) Width(499)
Define_Com Class(#VA_WEBCTL.WebBrowser) Name(#VA_WEBCTL) Displayposition(1) Height(302) Left(0) Parent(#COM_OWNER) Tabposition(1) Top(0) Width(484)
Evtroutine Handling(#com_owner.Initialize)
Set Com(#com_owner) Caption(*component_desc)
Invoke Method(#VA_WEBCTL.Navigate) Url('http://xxx.com/sample.pdf')
Endroutine
End_Com
I tried setting Rotation(90) to #VA_WEBCTL but nothing changed.

Thank you in advance.

Best Regards,
Megumi Sawada

Re: PDF rotate in Active X VA_WEBCTL

Posted: Fri Sep 16, 2022 8:46 am
by atostaine
I think David posted getting the modern browser from MS to work. You might try that to see if it works.

Re: PDF rotate in Active X VA_WEBCTL

Posted: Thu Sep 29, 2022 2:55 pm
by MegumiSawada
HI Art,

Thank you for your reply.
I tried it, but even using new web control, it seems I cannot control rotation of PDF...

For reference: new web control topic
viewtopic.php?f=3&t=2559

Thank you for your advice.

Best Regards,
Megumi Sawada

Re: PDF rotate in Active X VA_WEBCTL

Posted: Thu Sep 29, 2022 11:51 pm
by atostaine
The only other way I've done it is to use ghostscript on IBM I (or any server should work) to rotate the document. I've done lots of things, combining PDF's, converting PNG to PDF, etc.

Re: PDF rotate in Active X VA_WEBCTL

Posted: Fri Sep 30, 2022 10:01 am
by Dino
I have seen some API's to rotate PDF as well. but they are paid, like this one
https://www.convertapi.com/pdf-to-rotate
not really a visualization only rotation

Re: PDF rotate in Active X VA_WEBCTL

Posted: Thu Oct 06, 2022 5:25 pm
by MegumiSawada
Hi Art and Dino,

Thank you for your advice.
The customer use VL form and asked us not using PDF feature/paid feature to rotate PDF.
I will advice them it is difficult.

Thank you!

Best Regards,
Megumi Sawada