This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
-
MegumiSawada
- Posts: 77
- Joined: Tue Mar 22, 2016 1:45 pm
- Location: Tokyo, Japan
Post
by MegumiSawada » Tue Sep 13, 2022 5:43 pm
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
-
atostaine
- Posts: 657
- Joined: Wed Jan 20, 2016 7:38 am
Post
by atostaine » Fri Sep 16, 2022 8:46 am
I think David posted getting the modern browser from MS to work. You might try that to see if it works.
Art Tostaine
-
MegumiSawada
- Posts: 77
- Joined: Tue Mar 22, 2016 1:45 pm
- Location: Tokyo, Japan
Post
by MegumiSawada » Thu Sep 29, 2022 2:55 pm
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
-
atostaine
- Posts: 657
- Joined: Wed Jan 20, 2016 7:38 am
Post
by atostaine » Thu Sep 29, 2022 11:51 pm
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.
Art Tostaine
-
Dino
- Posts: 400
- Joined: Fri Jul 19, 2019 7:49 am
- Location: Robbinsville, NC
-
Contact:
Post
by Dino » Fri Sep 30, 2022 10:01 am
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
-
MegumiSawada
- Posts: 77
- Joined: Tue Mar 22, 2016 1:45 pm
- Location: Tokyo, Japan
Post
by MegumiSawada » Thu Oct 06, 2022 5:25 pm
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