Skip to main content
Inspiring
January 13, 2010
Question

Exporting PDF of selected text frame item(s).

  • January 13, 2010
  • 1 reply
  • 1149 views

Hi,

I am getting PDF of a selected image frame properly (just the image frame is visible in the PDF) using kPDFExportItemsCmdBoss. But for text frame there is some gap in the left and top side. What could be reason for this and how can I fix it.

Jasmine

This topic has been closed for replies.

1 reply

Inspiring
January 13, 2010

I have got the same result.

I think kPDFExportItemsCmdBoss is using frame size and FontBBox of used font to calculate CropBox, because the gap width is different by the font or font size.

I think this is not good.

When I set enough inset values or frame width, the gap width is same.

When I have used SnapshotUtilsEx , I have gotten the correct sized gif file.

I think the text frame differs from the pict frame.

In Japanese composition, some characters are placed out side of text frame, for instance Ruby, Kenten, Hanging Kutouten.

Inspiring
January 14, 2010

Hi Norio,

You are right, the gap increases with increase in font size. Can't we in some way instruct the PDF exporter to ignore the FontBBox.

Jasmine