Forum

Author Topic: Report language  (Read 5580 times)

Dainius Tamošiūnas

  • Newbie
  • *
  • Posts: 3
    • View Profile
Report language
« on: June 08, 2017, 07:59:21 PM »
In PhotoScan Windows version it generates PDF report in the same language that is used for GUI (Tools > Preferences > General > Language) so if you choose spanish, it will generate PDF report in spanish, if you choose german - the PDF is in german, etc.

How to get the same result in Python script on Linux using exportReport() method?

Some test code:
Code: [Select]
import PhotoScan

project_path  = "C:/project4/Agisoft Project/project.psx"
report_path  = "C:/project4/report.pdf"

app = PhotoScan.Application()

doc = PhotoScan.app.document
doc.open(project_path)

chunk = doc.chunk
chunk.exportReport(report_path)

app.quit()

Dainius Tamošiūnas

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Report language
« Reply #1 on: June 11, 2017, 10:34:55 PM »
Anybody? :)

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15441
    • View Profile
Re: Report language
« Reply #2 on: June 12, 2017, 01:15:41 AM »
Hello daitam,

There's no such option from Python, at least without interface restart.
Best regards,
Alexey Pasumansky,
Agisoft LLC

Dainius Tamošiūnas

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Report language
« Reply #3 on: June 12, 2017, 11:33:41 AM »
Thanks Alexey.

at least without interface restart.

What do you mean by that?