View Issue Details

IDProjectCategoryView StatusLast Update
0002972TechDraw[FreeCAD] Bugpublic2017-03-20 12:33
Reportersankey 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
PlatformLinuxOSUbuntuOS Version16.04
Product Version[FreeCAD] 0.17 
Target VersionFixed in Version 
Summary0002972: TechDraw PDF export from Python can only make PDFs of a Page in foreground
DescriptionWith Python it is only possible to export TechDraw Pages which are open and in the foreground.

Steps To ReproduceExperiment 1:

1. Create two TechDraw pages and draw things in them to identify them.
2. View the first page ("Page"). It should be in the foreground.
3. Open the python console and try to export the second page ("Page001") as PDF:

obj = FreeCAD.ActiveDocument.getObject("Page001")
FreeCADGui.export([obj], u"/tmp/Page001.pdf")

4. Observe that the exported PDF is in fact a rendering of the first page ("Page")

Experiment 2:

1. Continue from the same document as Experiment 1.
2. Close all TechDraw pages.
3. Try again to export "Page001" as PDF.
4. Observe that the exported PDF is completely blank!
Additional InformationOS: Ubuntu 16.04.1 LTS
Word size of OS: 32-bit
Word size of FreeCAD: 32-bit
Version: 0.17.10476 (Git)
Build type: None
Branch: master
Hash: b6150097e9cf4d7b0f5ad71f2f8750f2e7aac0d9
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
TagsNo tags attached.

Relationships

related to 0002971 new hiding foreground TechDraw page from Python causes segfault 

Activities

There are no notes attached to this issue.
2017-03-18 21:28sankeyNew Issue
2017-03-20 12:32Kunda1ProjectFreeCAD => TechDraw
2017-03-20 12:33Kunda1Relationship addedrelated to 0002971

Issue History

Date Modified Username Field Change
2017-03-18 21:28 sankey New Issue
2017-03-20 12:32 Kunda1 Project FreeCAD => TechDraw
2017-03-20 12:33 Kunda1 Relationship added related to 0002971