+1
Отвечен

A couple of questions about PDF best practices

steve 13 лет назад обновлен icahill (Administrator) 13 лет назад 4
Thanks for the webinar today, I do have a couple of questions.

For some reason when I'm in portrait (not landscape) my pdf is getting cut off at the top and the bottom of the page. The width seems to be fine. I've tried a bunch of different things to fix this with no luck. Any ideas? Also, the resolution on my pdfs isn't all that great. Is there anything you suggest that your publishers do to get the best pdf rendering possible?

Also, I'm wondering if you have any suggestions on how to tease out the exact location that I want to place panels on my table of contents page to link to other pages. My initial idea is to create some sort of guideline line panels, is that the best solution?

Thanks so much for all your help.
Is your tag a child of another object? If it is this might be the cause of it cutting off, because its size is bound to the geometry of its parent. Please make sure your PDF tag is set to 100% height and width of the device screen, otherwise it will not display correctly on the screen.

The resolution issue could be solved by setting your covertile attribute to "no" this will load the cover upfront and should result in a clearer PDF. From the stand point of PDF standards, we tend to lean towards print ready PDFs rather than web ready. We also to keep the size of the PDFs low, use no more than 132 DPI.

If you want to place a panel in a specific location within the wire, you can use xpos and ypos attributes. The top left corner of the screen will always be x0,y0. Play around with adding these to your panel attributes and defining where you want it to be.

If you are still having issues with your PDF, you can post the bit of wire that that tag is in on this topic, or we can have you add me as a collaborator on your project and I can look at it deeper.
Ok thanks for your reply. My PDF is not a child of any other element. I'm following the main tutorial pretty closely. I'm happy to add you to the project. Here is what I'm working with at the moment-

// I have some styles that apply to the pager thumbs and text

// etc.

....
Did you intend to display some code in this comment?
Your PDF is not sized exactly to the dimensions of the ipad, so we have to tell the pdf tag some things to get it to show up correctly. I changed your pdf tag to look like this:


<pdf name="spring12" alias="PDF" source="sp2012.pdf" height="100%" width="90%" spreads="yes" covertile="yes" tile="yes" align="center" valign="center" lwidth="100%"></pdf>


Notice that it is set at a width of 90%, your PDF is a little taller than it is wider, so we have to make this adjustment. I also added an lwidth of 100% so your landscape mode won't try and show that extra 10%. And now that it is 90x100, I added an align and valign to center it on the screen.

Unfortunately with the odd size of the issue, you will probably always have a little black on the sides.

I also set the covertile to "yes" which makes the PDF load in a better quality on launch.

Сервис поддержки клиентов работает на платформе UserEcho