मूल रूप से पीडीएफ में एचटीएमएल तत्वों के लक्ष्यीकरण में हाल ही में अपग्रेड करने से पहले, परिणामी पीडीएफ पेज का आकार लक्षित एचटीएमएल तत्व के समान था। ऐसा इसलिए है क्योंकि हम HTML तत्व को छोड़कर बाकी सभी चीज़ों को क्रॉप करने के अलावा पीडीएफ से केवल लक्ष्य निकालने का कोई विश्वसनीय तरीका नहीं खोज सके।
However after much work we managed to provide the targeted HTML element, with margins around it, while also being compatible with the our templating system. Allowing users to specify headers and footers for the first time when using this feature.
Unfortunately, it soon became clear that there was another inconsistency when using the target feature. That orientation and page size related parameters were being ignored. This is because essentially a new special page size is being used for the PDF, while the target feature works in the same way in our image capture API, as it is document based, it should probably be consistent with our DOCX API were the targeted HTML element appears at the top of the resultant document.
So we have changed how this feature works to create a PDF page with the size and orientation requested, with the targeted content appearing in the top left corner, consistent with the DOCX API.