[Uml-devel] [Bug 89553] what you see is not what you get when exporting to EPS

Achim Spangler Achim.Spangler at mnet-online.de
Wed Sep 15 07:01:04 UTC 2004


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
        
http://bugs.kde.org/show_bug.cgi?id=89553        




------- Additional Comments From Achim.Spangler mnet-online de  2004-09-15 15:59 -------
Am Mittwoch, 15. September 2004 15:13 schrieb Pekka JXXXXskelXXinen:
> ------- You are receiving this mail because: -------
> You are the assignee for the bug, or are watching the assignee.
>
> http://bugs.kde.org/show_bug.cgi?id=89553
>
>
>
>
> ------- Additional Comments From pjaaskel cs tut fi  2004-09-15 15:13
> ------- Debian does not yet ship 1.3.0 Umbrello, but I installed it from a
> .deb provided by Umbrello home page. Anyways, I uploaded png and eps
> versions if you want to take a look. The layout difference is not (in this
> case) huge but noticable, missing color I can live with.
>
> I don't know about PostScript much (cannot recall the difference between PS
> and EPS), but would it possible to take advantage of that print to file
> functionality somehow to produce the PS from which EPS could be created?
As I implemented the current scaled print function, I looked often at the 
specialities of the EPS export.

>From theory ( I don't have enough time to do further evaluation at the 
moment ):
+ the low resolution which is used for the export could cause this deformation
   -> try to replace the following line
    in function: void UMLView::printToFile(QString filename,bool isEPS):
 OLD:  QPrinter *printer = new QPrinter(QPrinter::PrinterResolution);
 NEW: QPrinter *printer = new QPrinter(QPrinter::HighResolution);
 ==>> the current resolution of just 72dpi might cause this unwanted change
 ( another possible resolution might be: QPrinter::ScreenResolution , but this
    is not as good as HighResolution)

+ the gray scale mode can be avoided by the insertion of the following line
   after the line before ( the default color mode is gray scale ):
 printer->setColorMode( Color );


BOTH CHANGES IN umlview.cpp

Hope this helps,
Achim




More information about the umbrello-devel mailing list