I'm converting html to a pdf file and wanted to know if I can tell when a table row reaches a new page in the pdf or is there a way to account for it?
Can I get the page number or know it exceeds the page before conversion/after conversion?
Maybe a fixed page dimension?
It seems like it would be hard to account for and I should just break a table every few rows.
Related
I have this pdf that I'm trying to export, but when I do, I add these no-break-inside-print
to render the page properly.
Because I do so, I think that the counter(pages) doesn't get the number of pages properly
I am using asp.net web form and the content is displayed let just say in the about-us.aspx.
I know it is impossible to disable Save As option in the browser file menus, but is it possible to have users saving it as a blank HTML page instead of the content?
Even if you could disable the "save as" feature, which... no, you can't. But say for an instant you could. Anyone who wanted (a copy of your webpage) could just take a screen shot and print that. Or, they could open the source code and copy/save that. Saving the file isn't the only way that they can grab your content.
Is there a reason that you don't want them to copy it?
Are you trying to prevent people (in general) from seeing the page?
If there is some other consideration, please leave a comment so we can expand on this.
I have a program that let's people design web pages graphically. Then hitting Publish creates an html file that is supposed to be an exact copy of what they created. The elements created by the editor are HTML elements. Publish then gathers up all the elements that have been created and for each one adds it to a string with
canvasOuterHTML += clone$[0].outerHTML;
So all the styles, text, etc., get put on the string. This string, along with some other information is written to the .html version of the page, and when this .html is loaded into a browser the browser displays the page!
But something is expanding the published page vertically. I've created the simple page below to illustrate. The first image is the page in the editor. The second image is what the html displays in the browser.
I'm completely stumped because the HTML and CSS for the two markups is exactly the same, so how can one be higher? I can't even think of a mechanism that would do that. Does anyone have any ideas? Thanks.
Overview:
After viewing a webpage online (using Firefox), I saved the webpage to an .html file. Upon then viewing the saved html file in Firefox, much of the content is just not there: I basically just see what amounts to a header and footer. The content I am actually interested in is not displayed. However, when I use an editor to look at the .html file, I can find the content among the html code fine. I just doesn't show up when I view the page and I can't figure out why. I am wondering how I could alter the code in order for the full page to display.
Specifics:
The webpage I am trying to view is for a recipe (http://www.cooksillustrated.com/recipes/1). This website requires a paid login, so you will likely not see the entire page anyway.
This link has a zip file of the .html file and the folder with the other images and stuff - https://drive.google.com/open?id=0B7IvODgWvxBbc1EwcmFwa050REE. The .html file has some name/email info in it but I have replaced it with made up info.
The relevant part of the .html file that does not view is lines 395 to 408. All the parts of recipe are right there, but it does not display in a browser. (I tried to display these html lines inline, but it exceeds the 30000 character limit.)
This makes me think that something (with which I am not familiar) in the html code is preventing viewing that content, and, if it were deleted or altered, would solve my problem. I have tried searching the web for an answer, but came up empty (I was not not really sure what to ask). And I have very little experience with html to know much of what is going on in that file. (And I want the html file; I am not looking for an alternative like just printing to pdf.)
If anyone can provide some pointers/direct me to a resource that would be greatly appreciated.
I have a ssrs report that when exported to word gives ~7 pages. When exported to pdf it suddenly gives ~18 pages, a lot of blank ones only including header and footer.
I have a few page breaks in the report so information belonging together starts on a new page as the customer wants it. This particular report should be used for word, so it looks fine. But there was complaints about it not working properly for pdf anyway.
The Body width is smaller than Page width, Left margin, Right margin which according to this link can be an issue: How to get rid of blank pages in PDF exported from SSRS
The total height however is 140cm.
Suggestions / Help is appreciated.
just try to set "ConsumeContainerWhiteSpace" property of Report to True, by default its False.
I had tried that in almost same issue as yours and it worked!!!!!!!!
The issue I had was the format became .005 cm wider than what the Standard A4 doc allowed me, 210x297mm.