cant set the width of the content to 100%
See original GitHub issuenot sure what im doing wrong. help appreciated. ive tried css and wrapping the content in a div or html and body tags
printAsPDF(source: string, filename: string): void {
const pdf = new jsPDF({
unit: 'px',
format: 'letter',
orientation: 'portrait',
fontsize: '10',
zoom: '0.5',
width: '100%',
height: '100%',
windowWidth: '100%',
windowHeight: '100%',
});
pdf
.html(source)
.then(() => pdf.save(filename));
}
here is the html source
"<p><strong>Terms of Use</strong></p>
<p>Last Revised October 5, 2022</p>
<p>The Canopyright platform was designed with simple principle in mind – that cannabis strains are works of art and should be treated as such. Although copyright law does <em> <strong>not</strong> </em> protect plant cultivars, the goal of O&B Solutions LLC d/b/a Canopyright ("we", "us", "our" and "Canopyright") is to create a framework for our users ("you" and "your") to approximate copyright-style intellectual property rights for cannabis strains by contract simply by agreeing to a common set of terms and conditions, <strong>which you are reading right now</strong> (the "Terms"), and requiring that our users maintain time-stamped plant samples.</p>
<p>Recognizing this intellectual property right means that licensed cannabis cultivators using our platform (each, a "Buyer") can license works of cannabis breeding fixed in a physical plant sample ("Strains") and generate invoices from the originator(s) of those Strains or the authorized representatives thereof (each, a "Seller") in confidential transactions automatically by reviewing track-and-trace data.</p>
<p>Unlike typical website terms of use, these Terms set forth <em> <strong>both</strong> </em>the terms and conditions governing your relationship with Us, and also each Seller's licensing agreement with the Buyers cultivating Strains. We've organized these Terms into five parts:</p>
<p>Part I Federal Law Acknowledgment</p>
<p>Part II Terms Governing Strain Registration</p>
<p>Part III License Agreement Between Sellers and Buyers</p>
<p>Part IV Special Terms for Unlicensed Sellers And Buyers</p>
<p>Part V Terms of Use of the Site</p>
<p>Most of Canopyright's platform (our "Services"), website and mobile application (together, the "Site") is provided free of charge, but we will charge an administration fee if we are generating your invoices for value or if you are using any of our other paid features.</p>
<p>These Terms set forth the legally binding terms and conditions that govern your use of the Site AND THE SERVICES. By accessing or using the Site OR THE SERVICES, you are accepting these Terms (on behalf of yourself or the entity that you represent), and you represent and warrant that you have the right, authority, and capacity to enter into these Terms (on behalf of yourself or the entity that you represent). you may not access or use the Site or accept theSE Terms if you are not at least 21 years old. If you do not agree with all of the provisions of these Terms, do not access and/or use the Site.</p>
<p>PLEASE READ THIS AGREEMENT CAREFULLY AND MAKE SURE YOU FULLY UNDERSTAND IT, AS MANY OF THE OBLIGATIONS SET FORTH HEREIN WILL BE BINDING ON YOU EVEN IF YOU ARE NO LONGER USING OUR SERVICES.</p>
<p><strong>PART I</strong></p>
<p><strong>Federal Law Acknowledgement</strong></p>
<p>By using the Services, you expressly acknowledge that any commercial cannabis activities that you are engaged in are in compliance with all federal, state and local laws, rules and regulations; <em>provided</em>, <em>however</em>, that Marijuana is included on Schedule 1 under the United States Controlled Substances Act. Under the federal laws of the United States of America, manufacturing, distributing, dispensing or possession of cannabis is illegal, and individuals are subject to arrest and/or prosecution for doing so. You further acknowledge that medical use is not recognized as a valid defense under federal laws regarding marijuana. You further acknowledge that the interstate transportation of marijuana is a federal offense.</p>
<p><strong>PART II</strong></p>
<p><strong>Terms Governing Strain Registration</strong></p>
<ol><li><p>To register a cannabis Strain you will need to provide (i) fresh leaf material from a cannabis plant evidencing your Strain, and (ii) a new, unique Strain name. Even if you are the recognized Seller of a cannabis Strain currently used in commerce, you will still be required to give your Strain a new name for purposes of using Canopyright. If you are using Canopyright to track and maintain a physical plant sample being stored on your premises, rather than using a third-party depositary, you will also need clear, tamper evident containers for your plant samples and a printer to print out a unique QR code identifier. While Canopyright does not endorse any specific vendor of such containers, most commercially available clear "evidence bags" are sufficient for this purpose. Once you have followed the workflow, physical plant samples stored on your premises should be kept in a freezer. If using a tamper evident package that is not recommended for frozen material, please place your sample in a "Ziploc®" or equivalent freezer bag. We strongly recommend that users maintain multiple physical samples of each Strain to protect against power outages, theft, acts of god and other similar perils. In addition, we strongly recommend that the fresh leaf and stem material used for your physical plant sample be of a unique shape and pattern to mitigate the risk of counterfeiting.</p></li><li><p>By registering a Strain of cannabis on Canopyright, you are attesting (the "Attestation") that, (i) to the best of your knowledge, (x) the Strain being registered is your original work of cannabis breeding or (y) if you indicated that you are a "breeder representative," that you have written permission the original breeder to utilize the Services in all respects, and (ii) the physical sample of fresh leaf material included in your registration is a genuine embodiment of the Strain being registered. Your Attestation is legally binding. Should the Attestation be false, you could be subject to disciplinary action from us (including but not limited to removal from Canopyright), <em>as well as</em> breach of contract claims from Buyers who are entering into Licenses, defined below, with you. If you are not the original creator of your Strain, you will be given the option to state your affiliation with such original creator.</p></li><li><p>Canopyright is designed to be a cannabis community resource where Sellers and Buyers can recognize Sellers' intellectual property rights in individual cannabis cultivars and exchange possession of plant materials comprised of such cultivars in accordance with applicable law without fear of Misappropriation. For purposes of these Terms, "Misappropriation" means (i) use of a Seller's Strain in a manner not contemplated by a valid License and (ii) falsehood of the Attestation.</p></li><li><p>While it is not our intention to take any such action, ever, upon receipt of credible allegations of fraud, willful misconduct or a material breach of these Terms, as determined by Canopyright's legal counsel, CANOPYRIGHT RESERVES THE RIGHT AT ALL TIMES TO AUDIT ANY STRAIN REGISTRATION FOR COMPLIANCE WITH THE ATTESTATION AND APPLICABLE LAW AND, BY USING THE SERVICES, YOU ARE AGREEING TO ALLOW SUCH AUDIT TO PROCEED. CANOPYRIGHT MAY TAKE ANY AND ALL REASONABLE MEASURES, INCLUDING BUT NOT LIMITED TO INSPECTION AND TESTING OF PHYSICAL PLANT SAMPLES, IN CONNECTION WITH SUCH AUDIT. Canopyright views this as an extraordinary remedy only to be used in extreme circumstances.</p></li></ol>
<p><strong>PART III</strong></p>
<p><strong>License Agreement Between Sellers and Buyers</strong></p>
<ol><li><p><strong>Binding Agreement</strong>. A Buyer and Seller enter into an agreement to license a Seller's Strain ("License") automatically by clicking "Accept" while using the Services and, once commercial terms have been agreed to, checking the box stating "I agree" to the Canopyright Terms of Use.</p></li><li><p><strong>License</strong>. The License allows the Buyer during the term specified in the License ("Term"), on a nonexclusive, non-sublicenseable, and non-transferable basis, in compliance with applicable law, to use plant material comprised of the Seller's Strain in connection with the planting, growing, harvesting, drying, curing, grading and trimming of cannabis derived from the Strain (the "Licensed Products") at the Buyer's licensed cultivation premises; package Licensed Products; and transfer Licensed Products to a licensed distributor or manufacturer for commercial sale.</p></li><li><p><strong>Payment</strong>. If the Seller and the Buyer utilize Canopyright's invoicing features, payment will be due within 30 days of date of invoice. If the Buyer is delinquent in any payment due to the Seller under these Terms, said amount shall accrue interest at the rate 1% percent per month or the maximum amount allowed by law (whichever is lower). Canopyright does not process payments between Sellers and Buyers at this time.</p></li><li><p><strong>Administration Fee</strong>. If Canopyright generates invoices for value in connection with a License, the Buyer will be required to pay Canopyright an administration fee on a per-plant or per-invoice basis, in addition to a one-time fee at the time that any License is entered into. Canopyright will publish administration fee rates at <a href="http://www.canopyright.com/">www.canopyright.com</a> from time to time. By entering into a License and using the Services, each Buyer acknowledges and agrees that it is responsible for payment of the administration fee. If a Buyer is delinquent in any payment due to Canopyright under these Terms, said amount shall accrue interest at the rate of 1% percent per month or the maximum amount allowed by law (whichever is lower).</p></li><li><p><strong>Refund Policy</strong>. All payments made in connection with a License, including the administration fee payable to Canopyright, are nonrefundable.</p></li><li><p><strong>Confidentiality</strong>. Any and…"
Issue Analytics
- State:
- Created a year ago
- Comments:9
Top Results From Across the Web
100% DIV width is not really 100% - Stack Overflow
100 % is only 100% of the available width, based on the parent container. So if you create a DIV with width 500...
Read more >width | CSS-Tricks
The width property in CSS specifies the width of the element's content area. This “content” area is the portion inside the padding, border,...
Read more >Set width for content inside 100% width container
i.e. creating a '100% width' container then putting a 'site width' container inside it causes both containers to break. It doesn't appear as ......
Read more >How to set fixed width for <td> in a table ? - GeeksforGeeks
Using width attribute: The <td> tag has width attribute to control the width of a particular column. By assigning a numeric value to...
Read more >max-width - CSS: Cascading Style Sheets - MDN Web Docs
Ensure that elements set with a max-width are not truncated and/or do not obscure other content when the page is zoomed to increase...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I also has this issue and as a workaround I used width and height in ‘px’
@vladcl I set up
unit
param in pixels. And also styled mydiv
width and height in pixels not in%
. For me it waswidth: 1275px
andheight: 1803px
.