Skip to content

Bug in print_pdf method when the url is a viewer page of a pdf file (e.g., Chrome PDF Viewer). #20

@joao-voltarelli

Description

@joao-voltarelli

Describe the bug

  • In headless mode, when a path is not passed, 2 pdf files are being created, one with the page content and the other empty. When the path is passed as a parameter, only an empty file is saved.
  • In headfull mode, the file is not saved in the path passed by parameter, it is always saved in the default path.

Expected behavior

  • The file must be saved correctly in the path that is passed by the parameter or in the default path, regardless of the execution mode.

Steps to Reproduce

Possible Solution

  • Maybe be able to collect the page title, which is used as the name to save the file.
  • Always save the file in the default path and then manipulate to move to the path passed by the user, if that's the case.

My Platform

  • OS Version: Windows 10 Home - 21H1
  • Python Version: 3.10.1
  • Packages Version: botcity-framework-web: 0.3.1

Additional context

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions