Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Making images scalable for Rational Rhapsody reports using the Rational Publishing Engine when outputting to PDF

When i try to pull Class diagram which have a lot of operation and generating PDF ouput is coming in blur and Word coming high quality. I have used path.replace(jpg , EMF ) script but not seeing the quality in PDF format.But The sequence diagram i used same logic and getting quality high in pdf report.Why it have different behavior for class diagram and sequence when i used same logic n same pdf report?

0 votes



One answer

Permanent link
If the class diagram is good in Word output and not clear in PDF output, it is an issue. Can you save generated Word output as PDF file and confirm if the diagram is clear in PDF file?

0 votes

Comments

Ya i have done that .. the generated word i have exported as pdf the image qulity is same as in word means its clear. But the generated pdf by rpe still have unclear. It is observed that when i gave more operation around 15 in class diagram it have issue. 

I see the image (1.png) shown clearly in both Word and PDF generated by RPE. Can you confirm if the unclear image is only when EMF is used and not when jpg is used? If so, please provide the EMF file (replace "__JPG__" with "__EMF__" in ClassDiagram path and request the path in browser).
As a workaround, you can use a macro to save Word output as PDF.
Sub Save_to_PDFA()
   ActiveDocument.ExportAsFixedFormat OutputFileName:= _
       Replace(ActiveDocument.FullName, ".doc", ".pdf") , _
       ExportFormat:=wdExportFormatPDF, OpenAfterExport:=False, OptimizeFor:= _
       wdExportOptimizeForPrint, Range:=wdExportAllDocument, Item:= _
       wdExportDocumentContent, IncludeDocProps:=False, KeepIRM:=True, _
       CreateBookmarks:=wdExportCreateNoBookmarks, DocStructureTags:=True, _
       BitmapMissingFonts:=True, UseISO19005_1:=True
End Sub

in the image 1 and 2 (1 is word output and 2 is PDF output image) it is unclear..I have the observation when class diagram is large the only the issue comes else the output is clear.The actual JPG output is always unclear in both output.When i replace JPG with EMF i am getting better quality only in Word.

I have attached the template too.

Where to use this macro as i am not using any style sheet ?I didn't tried macros till now?Can you help with steps?

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: May 21 '20, 11:38 p.m.

Question was seen: 1,224 times

Last updated: May 22 '20, 10:17 a.m.

Confirmation Cancel Confirm