Forum Replies Created
-
AuthorPosts
-
in reply to: CSS div positioning bug May 26, 2010 at 17:54#27961
Hello,
I have pd4ml.pro.trial.360fx1 version and class PD4Constants doesn’t contain PD4ML_ABSOLUTE_ADDRESS_SPACE.
Is it possible?Regards,
pkin reply to: How auto splite image inpd4ml May 26, 2010 at 20:50#27355If the image dimensions fit a single page, there is a couple of methods should help:
- PD4ML API call pd4ml.enableImgSplit(false)
- CSS style IMG { page-break-inside: avoid }. In most of situations it is better to apply style page-break-inside: avoid not to an image directly, but to its hosting container (div, table row, etc).
Of course, if a particular image does not fit a single page, both methods take no effect for it.
From the two alternatives we would recommend to use the CSS approach. If your HTML documents are read-only, you may define the extra styles with addStyle() PD4ML API call.
in reply to: pdf resize problem May 26, 2010 at 21:27#27925Normally the issue only impacts a screen view of documents. Print must be ok.
If you define cell background, by small zoom factors the background may partially overlap cell borders (it is an issue of coordinate rounding by a rendering of PDF in Acroread). A workaround is to un-define table cell background colors.
in reply to: HTML/CSS rendering issues May 27, 2010 at 14:25#26399Hi,
I am using PD4ML Pro.
The HTML file I want to convert into a PDF file contains a table formatted by CSS.
Obviously, the rendered PDF file does not respect the width and padding properties I specified in my CSS file.Also, the following warning message appears several times:
Warning: Invalid syntax in CSS selector: “”Can you explain this behaviour and suggest a fix/workaround ?
Thank you.
—
Part of HTML file generating the table:
[language=HTML:3hpogtmq]Selection Object Full Name Metric Name User First Snapshot Last update Justify
TESTADGMS25ADG.TST_PCHIT_KB..APM_SCOPE_FORMS
Avoid Too Many Copy Pasted Artifacts CAST ADG auto snap 8 05-26-2010 this is my comment for exclusion et je raconte ma vie [/language:3hpogtmq]
—
Part of CSS file formatting the table:
[language=CSS:3hpogtmq].checkbox {
display: none;
}
.ViolationListDataTable {
font-size: 8px;
margin: 0 0 18px 0;
width: 100%;
table-layout: fixed;
}
.ViolationListDataTable td {
border-top: #999999 1px dotted;
height: 16px;
}
.ViolationListDataTable .metric,
.ViolationListDataTable .objfullname,
.ViolationListDataTable .comment,
.ViolationListDataTable .user,
.ViolationListDataTable .snapname {
white-space: nowrap; text-overflow: ellipsis; overflow: hidden; text-align: left; padding-left: 1%;
}
.ViolationListDataTable .selstatus,
.ViolationListDataTable .date,
.ViolationListDataTable .checkbox,
.ViolationListDataTable .auto {
text-align: center;
}
.ViolationListDataTable .metric {
width: 15%;
}
.ViolationListDataTable .objfullname {
width: 18%;
}
.ViolationListDataTable .user {
width: 10%;
}
.ViolationListDataTable .snapname {
width: 6%;
}
.ViolationListDataTable .checkbox {
width: 2%;
}
.ViolationListDataTable .selstatus {
width: 6%;
}
.ViolationListDataTable .comment {
width: 12%;
}
.ViolationListDataTable .date {
width: 10%;
}[/language:3hpogtmq]in reply to: General questions / FAQ May 28, 2010 at 07:57#26400I am using pd4ml.lib.trial.360fx1 evaluation version
when I enter URL like http://www.google.co.in. In that case blank pdf is generated of only 2 kb. Why I am not getting content.
Same URL if I type in website http://www.html-to-pdf.net/free-online-pdf-converter.aspx
I am able to generate PDF I have attached that here. We want to buy this before 31st May But we need generic PDF conversion like any url I enter it should generate into PDF.
in reply to: General questions / FAQ May 28, 2010 at 08:03#26401I am using pd4ml.lib.trial.360fx1 evaluation version. I have Issue that when HTML page is long and I generate PDF in that case my remaining contents are skipped. Is there any way by which it automatically fits my html content into pdf using scale down or something like that.
I set following properties
pd4ml.setPageSize( 768,1024);
pd4ml.setPageInsets( new Insets(10,10,10,10));
pd4ml.setHtmlWidth(768 );Now If my html page size is greater than 1024px in that case my remaining contents are skipped rather then to add new pahe in PDF. I am not able to generate new page in PDF any how.
in reply to: URL not rendering content May 28, 2010 at 09:59#28045Hmm… I opened the attached PDF and it does not appear blank. It is google.co.in start page.
Please take into account, despite the product name “HTML-to-PDF converter”, PD4ML is not intended for web sites capture. Our goal is on PDF side: it is to allow you to define PDF layouts of any level of complexity with a language everybody knows – HTML.
in reply to: When HTML page is large generated pdf skipping contents May 28, 2010 at 10:02#28046A doument sample would help to analyze the issue. Could you please attach it to a post or send to PD4ML support by email.
in reply to: When HTML page is large generated pdf skipping contents May 28, 2010 at 14:02#28047Here I have attached test.zip file.
Can you please check that why contents are skipping and even Body ‘s stylesheet that gray colour is not coming in PDF file
in reply to: pd4browser.properties May 31, 2010 at 09:22#276881. Actually viewer.params is intended to make possible to open generated PDFs by exotic PDF viewers (if any). Let’s say the viewer requires to put an extra switch before PDF name:
myexoticpdfreader.exe -input output.pdf
In the case you would need to define
viewer.params=-input
in pd4browser.properties. If you want to use the property to pass PDF open parameters, you need to specify them fully:
viewer.params=/A “page=3=OpenActions”
(the above makes sense only in offline scenarios!)
2. You may define desired page format in pd4browser.properties
page.format=LETTER
but why don’t you use Pd4Php for that?
In the case you may pass the open parameter (from your first question) like that:
in reply to: When HTML page is large generated pdf skipping contents May 31, 2010 at 12:02#28048The issue is caused by “OVERFLOW: hidden” style of body element.
You need either to remove the style, or to allocate space with not absolutely positioned content. For example by adding of
after
in reply to: including external html May 31, 2010 at 12:07#28043tag has been implemented for special use (conversion of lotus notes documents), so for the time being it accepts base64-encoded tag body only. SRC attribute is not currently implemented.
in reply to: not generating pdf for html page with contains frame May 31, 2010 at 12:12#28038Please send us (or attach to a post) such PDF sample.
The message reminds me the default apache web server page. So I would suspect network or proxy configuration issues on your side.
in reply to: logo in an img tag blows up May 31, 2010 at 14:03#27915Use longer file names than 9 characters. It’ll help.
in reply to: Problem in displaying Japanese characters May 31, 2010 at 21:17#27804The information in that link is helpful. Thank you.
-
AuthorPosts