TOC and div issues in pdf output

This forum is for all Flare issues related to PDF, eBook, Microsoft Word, Adobe FrameMaker, XPS, and XHTML book targets.
Post Reply
Matt Collins
Propeller Head
Posts: 33
Joined: Thu Apr 17, 2014 7:01 am
Location: Columbus, Georgia, United States.

TOC and div issues in pdf output

Post by Matt Collins »

I'm running into two issues with my pdf output:

1. The TOC isn't generating in the output, even though I have a topic with a ToC proxy as the third page in the ToC file.

2. The background image for my callout divs is not showing up in the pdf output, does show up in HTML5.

Here's what styling I have defined for each in my css:

MadCap|tocProxy

Code: Select all

MadCap|tocProxy
	{
		color: #000000;
		font-size: 10pt;
		font-family: 'Open Sans';
		font: Open Sans;
	}
Callout div:

Code: Select all

div.Note
{
	padding: 4px;
	margin-bottom: 0.50em;
	margin-left: auto;
	margin-right: auto;
	page-break-inside: avoid;
	background-repeat: no-repeat;
	font-size: 1.05em;
	background-position: left 2px top 5px;
	padding-left: 30px;
	color: #000000;
	border-left-style: solid;
	border-left-width: 0.25em;
	margin-top: 0.5em;
	background-image: url('../Images/note icon ff8000.png');
	border-left-color: #ff8000;
	background-color: #f1f3f2;
	width: auto;
	display: inline-block;
	mc-output-support: all;
	background-origin: padding-box;
}

div.Note:before
{
	content: 'Note: ';
	font-weight: bold;
	border-left-width: 0em;
}
Any suggestions?
The reasonable man adapts himself to the world,
the unreasonable man persists in trying to adapt the world to himself.
Therefore all progress depends on the unreasonable man.

- George Bernard Shaw
Lydia
Sr. Propeller Head
Posts: 373
Joined: Tue Apr 23, 2013 3:19 am
Location: The Netherlands, Amsterdam Area

Re: TOC and div issues in pdf output

Post by Lydia »

Hi Matt,

re. 2) Which version of Flare are you using? I had a problem with background images that were not showing. A bug was filed and fixed in Flare 11. Corresponding info from support: issue 93249 "An image set as a background image with xpos and ypos in background-position does not display in PDF output". I did verify it was fixed for my case.
re. 1) Did this work before? If not, are you sure that the heading levels are set correctly? E.g. h1 having mc-heading-level=1?
Using Flare 10.2 and Flare 11 on Win 7
StraygoatWriting
Sr. Propeller Head
Posts: 125
Joined: Thu Mar 05, 2015 4:24 am
Location: Chesterfield, Derbyshire, UK
Contact:

Re: TOC and div issues in pdf output

Post by StraygoatWriting »

I've got the same problem in Flare 11. I've never bothered with PDFs before but am doing it for the first time. I've been following the instructions in the help and have a contents topic that contains the outline toc proxy. In the TOC, I have a Contents entry after the main title page and that links to my Contents topic. In the target, I have the generate toc option enabled, but when the output is built, the contents chapter is not there. It just goes from Title page straight into the main content.
Lydia
Sr. Propeller Head
Posts: 373
Joined: Tue Apr 23, 2013 3:19 am
Location: The Netherlands, Amsterdam Area

Re: TOC and div issues in pdf output

Post by Lydia »

@ Straygoatwriting: so you have defined your custom topic with a toc proxy AND you have enabeld Generate TOC proxy (automatic TOC generation) in the target? I would disable the automatic generation of a TOC and try the output again. Maybe Flare should be smart enough to only put an automatic TOC if no user-defined TOC is there. But maybe it doesn't work like this (always).
Using Flare 10.2 and Flare 11 on Win 7
StraygoatWriting
Sr. Propeller Head
Posts: 125
Joined: Thu Mar 05, 2015 4:24 am
Location: Chesterfield, Derbyshire, UK
Contact:

Re: TOC and div issues in pdf output

Post by StraygoatWriting »

Yeah, I tried that, but it didn't work...and the reason was quite obvious! I didn't have a body proxy on my title page. I don't use any content from topics on my title page, so assumed that the default body frame was hiding beneath my image frame, but that wasn't the case. I must have deleted it by accident.
Matt Collins
Propeller Head
Posts: 33
Joined: Thu Apr 17, 2014 7:01 am
Location: Columbus, Georgia, United States.

Re: TOC and div issues in pdf output

Post by Matt Collins »

That sounds like what I was doing wrong on my pagelayout, I also didn't have the ToC proxy topic linked into the ToC file (embarrassingly easy fixes).

As for the background images not showing up, I discovered this was because my callout divs were set as display: inline-block; but switching them to block for print output fixed the issue.
The reasonable man adapts himself to the world,
the unreasonable man persists in trying to adapt the world to himself.
Therefore all progress depends on the unreasonable man.

- George Bernard Shaw
Post Reply