ページがある限りスクショをし、その画像をPDFにまとめる

こんばんは。
ダウンロードができないWeb上のPDFに対して、繰り返しスクリーンショットを行い、画像から一つのPDFファイルを作成したいと思っています。

これを実現するには、どのようなアクティビティをどのような流れで使えばいいでしょうか?

任意のPDFファイルに対して使用できるようにしたいです。またPDFファイルのページ数はいつも同じではなく偏りがあります。PDFはスクロールで閲覧できるタイプです。

UI要素でスクショすればいいのかと思い、繰り返し(各UI要素)を使ってみたり、素人なりには試行錯誤してみたのですがうまくいきませんでした。繰り返し(各UI要素)でPDFの1ページ目を選択したところ、全てのページが認識されました。

Hi @m112

Use Export PDF Page As Image activity

image

Regards,

1 Like

@m112

If you are able to save odf then you can use extract pdf as image

But I believe you are unable to

If so…one way you can try is to change the number in the page number field till you reach the last numbers…and in this loop you can include take screenshot so that each page screenshot would be there

Note: ensure full page is visible before hand by setting the zoom

Steps

  1. Get the page count by using get text on the page number field at the bottom
  2. For loop with Enumerable.Range(2,Cint(Pageacount)-1)
  3. Take screenshot
  4. Set text or type into page number selection field and give currentitem.Tostring as the value

Cheers

1 Like

こんにちは

がんばって何らかの方法でダウンロードしたほうが良いように思えますが難しそうでしょうか?
ブラウザの種類と現在どのように表示されているか、前後の遷移の仕方、認証の有無等を共有いただけると良いかもしれません。
例えば以下のようなアクティビティとHTTP Requestアクティビティを組み合わせると可能となるかもしれません。